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

Disassembly:
push 0xffffffffffffffff
push 0x42acfb
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1ac]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x28]
xor esi, esi
cmp eax, esi
mov ebx, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], esi
je 0x4027c3
lea edx, [esp + 0x18]
push edx
push 4
lea ecx, [esp + 0x60]
push ecx
add eax, 0xc
push eax
push ebx
call edi
test eax, eax
je 0x4027c3
cmp dword [esp + 0x18], 4
jne 0x4027c3
mov eax, dword [esp + 0x58]
jmp 0x4027c5
xor eax, eax
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x4027f5
lea edx, [esp + 0x20]
push edx
push 4
lea ecx, [esp + 0x50]
push ecx
add eax, 0xc
push eax
push ebx
call edi
test eax, eax
je 0x4027f5
cmp dword [esp + 0x20], 4
jne 0x4027f5
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], edx
jmp 0x4027f9
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x44]
mov ebp, ebx
mov dword [esp + 0x50], esi
test esi, esi
mov dword [esp + 0x14], 0
je 0x402830
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x3c]
push ecx
push esi
push ebp
call edi
test eax, eax
je 0x402830
cmp dword [esp + 0x14], 4
jne 0x402830
mov eax, dword [esp + 0x34]
jmp 0x402832
xor eax, eax
cmp ebp, ebx
jne 0x402840
cmp eax, dword [esp + 0x44]
je 0x402a10
test esi, esi
je 0x402a0c
lea edx, [esp + 0x28]
push edx
push 0x48
lea eax, [esp + 0x64]
push eax
push esi
push ebp
call edi
test eax, eax
je 0x4029cd
cmp dword [esp + 0x28], 0x48
jne 0x4029cd
movzx esi, word [esp + 0x88]
add esi, 2
xor ecx, ecx
mov eax, esi
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a249
movzx edi, word [esp + 0x84]
mov dword [esp + 0x20], eax
add edi, 2
xor ecx, ecx
mov eax, edi
shr eax, 1
add esp, 4
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a249
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x90]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
push esi
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4029a9
cmp esi, dword [esp + 0x3c]
jne 0x4029a9
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x54]
push eax
push edi
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4029a9
cmp edi, dword [esp + 0x54]
jne 0x4029a9
lea edx, [esp + 0xa4]
push edx
mov ecx, ebx
call fcn.004015f0
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x43832c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x1a8], 0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
push ebx
push ecx
push edx
push str.__08X__06X___s___s__r_n
lea edi, [esp + 0x28]
call fcn.00401fd0
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 0xc]
add esp, 0x14
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.00401e80
add esi, 0xfffffff0
mov dword [esp + 0x1a4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029a9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a487
add esp, 4
push ebx
call fcn.0041a487
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push 4
lea edx, [esp + 0x40]
push edx
push esi
push ebp
mov dword [esp + 0x38], 0
call edi
test eax, eax
je 0x4029ff
cmp dword [esp + 0x24], 4
jne 0x4029ff
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov esi, eax
jmp 0x402803
xor eax, eax
mov dword [esp + 0x50], eax
mov esi, eax
jmp 0x402803
xor eax, eax
jmp 0x402a15
mov eax, 1
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0041a2d1
add esp, 0x194
ret