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

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea ebx, [ebx]
mov eax, dword [0x7fb2d0]
mov edx, dword [eax + 0x34]
mov edi, dword [esp + 0x120]
mov ebp, dword [esp + 0x11c]
mov eax, edi
and eax, 0xffff
lea ecx, [eax + eax*2]
mov esi, dword [edx + ecx*4 + 8]
mov ecx, dword [esi]
mov eax, dword [0x816d04]
mov bl, byte [esi + 0x10]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp]
and ecx, 0xffff
shl ecx, 5
mov eax, dword [ecx + eax + 0x14]
not bl
and bl, 1
mov dword [esp + 0x18], eax
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
je 0x4f1aae
mov cl, byte [esi + 0xb4]
mov eax, 1
shl eax, cl
test al, 3
je 0x4f1aae
mov ecx, dword [esp + 0x18]
fld dword [ecx + 0x1cc]
fcomp dword [0x61231c]
fnstsw ax
test ah, 0x41
jne 0x4f1aae
fld dword [esi + 0xa0]
lea edi, [ebp + 0x28]
fsub dword [edi]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
mov byte [esp + 0x17], 1
fstp dword [esp + 0x54]
fld dword [esi + 0xa4]
fsub dword [edi + 4]
fstp dword [esp + 0x58]
fld dword [esi + 0xa8]
fsub dword [edi + 8]
fstp dword [esp + 0x5c]
call fcn.004d0a70
mov ecx, eax
call fcn.00401990
fstp st(0)
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x30]
call fcn.004052c0
add esp, 4
mov ecx, eax
call fcn.00401990
fstp st(0)
xor ebp, ebp
mov dword [esp + 0x1c], 4
cmp ebp, 3
ja case.default.0x4f1979
jmp dword [ebp*4 + 0x4f1d74]
mov eax, dword [esp + 0x18]
fld dword [eax + 0x1cc]
jmp 0x4f1998
mov ecx, dword [esp + 0x18]
fld dword [ecx + 0x1cc]
fchs
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
jmp 0x4f19e2
mov edx, dword [esp + 0x18]
fld dword [edx + 0x1cc]
jmp 0x4f19ca
mov eax, dword [esp + 0x18]
fld dword [eax + 0x1cc]
fchs
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x124]
call fcn.004faa60
push eax
lea edx, [esp + 0x28]
push edx
push edi
push 0xc221
call fcn.00509330
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x134]
add esp, 0x14
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.004faa60
fld dword [esi + 0xa0]
fsub dword [esp + 0x44]
lea ecx, [esp + 0x78]
push ecx
push eax
fstp dword [esp + 0x74]
lea edx, [esp + 0x74]
fld dword [esi + 0xa4]
push edx
fsub dword [esp + 0x54]
lea eax, [esp + 0x50]
push eax
push 0xc221
fstp dword [esp + 0x84]
fld dword [esi + 0xa8]
fsub dword [esp + 0x60]
fstp dword [esp + 0x88]
call fcn.00509330
add esp, 0x14
test al, al
jne 0x4f1a91
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x1c]
inc ebp
dec eax
mov dword [esp + 0x1c], eax
jne 0x4f1974
mov al, byte [esp + 0x17]
mov ebp, dword [esp + 0x11c]
jmp 0x4f1b1e
or ecx, 0xffffffff
cmp edi, 0xffffffff
mov eax, edi
je 0x4f1ad9
jmp 0x4f1ac0
mov ecx, eax
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov eax, dword [eax + 0x11c]
cmp eax, 0xffffffff
jne 0x4f1ac0
fld dword [esi + 0xa0]
lea edi, [ebp + 0x28]
fsub dword [edi]
lea edx, [esp + 0xc8]
push edx
push ecx
fstp dword [esp + 0x68]
lea eax, [esp + 0x68]
fld dword [esi + 0xa4]
push eax
fsub dword [edi + 4]
push edi
push 0xc221
fstp dword [esp + 0x78]
fld dword [esi + 0xa8]
fsub dword [edi + 8]
fstp dword [esp + 0x7c]
call fcn.00509330
add esp, 0x14
test al, al
je 0x4f1b24
xor bl, bl
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x1c8]
test al, 1
je 0x4f1b40
mov edx, dword [esp + 0x120]
cmp edx, dword [ebp + 0xc]
jne 0x4f1b40
xor bl, bl
test al, 8
je 0x4f1b5f
mov cx, word [ebp + 0x10]
mov dx, word [esi + 0xb8]
call fcn.0045c8e0
test al, al
jne 0x4f1b5f
xor bl, bl
jmp 0x4f1c28
test bl, bl
je 0x4f1c28
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c8]
test ch, 0x10
je 0x4f1c28
mov cl, byte [esi + 0xb4]
mov edx, 1
shl edx, cl
xor bl, bl
test dl, 3
je 0x4f1c28
mov eax, dword [esi]
mov ecx, dword [0x816d04]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
test dword [edx + 0x17c], 0x80000
je 0x4f1c28
mov eax, dword [esp + 0x120]
cmp eax, dword [ebp + 0xc]
je 0x4f1c28
mov ecx, dword [0x64b9e8]
mov cx, word [ecx + 0xe]
push 8
call fcn.00472bc0
fcom dword [0x612220]
add esp, 4
fst dword [esp + 0x1c]
mov bl, 1
fnstsw ax
test ah, 0x41
je 0x4f1bf4
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c8]
test ah, 4
je 0x4f1bfc
test byte [ebp + 4], 0x40
je 0x4f1bfc
xor bl, bl
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x4f1c23
call fcn.004019f0
fld dword [esp + 0x1c]
fmul dword [0x6122ec]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4f1c23
xor bl, bl
mov byte [esp + 0x16], 1
mov ecx, dword [ebp + 4]
or ecx, 1
test bl, bl
mov dword [ebp + 4], ecx
je 0x4f1d27
fld dword [esi + 0xa0]
lea ecx, [ebp + 0x34]
fsub dword [edi]
fstp dword [ecx]
fld dword [esi + 0xa4]
fsub dword [edi + 4]
fstp dword [ecx + 4]
fld dword [esi + 0xa8]
fsub dword [edi + 8]
fstp dword [ecx + 8]
call fcn.00401990
mov ecx, dword [esp + 0x18]
fld dword [ecx + 4]
fsub dword [ecx]
fcom dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x4f1ca0
fxch st(1)
fsub dword [ecx]
fdiv st(1)
fsubr dword [0x612224]
fxch st(1)
fstp st(0)
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x4f1ca4
fstp st(0)
fld dword [0x612220]
jmp 0x4f1cb9
fstp st(0)
jmp 0x4f1cb1
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x4f1cb9
fstp st(0)
fld dword [0x612224]
test byte [ecx + 0xc], 1
jne 0x4f1cc2
fst dword [ebp + 0x40]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x4f1ced
mov eax, dword [esp + 0x120]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push ebp
call fcn.004f2090
add esp, 0x18
mov byte [esp + 0x15], 1
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x7c]
cmp eax, 0xffffffff
je 0x4f1d27
mov edx, dword [0x816d04]
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edx + 0x14]
test byte [eax], 8
je 0x4f1d27
mov eax, dword [esi + 0x118]
cmp eax, 0xffffffff
je 0x4f1d27
push 1
push eax
push ebp
call fcn.004f1860
add esp, 0xc
mov al, byte [esp + 0x16]
test al, al
je 0x4f1d3f
test bl, bl
je 0x4f1d3b
mov al, byte [esp + 0x15]
test al, al
je 0x4f1d3f
or dword [ebp + 4], 0x40
mov al, byte [esp + 0x124]
test al, al
je 0x4f1d69
mov esi, dword [esi + 0x114]
cmp esi, 0xffffffff
je 0x4f1d69
mov byte [esp + 0x124], 1
mov dword [esp + 0x120], esi
jmp 0x4f1870
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret