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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov al, byte [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
cmp al, byte [ebx + 0x135]
jne 0x5fd7a7
cmp byte [ebp + 0xc], 0
je 0x5fda8a
mov ecx, dword [ebx + 0x34]
mov ecx, dword [ecx + 8]
call fcn.0053a4a0
mov esi, eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x135], al
test al, al
jne 0x5fd8ec
mov ecx, dword [ebx + 0x11c]
sub ecx, dword [ebx + 0x114]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jns 0x5fd7e1
fadd dword [0x893070]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov eax, dword [ebx + 0x43c]
dec eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fdiv st(1)
mov eax, dword [ebx + 0x120]
sub eax, dword [ebx + 0x118]
mov dword [esp + 0x18], eax
fstp dword [esp + 0xc]
fild dword [esp + 0x18]
jns 0x5fd822
fadd dword [0x893070]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov eax, dword [ebx + 0x48]
sub eax, 2
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0xc]
fld dword [esp + 0x10]
fcompi st(1)
fstp st(0)
jbe 0x5fd85c
movss xmm0, dword [esp + 0xc]
jmp 0x5fd862
movss xmm0, dword [esp + 0x10]
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0x18], esi
movss dword [esp + 0x10], xmm0
fild dword [esp + 0x18]
test esi, esi
jns 0x5fd880
fadd dword [0x893070]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x10]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov edx, dword [ecx]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
mov dword [esp + 0x14], eax
fmulp st(3)
fxch st(2)
fldcw word [esp + 0x14]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
push eax
fldcw word [esp + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x18], eax
fmulp st(1)
fldcw word [esp + 0x18]
fistp qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
fldcw word [esp + 0x14]
call dword [edx + 0x58]
jmp 0x5fda7c
mov eax, dword [ebx + 0x144]
mov ecx, dword [ebx + 0x148]
mov dword [ebx + 0x13c], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x140], ecx
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
test al, al
je 0x5fd92c
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xe0]
mov edx, dword [eax + 0xe4]
jmp 0x5fd945
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
sub ecx, dword [eax + 4]
sub edx, dword [eax]
mov eax, dword [ebx + 0x11c]
lea edi, [esi + esi*2]
sub eax, dword [ebx + 0x114]
add edi, edi
imul eax, esi
sub edx, edi
sub ecx, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fdiv st(1)
mov eax, dword [ebx + 0x120]
sub eax, dword [ebx + 0x118]
imul eax, esi
fstp dword [esp + 0x10]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fdiv st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fld dword [esp + 0xc]
fcompi st(1)
fstp st(0)
jbe 0x5fd9d2
movss xmm1, dword [esp + 0x10]
jmp 0x5fd9d8
movss xmm1, dword [esp + 0xc]
movss xmm0, dword [0x892b20]
comiss xmm0, xmm1
jbe 0x5fd9ed
movss dword [esp + 0x10], xmm1
jmp 0x5fd9f5
mov dword [esp + 0x10], 0x3f800000
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.00733ff0
fmulp st(1)
mov edi, eax
call fcn.00733ff0
mov ecx, dword [ebx + 0xf8]
mov esi, eax
push esi
push edi
mov edx, dword [ecx]
call dword [edx + 0x58]
mov ecx, dword [ebx + 0x108]
add esi, dword [esp + 0x18]
add edi, dword [esp + 0x18]
push esi
mov eax, dword [ecx]
push edi
call dword [eax + 0x78]
mov ecx, dword [ebx + 0x108]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x58]
mov ebx, dword [ebx + 0x108]
mov ecx, ebx
mov edi, dword [ebx]
call dword [edi + 0x3c]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov ecx, dword [ecx + 0x108]
mov edx, dword [ecx]
call dword [edx + 0x38]
push 0
push 0x100
push esi
push eax
push 0
push 0
mov ecx, ebx
call dword [edi + 0x2c]
mov ebx, dword [esp + 0x14]
mov dword [ebx + 0x138], 0x5a
mov ecx, ebx
call fcn.005fdaa0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8