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

Disassembly:
sub esp, 0xc0
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x6c], edi
mov eax, dword [edi]
shl ecx, 5
add eax, ecx
test byte [eax + 0x1a], 2
je 0x4ba9d0
mov edx, dword [eax]
push ebx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], edx
xor ebx, ebx
lea edx, [ecx + 0x10]
push ebp
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x48], edx
mov ecx, dword [edi]
mov esi, dword [esp + 0x48]
xor eax, eax
mov ax, word [esi + ecx]
cmp eax, 0xffff
je 0x4ba9b4
shl eax, 5
add eax, ecx
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], edx
mov ecx, dword [eax]
mov dword [esp + 0x98], ecx
fld dword [esp + 0x98]
fsub dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov eax, dword [eax + 8]
fstp dword [esp + 0x6c]
fld dword [esp + 0x9c]
fsub dword [esp + 0x30]
mov dword [esp + 0xa0], eax
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x14], ebp
fstp dword [esp + 0x70]
fld dword [esp + 0xa0]
fsub dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x18], 0
fstp dword [esp + 0x74]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
cmp ebx, esi
je 0x4ba994
mov ecx, dword [edi]
mov edx, dword [esp + 0x44]
xor eax, eax
mov ax, word [edx + ecx]
cmp eax, 0xffff
je 0x4ba994
shl eax, 5
add eax, ecx
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
fld dword [esp + 0x7c]
fsub dword [esp + 0x2c]
mov edx, dword [eax + 4]
mov dword [esp + 0x80], edx
mov eax, dword [eax + 8]
fstp dword [esp + 0x8c]
fld dword [esp + 0x80]
fsub dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x90]
fld dword [esp + 0x84]
fsub dword [esp + 0x34]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x94]
fld dword [esp + 0x14]
fcomp dword [0x60477c]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x40], edx
fnstsw ax
test ah, 0x44
jp 0x4ba713
fld dword [esp + 0x18]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4ba713
fld dword [esp + 0x1c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4ba713
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
jmp 0x4ba757
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
fcomp dword [0x60477c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebp
fnstsw ax
test ah, 0x44
jp 0x4ba7a7
fld dword [esp + 0x40]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4ba7a7
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ecx
fld dword [esp + 0x58]
jmp 0x4ba7db
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [0x60477c]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x40]
fld dword [esp + 0x28]
fmul dword [esp + 0x50]
fld st(1)
fmul dword [esp + 0x20]
fsubp st(1)
fstp dword [esp + 0xc8]
fmul dword [esp + 0x28]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x20]
faddp st(1)
fst dword [esp + 0x10]
fcomp dword [0x5f53f4]
fnstsw ax
and eax, 0x4100
jne 0x4ba825
mov dword [esp + 0x10], 0x3f800000
fld dword [esp + 0x10]
call fcn.0058c730
fld dword [esp + 0xc8]
fcomp dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x4ba848
fsubr dword [0x5da6c4]
fld dword [0x5da6bc]
fmul st(1)
fmul dword [0x5da6b8]
fstp dword [esp + 0x10]
and dword [esp + 0x10], 0x7fffffff
fld dword [esp + 0x10]
fcomp dword [0x5e85fc]
fnstsw ax
test ah, 5
jp 0x4ba992
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fpatan
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x10]
fmul dword [0x5e4354]
fstp dword [esp + 0x88]
fld dword [esp + 0x30]
fadd dword [0x5da2d4]
fstp dword [esp + 0x64]
fld dword [esp + 0xd8]
fmul dword [0x5da6d0]
call fcn.0058c3f0
mov esi, eax
mov ebx, 0x15
shl esi, 0x18
or esi, 0xffff
mov edi, dword [esp + 0x10]
push edi
call fcn.004beaf0
fstp dword [esp + 0xb8]
push edi
call fcn.004beac0
fmul dword [0x5eb7fc]
fld dword [esp + 0xbc]
fmul dword [0x5eb7fc]
fxch st(1)
fadd dword [esp + 0x68]
push 0
push esi
push esi
fstp dword [esp + 0xb8]
fld dword [esp + 0x78]
mov edx, dword [esp + 0xb8]
fstp dword [esp + 0xbc]
fld dword [esp + 0x7c]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xcc], edx
fadd st(1)
mov dword [esp + 0xd0], eax
lea edx, [esp + 0xcc]
lea eax, [esp + 0x74]
push edx
fstp dword [esp + 0xc4]
mov ecx, dword [esp + 0xc4]
push eax
fstp st(0)
mov dword [esp + 0xdc], ecx
call fcn.005467b0
fld dword [esp + 0xa4]
fadd dword [esp + 0x2c]
add esp, 0x1c
dec ebx
fstp dword [esp + 0x10]
jne 0x4ba8da
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
jmp 0x4ba994
fstp st(0)
mov ecx, dword [esp + 0x44]
inc esi
add ecx, 2
cmp esi, 5
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ecx
jb 0x4ba630
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x48]
inc ebx
add ecx, 2
cmp ebx, 5
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x48], ecx
jb 0x4ba5a0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc0
ret 8