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

Disassembly:
push 0xffffffffffffffff
push 0x60dfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x74]
mov eax, dword [esi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x40f6d2
lea ecx, [esp + 0x38]
call fcn.00513f30
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x6c], ebp
call fcn.00540140
cmp eax, ebp
jle 0x40f605
fldz
fcomp dword [ebx + 0x2b8]
fnstsw ax
test ah, 5
jp 0x40f605
fld dword [ebx + 0x2b8]
fmul qword [0x62dcf0]
call fcn.005f6310
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.00513f30
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
mov byte [esp + 0x68], 1
call eax
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
mov ecx, esi
call fcn.00540140
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, ebp
jle 0x40f47c
mov edx, dword [esp + 0x28]
mov eax, dword [edx + edi*4]
push eax
mov ecx, esi
call fcn.0053f430
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x40f464
test eax, eax
jle 0x40f516
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.00513f30
push 0x5a
push ebx
lea ecx, [esp + 0x34]
push edi
push ecx
mov byte [esp + 0x78], 2
call fcn.00580650
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
jle 0x40f4e7
xor edi, edi
test eax, eax
jle 0x40f4fd
mov edx, dword [esp + 0x34]
mov eax, dword [edx + edi*4]
push eax
mov ecx, esi
call fcn.0053f400
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0xff
mov ecx, esi
call edx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x40f4c1
jmp 0x40f4fd
push edi
mov ecx, esi
call fcn.0053f400
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0xff
mov ecx, esi
call edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 1
call fcn.0048f310
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x40f484
lea ecx, [esp + 0x44]
call fcn.0055abe0
lea eax, [esp + 0x44]
mov bl, 3
push eax
mov ecx, esi
mov byte [esp + 0x6c], bl
call fcn.005557c0
push 0xff
lea ecx, [esp + 0x48]
call fcn.00561720
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x4c]
push edx
push edi
mov ecx, ebp
call fcn.0040f260
test esi, esi
je 0x40f564
lea eax, [esi + 0x14]
jmp 0x40f566
xor eax, eax
push eax
lea ecx, [esp + 0x1c]
call fcn.005eb0e0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x68], 4
test eax, eax
je 0x40f5c4
lea ecx, [eax - 0x14]
lea eax, [esp + 0x44]
push eax
call fcn.005557c0
push 0xff
lea ecx, [esp + 0x48]
call fcn.00561720
push 0
push 5
lea ecx, [esp + 0x4c]
push ecx
push edi
mov ecx, ebp
call fcn.0040f260
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp eax, dword [edx]
jne 0x40f5b9
xor eax, eax
jmp 0x40f5bc
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40f57d
push 0
lea ecx, [esp + 0x24]
call fcn.005ee1f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
mov byte [esp + 0x68], bl
call fcn.004ed1b0
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
call fcn.0055ff50
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0
call fcn.0048f310
jmp 0x40f6c1
lea ecx, [esp + 0x44]
call fcn.0055abe0
lea eax, [esp + 0x44]
push eax
mov ecx, esi
mov byte [esp + 0x6c], 5
call fcn.005557c0
push 0xff
lea ecx, [esp + 0x48]
call fcn.00561720
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
push ecx
push 4
lea edx, [esp + 0x4c]
push edx
push edi
mov ecx, ebx
call fcn.0040f260
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.005eb0e0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x68], 6
cmp eax, ebp
je 0x40f6a5
lea ecx, [eax - 0x14]
lea eax, [esp + 0x44]
push eax
call fcn.005557c0
push 0xff
lea ecx, [esp + 0x48]
call fcn.00561720
push ebp
push 5
lea ecx, [esp + 0x4c]
push ecx
push edi
mov ecx, ebx
call fcn.0040f260
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp eax, dword [edx]
jne 0x40f69a
xor eax, eax
jmp 0x40f69d
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x40f65f
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 5
call fcn.004ed1b0
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0
call fcn.0055ff50
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], 0xffffffff
call fcn.0048f310
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc