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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
fld dword [esi + 0x108]
xor dl, dl
fcomp dword [0x7d7d3c]
push edi
fnstsw ax
test ah, 0x41
jne 0x59d304
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x59d304
fld dword [0x7fc720]
mov dl, 1
fmul dword [esi + 0x124]
fstp dword [esi + 0x124]
fld dword [esi + 0x124]
mov eax, dword [esi + 0x114]
fld dword [esi + 0x128]
mov ecx, dword [esi + 0x18]
imul eax, eax, 0x98
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x1c]
fld dword [eax + 0x800f04]
mov eax, dword [esi + 0x20]
fmul dword [ecx + 0xc]
mov ecx, dword [eax + 0x424]
cmp ecx, 1
fmul dword [esi + 0x188]
fmul dword [esi + 0x184]
fmul dword [esi + 0x180]
fmul dword [esi + 0x164]
fmul dword [0x7fc718]
fstp dword [esp + 0x18]
jne 0x59d37b
mov ecx, esi
call fcn.0059d150
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x59d3c3
fld dword [esp + 0x1c]
fcomp dword [0x78435c]
fnstsw ax
test ah, 0x41
jne 0x59d3c3
fld dword [esp + 0x18]
fdiv dword [esp + 0x1c]
fld dword [esi + 0x128]
fld st(1)
fmul dword [esi + 0x124]
fstp dword [esi + 0x124]
fmul st(1)
fstp dword [esi + 0x128]
fstp st(0)
jmp 0x59d3d9
test dl, dl
je 0x59d3d9
fld dword [esi + 0x124]
fdiv dword [0x7fc720]
fstp dword [esi + 0x124]
fld dword [esp + 0x18]
mov ecx, 0x3f800000
fcomp dword [0x78435c]
fnstsw ax
test ah, 0x41
jne 0x59d40a
fld dword [esp + 0x1c]
fdiv dword [esp + 0x18]
fst dword [esi + 0x170]
fcomp dword [0x784250]
fnstsw ax
test ah, 0x41
jne 0x59d410
mov dword [esi + 0x170], ecx
mov al, byte [esi + 0x160]
test al, al
jne 0x59d424
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x59d42a
mov dword [esi + 0x170], ecx
mov al, byte [esi + 0x11c]
test al, al
jne 0x59d43e
mov dword [esi + 0x170], 0
lea ebx, [esi + 0x70]
lea ecx, [esp + 0x80]
push ebx
push ecx
call fcn.0043ca30
lea edx, [esi + 0xf0]
push edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xc0], 0
call fcn.0043ca20
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push edx
push eax
call fcn.0043c5d0
movzx ecx, ax
mov dword [esp + 0x38], ecx
add esp, 0x1c
fild dword [esp + 0x1c]
fmul dword [0x784240]
fst dword [esp + 0x18]
fcomp dword [0x7a1788]
fnstsw ax
test ah, 0x41
jne 0x59d4cd
fld dword [0x7a1788]
fadd st(0), st(0)
fsubr dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x60]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 5
jp 0x59d509
fld dword [0x7a1788]
fadd dword [esp + 0x18]
fst dword [esp + 0x18]
fcomp dword [0x7a1788]
fnstsw ax
test ah, 0x41
jne 0x59d509
fld dword [0x7a1788]
fadd st(0), st(0)
fsubr dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
push ecx
fadd dword [0x784254]
fstp dword [esp]
call fcn.0043c3b0
mov edx, dword [esp + 0x1c]
fstp st(0)
push edx
call fcn.0043c3b0
fmul dword [esi + 0x128]
fld dword [esp + 0x68]
add esp, 8
fabs
fcomp dword [0x784250]
fnstsw ax
test ah, 0x41
jne 0x59d558
fmul dword [0x7844f0]
fsubr dword [esi + 0x124]
fstp dword [esi + 0x124]
jmp 0x59d55a
fstp st(0)
lea eax, [esp + 0x20]
push eax
call fcn.0043c7e0
mov eax, dword [0x7fc7fc]
add esp, 4
cmp eax, 1
jne 0x59d5e1
fld dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x90]
fstp dword [esp + 0x24]
fld dword [ebx + 8]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x28]
fld dword [ebx + 0xc]
mov dword [esp + 0x30], edx
fstp dword [esp + 0x2c]
fld dword [esi + 0x84]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x34]
fld dword [esi + 0x88]
fstp dword [esp + 0x38]
fld dword [esi + 0x8c]
fstp dword [esp + 0x3c]
fld dword [esi + 0x94]
fstp dword [esp + 0x44]
fld dword [esi + 0x98]
fstp dword [esp + 0x48]
fld dword [esi + 0x9c]
fstp dword [esp + 0x4c]
jmp 0x59d769
cmp eax, 2
jne 0x59d672
fld dword [esi + 0x158]
lea edi, [esi + 0x150]
fmul dword [ebx + 8]
push ecx
fld dword [edi + 4]
lea ecx, [esp + 0x24]
fmul dword [ebx + 4]
faddp st(1)
fld dword [ebx]
fmul dword [edi]
faddp st(1)
fchs
fstp dword [esp]
push edi
push ebx
push ecx
call fcn.0043d130
fld dword [edi + 8]
fmul dword [esi + 0x88]
lea eax, [esi + 0x80]
fld dword [edi + 4]
add esp, 0xc
fmul dword [eax + 4]
lea edx, [esp + 0x34]
mov dword [esp + 0x30], 0
faddp st(1)
fld dword [eax]
fmul dword [edi]
faddp st(1)
fchs
fstp dword [esp]
push edi
push eax
push edx
call fcn.0043d130
fld dword [edi + 4]
mov eax, dword [edi]
fstp dword [esp + 0x54]
fld dword [edi + 8]
add esp, 0x10
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], eax
jmp 0x59d75d
cmp eax, 3
jne 0x59d6fb
fld dword [ebx + 8]
lea edi, [esi + 0x150]
fmul dword [edi + 8]
push ecx
fld dword [ebx + 4]
lea ecx, [esp + 0x24]
fmul dword [edi + 4]
faddp st(1)
fld dword [edi]
fmul dword [ebx]
faddp st(1)
fchs
fstp dword [esp]
push edi
push ebx
push ecx
call fcn.0043d130
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0043cf80
fld dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x60]
fld dword [edi + 8]
push eax
lea ecx, [esp + 0x50]
fstp dword [esp + 0x68]
push ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x70], 0
call fcn.0043d250
add esp, 0x24
mov dword [esp + 0x3c], 0
jmp 0x59d769
cmp eax, 4
jne 0x59d769
fld dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x150]
fstp dword [esp + 0x24]
fld dword [ebx + 8]
mov dword [esp + 0x20], edx
fstp dword [esp + 0x28]
fld dword [ebx + 0xc]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x2c]
fld dword [esi + 0x84]
mov dword [esp + 0x40], ecx
fstp dword [esp + 0x34]
fld dword [esi + 0x88]
fstp dword [esp + 0x38]
fld dword [esi + 0x8c]
fstp dword [esp + 0x3c]
fld dword [esi + 0x154]
fstp dword [esp + 0x44]
fld dword [esi + 0x158]
fstp dword [esp + 0x48]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x124]
mov eax, dword [esi + 0x128]
mov ecx, dword [esi + 0x164]
mov dword [esp + 0x70], edx
lea edx, [esp + 0x70]
mov dword [esp + 0x74], eax
push edx
lea eax, [esp + 0x24]
push eax
add esi, 0x130
push esi
mov dword [esp + 0x84], ecx
call fcn.0043ca20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4