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

Disassembly:
push 0xffffffffffffffff
push 0x45cab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [0x4774f0]
mov edx, dword [esp + 0x88]
push ebx
push ebp
push esi
mov dword [esp + 0x80], eax
push edi
xor ebx, ebx
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea esi, [eax + 1]
jmp 0x40f550
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f550
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.00403690
push ebx
push 0x4663fc
lea ecx, [esp + 0x38]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00403690
push 2
push 0x461424
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403690
mov eax, dword [esp + 0x2c]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 2
jae 0x40f5c7
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push eax
lea ecx, [esp + 0x58]
call fcn.0040e580
mov esi, eax
cmp esi, 0xffffffff
je 0x40f6b3
mov edx, dword [esp + 0x10]
add edx, 0x48
mov dword [esp + 0x10], edx
lea ecx, [ecx]
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x40f5fe
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00407410
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f619
mov edi, dword [esp + 0x60]
mov edx, edi
sub edx, esi
push edx
push esi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
call fcn.00407540
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 3
call fcn.00403490
cmp dword [esp + 0x80], ebp
mov byte [esp + 0x90], 2
jb 0x40f660
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jae 0x40f681
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x28]
push edx
push edi
push eax
lea ecx, [esp + 0x58]
call fcn.0040e580
mov ecx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x30]
push eax
call fcn.0040f340
test al, al
jne 0x40f708
cmp esi, 0xffffffff
jne 0x40f5f0
mov edi, 0xf
cmp dword [esp + 0x2c], ebp
jb 0x40f6c6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x40f6e5
mov edx, dword [esp + 0x34]
push edx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40f704
mov eax, dword [esp + 0x50]
push eax
call fcn.00446038
add esp, 4
xor al, al
jmp 0x40f760
cmp dword [esp + 0x2c], ebp
jb 0x40f71b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x48], ebp
mov esi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x40f73f
mov edx, dword [esp + 0x34]
push edx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40f75e
mov eax, dword [esp + 0x50]
push eax
call fcn.00446038
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78]
pop ebx
call fcn.004305ce
add esp, 0x84
ret 4