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

Disassembly:
push 0xffffffffffffffff
push 0x4277e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0xdc]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x9c], 1
mov dword [esp + 0x14], ebx
je 0x40f3d7
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40f3ce
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
push edx
push ebp
push ecx
push eax
call fcn.004044f0
mov eax, dword [ebp + 4]
push eax
call fcn.0041e69d
add esp, 0x14
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov edi, 0xf
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 2
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x42adbc
mov byte [ecx + 4], bl
call fcn.00401b80
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x100]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0xe0], 2
mov byte [ecx + 4], bl
call fcn.00401310
mov byte [esp + 0xd4], 1
call fcn.0041b6b0
add esp, 0x38
mov esi, eax
push esi
push ebx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00404530
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x64]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0xc4], 3
mov byte [ecx + 4], bl
call fcn.00401310
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0xe0], 4
mov byte [ecx + 4], bl
call fcn.00401310
mov byte [esp + 0xd4], 3
call fcn.0041b600
add esp, 0x38
cmp eax, ebx
jne 0x40f4bf
mov dword [esp + 0x10], 0xffffffff
jmp 0x40f649
cmp esi, 0xffffffff
jne 0x40f4d1
mov dword [esp + 0x10], 1
jmp 0x40f649
push 0xffffffffffffffff
lea ecx, [esi + 2]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0xcc]
call fcn.00404530
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0xa8], 5
call fcn.00401310
cmp dword [esp + 0x74], 0x10
mov byte [esp + 0x9c], 3
jb 0x40f51c
mov eax, dword [esp + 0x60]
push eax
call fcn.0041e69d
add esp, 4
push ebx
push 0x42a46c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00401b80
mov eax, dword [esp + 0xb8]
cmp esi, eax
mov byte [esp + 0x9c], 6
mov ebp, eax
jge 0x40f5aa
jmp 0x40f560
mov edx, dword [esp + 0xbc]
cmp edx, 0x10
mov eax, dword [esp + 0xa8]
mov ecx, eax
jae 0x40f57c
lea ecx, [esp + 0xa8]
cmp byte [ecx + esi], 0x20
je 0x40f5aa
cmp edx, 0x10
jae 0x40f58e
lea eax, [esp + 0xa8]
mov cl, byte [eax + esi]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
lea ecx, [esp + 0x2c]
call fcn.0040cbd0
inc esi
cmp esi, ebp
jl 0x40f560
mov ecx, dword [esp + 0xdc]
cmp ecx, ebx
je 0x40f5c5
mov eax, dword [ecx + 8]
lea edx, [esp + 0x24]
push edx
push 1
push eax
call fcn.00406090
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xb0]
call fcn.00404530
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0xa8], 7
call fcn.00401310
mov eax, dword [esp + 0x90]
mov esi, 0x10
cmp eax, esi
jb 0x40f611
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x40f636
mov edx, dword [esp + 0x28]
push edx
call fcn.0041e69d
add esp, 4
mov ebp, dword [esp + 0xdc]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0x9c], 1
jb 0x40f665
mov eax, dword [esp + 0x44]
push eax
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
je 0x40f3e0
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
jne 0x40f68e
mov dword [esp + 0x14], eax
jmp 0x40f6be
cmp ebp, ebx
je 0x40f6be
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40f6b5
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push ecx
push ebp
push edx
push eax
call fcn.004044f0
mov eax, dword [ebp + 4]
push eax
call fcn.0041e69d
add esp, 0x14
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov eax, dword [esp + 0xbc]
mov esi, 0x10
cmp eax, esi
jb 0x40f6de
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0xd8], esi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
jb 0x40f70c
mov edx, dword [esp + 0xc4]
push edx
call fcn.0041e69d
add esp, 4
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret