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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457e64
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472cc0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
xor esi, esi
cmp dword [edi + 0x78], esi
jne 0x40f208
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [0x45b5a8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x45deb8
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push eax
push ecx
push esi
push esi
mov dword [esp + 0xc0], esi
call dword [0x45b0dc]
push eax
lea ecx, [esp + 0x20]
call fcn.00422fd9
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x20]
push 1
push edx
push eax
call dword [0x45b578]
mov dword [esp + 0x1c], 0x45c4f4
lea ecx, [esp + 0x1c]
jmp 0x40f529
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call dword [0x45b5a8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x45deb8
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ebx, dword [0x45b0dc]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
mov dword [esp + 0xc0], 1
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00422fd9
mov edx, dword [edi + 0x20]
mov ebp, dword [str.8_aPF_zF_4pOE_zB93md_S]
lea ecx, [esp + 0x4c]
push ecx
push edx
call ebp
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call fcn.00422a94
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0x45deb8
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
mov byte [esp + 0xc0], 2
call ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00422fd9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push 3
push edx
push eax
push eax
call dword [0x45b0d8]
lea ecx, [esp + 0x6c]
call fcn.004227b6
push esi
mov byte [esp + 0xb4], 3
call dword [0x45b090]
push eax
lea ecx, [esp + 0x70]
call fcn.00422d12
mov eax, dword [edi + 0x74]
cmp eax, esi
jne 0x40f2f5
xor eax, eax
jmp 0x40f2f8
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x74]
push eax
call fcn.0042305e
mov eax, dword [edi + 0x74]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x8c]
push ecx
push 0x18
push edx
call dword [0x45b094]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x7c]
push eax
push ecx
call ebp
xor edi, edi
jmp 0x40f332
xor esi, esi
xor ebp, ebp
mov edx, dword [esp + 0x70]
push edi
push esi
push edx
call dword [0x45b0d4]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x84]
jne 0x40f3c6
cmp ebp, esi
jne 0x40f356
add ebp, 1
jmp 0x40f3c6
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0x45deb8
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea ecx, [edi + eax + 1]
lea ebx, [esi + edx]
push ecx
push ebx
mov ebx, dword [0x45b0dc]
add eax, edi
add edx, ebp
push eax
push edx
mov byte [esp + 0xc0], 4
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00422fd9
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
push 2
push edx
push eax
push eax
call dword [0x45b0d8]
lea ecx, [esp + 0x3c]
lea ebp, [esi + 1]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x3c], 0x45c4f4
call fcn.0042302c
add esi, 1
cmp esi, 0xc0
jl 0x40f334
cmp ebp, esi
je 0x40f43e
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x45deb8
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add eax, edi
lea ecx, [eax + 1]
push ecx
add esi, edx
push esi
add ebp, edx
push eax
push ebp
mov byte [esp + 0xc0], 5
call ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00422fd9
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 2
push ecx
push eax
push eax
call dword [0x45b0d8]
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x34], 0x45c4f4
call fcn.0042302c
add edi, 1
cmp edi, 0x9e
jl 0x40f330
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x45deb8
push 0x22e
push 0x186
push 0x9e
push 0x23
mov byte [esp + 0xc0], 6
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00422fd9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov esi, dword [0x45b0d8]
push 2
push edx
push eax
push eax
call esi
lea ecx, [esp + 0x24]
call fcn.0042302c
push 0x9e
push 0x186
push 0x7b
push 0xc0
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00422fd9
mov eax, dword [esp + 0x28]
push 2
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x20]
push 1
push ecx
push eax
call dword [0x45b578]
mov esi, 0x45c4f4
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x24], esi
call fcn.0042302c
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb0], 2
call fcn.00422d8c
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x2c], esi
call fcn.0042302c
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0042302c
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret