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

Disassembly:
sub esp, 0x374
mov eax, dword [0x4390c0]
xor eax, esp
mov dword [esp + 0x36c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
or ebp, 0xffffffff
mov eax, dword [edi + 0x28]
shr eax, 1
and eax, 0xffffff01
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20148], ebp
je 0x402ebd
test al, al
je 0x402b62
cmp dword [edi + 0x2014c], ebp
je 0x402ebd
call fcn.0040311a
mov dword [esp + 0x24], eax
test eax, eax
je 0x402ebd
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x402b9b
mov dl, byte [edi + 0x2012c]
test dl, dl
je 0x402b89
mov eax, dword [edi + 0x1c]
jmp 0x402b8c
mov eax, dword [edi + 0x18]
mov dword [esp + 0x2c], eax
movzx eax, dl
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
xor ebx, ebx
push 3
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
pop edx
cmp byte [edi + 0x2012c], bl
jne 0x402bbd
mov eax, dword [edi + 0x18]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jmp 0x402bc5
mov dword [esp + 0x64], 2
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x20154]
test eax, eax
je 0x402bda
mov ecx, dword [eax]
jmp 0x402bdc
mov ecx, ebx
xor eax, eax
cmp byte [edi + 0x2c], al
push 0xc
setne al
add eax, edx
add eax, ecx
pop ecx
mul ecx
cmovb eax, ebp
push eax
call fcn.004069d0
mov esi, eax
xor ebp, ebp
lea eax, [esp + 0x68]
inc ebp
push 0xfe
push ebx
mov dword [esi], 0x47670001
mov dword [esi + 4], 0xc
mov dword [esi + 8], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x2c], eax
xor eax, eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.0040b2d0
push 0x208
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.0040b2d0
mov eax, dword [esp + 0x3c]
add esp, 0x1c
test eax, eax
je 0x402cda
mov ebp, 0x308
cmp byte [edi + 0x2012c], bl
je 0x402cc4
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
push ecx
push ebp
lea ecx, [esp + 0x78]
push ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402c87
cmp dword [esp + 0x20], ebp
je 0x402cc0
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi + 0x20150], bl
je 0x402c9d
push dword [edi + 0x20148]
call ebp
cmp byte [edi + 0x20151], bl
je 0x402eb2
mov eax, dword [edi + 0x2014c]
cmp eax, 0xffffffff
je 0x402eb2
push eax
call ebp
jmp 0x402eb2
lea eax, [esp + 0x70]
mov dword [esi + 0xc], 0x47670002
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], eax
mov ebp, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x18], ebp
mov eax, dword [edi + 0x20154]
test eax, eax
je 0x402d3b
cmp dword [eax], ebx
jbe 0x402d3b
mov edx, ebx
mov eax, dword [eax + 4]
imul ecx, ebp, 0xc
mov eax, dword [edx + eax]
lea edx, [edx + 0xc]
mov dword [ecx + esi], eax
imul ecx, dword [esp + 0x18], 0xc
mov eax, dword [edi + 0x20154]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx - 8]
mov dword [ecx + esi + 4], eax
imul ecx, dword [esp + 0x18], 0xc
inc ebx
mov eax, dword [edi + 0x20154]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx - 4]
mov dword [ecx + esi + 8], eax
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 0x20154]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebx, dword [eax]
jb 0x402cea
xor ebx, ebx
cmp byte [edi + 0x2c], 0
je 0x402d7e
imul eax, ebp, 0xc
lea ecx, [edi + 0x2c]
lea edx, [ecx + 1]
mov dword [eax + esi], 0xa
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d51
sub ecx, edx
mov eax, 0x20000
cmp ecx, eax
cmova ecx, eax
imul eax, dword [esp + 0x18], 0xc
inc ecx
mov dword [eax + esi + 4], ecx
lea ecx, [edi + 0x2c]
imul eax, dword [esp + 0x18], 0xc
mov dword [eax + esi + 8], ecx
inc dword [esp + 0x18]
push ebx
push ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
call fcn.0040364c
cmp dword [edi + 0x20], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
je 0x402e02
test byte [edi + 0x28], 4
jne 0x402e02
push dword [edi + 0x20]
lea ecx, [esp + 0x3c]
push dword [edi + 0x10]
call fcn.0040282d
test al, al
jne 0x402e02
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi + 0x20150], al
je 0x402dde
push dword [edi + 0x20148]
call ebp
cmp byte [edi + 0x20151], 0
je 0x402ea9
mov eax, dword [edi + 0x2014c]
cmp eax, 0xffffffff
je 0x402ea9
push eax
call ebp
jmp 0x402ea9
cmp byte [esp + 0x28], 0
mov ebp, dword [esp + 0x24]
mov byte [esp + 0x17], 1
je 0x402e41
push ebx
lea eax, [esp + 0x1c]
xor ecx, ecx
cmp dword [edi + 0x20], ebx
push eax
lea eax, [esp + 0x34]
cmove eax, ecx
push eax
mov eax, dword [edi + 0x28]
or eax, 4
push eax
push dword [edi + 0x2014c]
push dword [edi + 0x14]
push dword [edi + 0x10]
call ebp
test eax, eax
setne byte [esp + 0x17]
imul ecx, dword [esp + 0x18], 0xc
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x54]
je 0x402e6f
mov dword [ecx + esi], 0x12
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
mov dword [ecx + esi + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + esi + 8], eax
inc dword [esp + 0x18]
push dword [edi + 0x20158]
lea eax, [esp + 0x1c]
xor ecx, ecx
cmp dword [edi + 0x20], ebx
push eax
lea eax, [esp + 0x34]
cmove eax, ecx
push eax
mov eax, dword [edi + 0x28]
and eax, 0xfffffffd
push eax
push dword [edi + 0x20148]
push dword [edi + 0x14]
push dword [edi + 0x10]
call ebp
test eax, eax
je 0x402ea9
cmp byte [esp + 0x17], 0
je 0x402ea9
mov bl, 1
lea ecx, [esp + 0x38]
call fcn.0040280c
push esi
call fcn.00406a00
pop ecx
mov al, bl
jmp 0x402ebf
xor al, al
mov ecx, dword [esp + 0x37c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409bb7
add esp, 0x374
ret