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

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x54]
fld dword [edi]
mov dword [esp + 0x1c], ecx
fcomp dword [ebx]
fnstsw ax
test ah, 0x44
jp 0x4e3200
fld dword [edi + 4]
fcomp dword [ebx + 4]
fnstsw ax
test ah, 0x44
jp 0x4e3200
fld dword [edi + 8]
fcomp dword [ebx + 8]
fnstsw ax
test ah, 0x44
jp 0x4e3200
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret 0x18
mov edx, dword [0x680528]
push ebp
inc edx
push esi
mov esi, dword [esp + 0x64]
mov dword [0x680528], edx
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4e3224
mov dword [esi + 0xb8], 0x4cbebc20
mov ebp, dword [esp + 0x58]
test ebp, ebp
jne 0x4e323d
mov ecx, dword [ecx + 0x1a48]
call fcn.004d20d0
mov dword [esp + 0x58], eax
mov ebp, eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4e3247
mov dword [eax], ebp
mov eax, dword [esp + 0x68]
push eax
push 0x680558
push 0x680738
push ebx
push edi
push ebp
mov dword [0x680558], 0
call fcn.004e2fe0
mov ecx, dword [0x680558]
push 0x4e2060
push 0x34
push ecx
push 0x680738
call fcn.0058ecd0
mov eax, dword [0x680558]
add esp, 0x28
test eax, eax
mov dword [esp + 0x18], 0
jle 0x4e3542
mov eax, dword [esp + 0x68]
and eax, 0x2000000
mov ebp, 0x68074c
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebp
mov edi, edi
mov eax, dword [esi + 0x94]
test eax, eax
mov edx, dword [ebp + 4]
mov edi, dword [ebp]
mov dword [esp + 0x14], edx
mov ebx, 1
je 0x4e3399
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
test dword [esi + 0x24], 0x20000
lea ebp, [esi + 0x34]
jne 0x4e32fe
mov edx, dword [esi + 0x98]
push ebp
lea ecx, [esi + 0x28]
push ecx
mov ecx, dword [esi + 0x94]
push edx
call fcn.004d26c0
or dword [esi + 0x24], 0x20000
fld dword [ebp]
fsub dword [0x682138]
fld dword [ebp + 4]
fsub dword [0x68213c]
fld dword [ebp + 8]
mov ebp, dword [esp + 0x10]
fsub dword [0x682140]
fld dword [edi + 0xf0]
fsub dword [0x682138]
fld dword [edi + 0xf4]
fsub dword [0x68213c]
fld dword [edi + 0xf8]
fsub dword [0x682140]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp dword [esp + 0x1c]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x1c]
fsub dword [edi + 0xfc]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(4)
fmul st(5)
faddp st(1)
fsqrt
fstp st(4)
fxch st(1)
fxch st(3)
fcompp
fnstsw ax
fstp st(1)
test ah, 5
fstp st(0)
jp 0x4e3399
mov eax, dword [0x680578]
xor ebx, ebx
inc eax
mov dword [0x680578], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e33ac
test dword [edi + 0x10], 0x20000000
je 0x4e33ac
xor ebx, ebx
mov ecx, dword [0x68057c]
inc ecx
test ebx, ebx
mov dword [0x68057c], ecx
je 0x4e3520
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x4e3520
mov dword [esp + 0x48], 0
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x68]
push edx
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x78], 0
call fcn.004d2bd0
mov ecx, eax
xor edx, edx
cmp ecx, edx
je 0x4e3512
fld dword [esp + 0x64]
fcomp dword [esi + 0xb8]
fnstsw ax
test ah, 0x41
jp 0x4e3512
mov ebx, dword [esp + 0x28]
lea eax, [esi + 0x28]
mov dword [eax], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x9c], ecx
lea ecx, [esi + 0xa0]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x98], ecx
mov ecx, dword [esp + 0x64]
or ebx, 0xa83
mov dword [esi + 0x18], 1
mov dword [esi + 0xb0], edx
mov dword [esi + 0x94], edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0xb8], ecx
test byte [edi + 0x10], 1
mov eax, ebx
je 0x4e3502
or eax, 0x400
mov dword [esi + 0x24], eax
mov edx, dword [edi + 0xc0]
mov dword [esi + 0xb4], edx
jmp 0x4e3520
and eax, 0xfffffbff
mov dword [esi + 0x24], eax
mov dword [esi + 0xb4], edx
jmp 0x4e3520
cmp dword [esi + 0x94], edx
je 0x4e3520
inc dword [0x680574]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x680558]
inc eax
add ebp, 0x34
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
jl 0x4e32b0
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp + 0x19c]
test eax, eax
je 0x4e3690
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x4e3690
jmp 0x4e3560
cmp dword [edi + 0x3b4], 1
je 0x4e3682
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x2c]
push ecx
push edx
lea ebp, [edi + 0x210]
push eax
mov ecx, ebp
call fcn.004bfd40
test eax, eax
je 0x4e3682
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e35b2
fld dword [esi + 0xb8]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 5
jnp 0x4e3682
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.00548e10
add esp, 8
test eax, eax
je 0x4e3682
mov eax, dword [0x68054c]
cmp dword [edi + 0x44], eax
je 0x4e3682
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x44], edx
fld dword [esp + 0x44]
fmul dword [0x5da70c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x48], ecx
fld dword [esp + 0x48]
fmul dword [0x5da70c]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x4c], edx
fld dword [esp + 0x4c]
fmul dword [0x5da70c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
cmp dword [edi + 0x3ac], edx
fstp dword [esp + 0x3c]
fld dword [esp + 0x28]
fsub st(2)
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fsub st(1)
fstp dword [esp + 0x2c]
fstp st(0)
fstp st(0)
fld dword [esp + 0x30]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x30]
je 0x4e36d2
mov ecx, dword [0x680548]
mov edx, dword [esp + 0x68]
inc ecx
mov dword [0x680548], ecx
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push esi
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x38]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x3ac]
push edx
push eax
call fcn.004e31c0
cmp eax, 1
je 0x4e36a9
mov edi, dword [edi + 0x3a4]
test edi, edi
jne 0x4e3560
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e36d2
mov eax, dword [esi + 0x24]
pop esi
pop ebp
shr eax, 1
pop edi
and eax, 1
pop ebx
add esp, 0x44
ret 0x18
fld dword [0x5f53f4]
mov eax, 1
fsub dword [esp + 0x64]
fmul dword [esi + 0xb8]
fadd dword [esp + 0x64]
fstp dword [esi + 0xb8]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x44
ret 0x18
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret 0x18