Function at 0x140001440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
xor eax, 0x3d
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
xor eax, 0xe7e
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x78]
sub eax, 0x659
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x80]
add eax, 0x6b
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x78]
sub eax, 0x1ea
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
xor eax, 0x3d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x2c], eax
je 0x140001763
mov eax, dword [rsp + 0x30]
xor eax, 0xc1b
cmp dword [rsp + 0x20], eax
jle 0x1400016a4
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov eax, dword [rdx + rax + 0xc4]
mov ecx, dword [rcx + 0xc0]
sub ecx, eax
mov eax, ecx
sub eax, 0xffe4c391
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x28], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x88]
mov ecx, dword [r8 + rcx + 0x12c]
cmp dword [rdx + rax + 0x2c], ecx
jae 0x14000158d
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov eax, dword [rdx + rax]
mov ecx, dword [rcx + 0x84]
sub ecx, eax
mov eax, ecx
sub eax, 0x164df
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xc0]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xc0], eax
jmp 0x1400015d6
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov eax, dword [rdx + rax + 0xc4]
mov ecx, dword [rcx + 0xf8]
xor ecx, eax
mov eax, ecx
add eax, 0xfff6a0ce
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x28]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x28], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0xf0]
mov eax, dword [rcx + rax + 0xa4]
sub eax, edx
sub eax, 0x11591eb
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x28]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x134]
sub eax, 0xffffd000
mov dword [rsp + 0x3c], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xd8]
mov rcx, qword [rsp + 0x88]
add eax, dword [rcx + 0x58]
xor eax, 0x48
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x28]
mov r9d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rax, 0x1000
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 0xe8], rax
mov eax, dword [rsp + 0x34]
xor eax, 0x257
mov dword [rsp + 0x34], eax
jmp 0x140001763
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0xb8]
mov dword [rsp + 0x24], eax
jmp 0x1400016c3
mov eax, dword [rsp + 0x24]
add eax, 3
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
or eax, 0x992
cmp dword [rsp + 0x24], eax
je 0x140001763
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0xc0]
mov dword [rsp + 0x28], eax
jmp 0x1400016fc
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x58]
xor eax, 0x7fc
sub eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
jne 0x14000175e
mov eax, dword [rsp + 0x2c]
or eax, 0xd92
xor eax, 0xc40
cdqe
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xd8]
or eax, 0xc40
sub eax, 0x7fc
mov dword [rsp + 0x20], eax
jmp 0x1400016f2
jmp 0x1400016b8
mov eax, dword [rsp + 0x20]
add eax, 0x1ea
add rsp, 0x68
ret