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

Disassembly:
push 0xffffffffffffffff
push 0x421205
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x4d4]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push str.Parse_PID_enter
mov dword [esp + 0x4e0], ebx
call fcn.004124a0
add esp, 4
push 0x400
lea eax, [esp + 0xd0]
push ebx
push eax
call fcn.004183e0
mov eax, dword [esp + 0x4f4]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x4fc], esi
jae 0x4056c5
lea eax, [esp + 0x4e8]
push 0x3ff
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00413040
lea edx, [esp + 0xd8]
add esp, 0xc
push edx
call fcn.00412c85
mov ebp, 0xf
lea eax, [esp + 0xd0]
add esp, 4
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405710
sub eax, edx
push eax
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x80]
call fcn.00401c30
mov byte [esp + 0x4dc], 1
push ebx
push 0x423d93
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00401c30
lea ecx, [esp + 0x94]
mov byte [esp + 0x4dc], 2
push ecx
mov dword [esp + 0x1c], ebx
call fcn.00402480
add edi, 0x64
mov byte [esp + 0x4dc], 3
mov dword [esp + 0x1c], edi
jmp 0x405782
xor ebx, ebx
lea edi, [esp + 0x5c]
call fcn.004076e0
lea edx, [esp + 0x18]
push edx
push 0x3b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xa4]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401850
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call fcn.00410550
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4e8], 4
call fcn.00401850
mov byte [esp + 0x4dc], 3
cmp dword [esp + 0x58], esi
jb 0x4057f6
mov edx, dword [esp + 0x44]
push edx
call fcn.0041288e
add esp, 4
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x405802
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401850
mov byte [esp + 0x4dc], 5
cmp edi, ebx
jne 0x40591f
lea ecx, [esp + 0x14]
push ecx
push 0x2c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x6c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
lea esi, [esp + 0xc4]
mov byte [ecx + 4], bl
call fcn.00401850
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.00410550
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4e8], 6
call fcn.00401850
mov byte [esp + 0x4dc], 5
cmp dword [esp + 0x3c], 0x10
jb 0x40589c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041288e
add esp, 4
mov edi, dword [esp + 0x14]
cmp edi, ebx
jne 0x40591a
lea edx, [esp + 0x14]
push edx
push 0x2c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
lea esi, [esp + 0xe0]
mov byte [ecx + 4], bl
call fcn.00401850
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00410550
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4e8], 7
call fcn.00401850
mov byte [esp + 0x4dc], 5
cmp dword [esp + 0x3c], 0x10
jb 0x405911
mov edx, dword [esp + 0x28]
push edx
call fcn.0041288e
add esp, 4
mov edi, 1
mov dword [esp + 0x14], edi
mov esi, 0x10
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x94]
push eax
call fcn.00407830
mov byte [esp + 0x4dc], 3
cmp dword [esp + 0x58], esi
jb 0x40594b
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0041288e
add esp, 4
test edi, edi
je 0x405800
cmp dword [esp + 0x18], 0
je 0x405780
push str.Parse_PID_leave
call fcn.004124a0
add esp, 4
cmp dword [esp + 0xc8], esi
jb 0x405984
mov edx, dword [esp + 0xb4]
push edx
call fcn.0041288e
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0xac], esi
jb 0x4059b4
mov eax, dword [esp + 0x98]
push eax
call fcn.0041288e
add esp, 4
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0x74], esi
jb 0x4059dc
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp dword [esp + 0x90], esi
jb 0x4059fe
mov edx, dword [esp + 0x7c]
push edx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
cmp dword [esp + 0x4fc], esi
jb 0x405a29
mov eax, dword [esp + 0x4e8]
push eax
call fcn.0041288e
add esp, 4
mov ecx, dword [esp + 0x4d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.00412899
add esp, 0x4cc
ret 0x1c