; ; sub_180016340 from 0x180016340 to 0x180016417 (215 bytes) ; ; 2 xrefs: ; > sub_1800165A0 @ 0x1800167b9 ; > @ 0x1801f717c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x180016340 sub rsp, 50h ; +0x2, 0x180016342 mov rax, cs:__security_cookie ; +0x6, 0x180016346 xor rax, rsp ; +0xd, 0x18001634d mov [rsp+58h+var_18], rax ; +0x10, 0x180016350 mov rbx, [rsp+58h+arg_20] ; +0x15, 0x180016355 mov r11, [rsp+58h+arg_28] ; +0x1d, 0x18001635d mov r10, [rcx] ; +0x25, 0x180016365 test rdx, rdx ; +0x28, 0x180016368 jz short loc_180016376 ; +0x2b, 0x18001636b mov rax, r10 ; +0x2d, 0x18001636d shr rax, 22h ; +0x30, 0x180016370 mov [rdx], eax ; +0x34, 0x180016374 test r8, r8 ; +0x36, 0x180016376 jz short loc_18001638D ; +0x39, 0x180016379 mov rax, r10 ; +0x3b, 0x18001637b shr rax, 7 ; +0x3e, 0x18001637e and eax, 7FFFFFFh ; +0x42, 0x180016382 shl eax, 5 ; +0x47, 0x180016387 mov [r8], eax ; +0x4a, 0x18001638a test r11, r11 ; +0x4d, 0x18001638d jz short loc_18001639B ; +0x50, 0x180016390 movzx eax, r10b ; +0x52, 0x180016392 and al, 1 ; +0x56, 0x180016396 mov [r11], al ; +0x58, 0x180016398 test r9, r9 ; +0x5b, 0x18001639b jz short loc_1800163BF ; +0x5e, 0x18001639e movdqa xmm0, cs:xmmword_180145AD0 ; +0x60, 0x1800163a0 mov rax, r10 ; +0x68, 0x1800163a8 shr rax, 5 ; +0x6b, 0x1800163ab and eax, 3 ; +0x6f, 0x1800163af movdqu [rsp+58h+var_28], xmm0 ; +0x72, 0x1800163b2 mov eax, dword ptr [rsp+rax*4+58h+var_28] ; +0x78, 0x1800163b8 mov [r9], eax ; +0x7c, 0x1800163bc test rbx, rbx ; +0x7f, 0x1800163bf jz short loc_180016404 ; +0x82, 0x1800163c2 movdqa xmm0, cs:xmmword_180145AE0 ; +0x84, 0x1800163c4 movdqa xmm1, cs:xmmword_180145AF0 ; +0x8c, 0x1800163cc shr r10, 1 ; +0x94, 0x1800163d4 and r10d, 0Fh ; +0x97, 0x1800163d7 mov [rsp+58h+var_38], 0AC44h ; +0x9b, 0x1800163db movdqu [rsp+58h+var_58], xmm0 ; +0xa3, 0x1800163e3 mov [rsp+58h+var_34], 0BB80h ; +0xa8, 0x1800163e8 movdqu [rsp+58h+var_48], xmm1 ; +0xb0, 0x1800163f0 mov [rsp+58h+var_30], 17700h ; +0xb6, 0x1800163f6 mov eax, dword ptr [rsp+r10*4+58h+var_58] ; +0xbe, 0x1800163fe mov [rbx], eax ; +0xc2, 0x180016402 mov rcx, [rsp+58h+var_18] ; +0xc4, 0x180016404 xor rcx, rsp; StackCookie ; +0xc9, 0x180016409 call __security_check_cookie ; +0xcc, 0x18001640c add rsp, 50h ; +0xd1, 0x180016411 pop rbx ; +0xd5, 0x180016415 retn ; +0xd6, 0x180016416