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

Disassembly:
sub esp, 0x8c
fld dword [0x6c263c]
push esi
fsub dword [esp + 0x9c]
mov esi, ecx
mov eax, dword [esi + 0x3c]
push edi
xor edi, edi
fstp dword [esp + 0xc]
test eax, eax
jbe 0x57b619
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov edi, edi
mov al, byte [esi + 0x8c]
test al, al
je 0x57b3d5
cmp edi, dword [esi + 0x74]
jne 0x57b3d5
lea eax, [esi + 0xec]
push eax
lea ecx, [esi + 0xc8]
push ecx
mov ecx, dword [esi + 0x78]
call fcn.005803b0
mov edx, dword [esp + 0xa0]
push edi
push edx
mov ecx, esi
call fcn.0057b110
test al, al
mov byte [esp + 0x13], al
je 0x57b461
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + edi*4]
mov ebp, dword [ecx + 0x34]
lea edx, [ebp + 0x5c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], eax
lea eax, [ebp + 0x38]
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], edx
call fcn.005575d0
mov al, byte [esi + 0x8c]
test al, al
mov ecx, dword [ebp + 0x68]
mov dword [esp + 0x38], ecx
je 0x57b461
cmp edi, dword [esi + 0x74]
jne 0x57b461
mov ecx, dword [esi + 0x78]
lea edx, [esi + 0xec]
push edx
lea eax, [esi + 0xc8]
push eax
call fcn.00580250
mov eax, dword [esi + 0x84]
lea ecx, [eax + 0xec]
push ecx
mov ecx, dword [esi + 0x78]
add eax, 0xc8
push eax
call fcn.005803b0
mov edx, dword [esp + 0xa4]
mov ecx, dword [esi + 0x84]
push edi
push edx
call fcn.0057b110
mov bl, al
test bl, bl
je 0x57b4d0
lea eax, [ebp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], ecx
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call fcn.005575d0
mov al, byte [esi + 0x8c]
test al, al
mov edx, dword [ebp + 0x68]
mov dword [esp + 0x18], edx
je 0x57b4d0
cmp edi, dword [esi + 0x74]
jne 0x57b4d0
mov eax, dword [esi + 0x84]
lea ecx, [eax + 0xec]
push ecx
mov ecx, dword [esi + 0x78]
add eax, 0xc8
push eax
call fcn.00580250
mov al, byte [esp + 0x13]
test al, al
je 0x57b60b
test bl, bl
je 0x57b60b
fld dword [esp + 0x48]
fmul dword [esp + 0xa8]
fld dword [esp + 0x4c]
fmul dword [esp + 0xa8]
fld dword [esp + 0x50]
fmul dword [esp + 0xa8]
fstp dword [esp + 0x78]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fstp dword [esp + 0x68]
fld dword [esp + 0x44]
fmul dword [esp + 0x14]
fstp dword [esp + 0x6c]
fadd st(2)
fstp dword [esp + 0x2c]
fld dword [esp + 0x68]
fadd st(1)
fstp dword [esp + 0x30]
fstp st(0)
fstp st(0)
fld dword [esp + 0x6c]
fadd dword [esp + 0x78]
fstp dword [esp + 0x34]
fld dword [esp + 0x60]
fmul dword [esp + 0x28]
fld dword [esp + 0x5c]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x1c]
faddp st(1)
fcomp dword [0x715554]
fnstsw ax
test ah, 5
jp 0x57b5a8
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x20]
call fcn.005571f0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xa8]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x88]
push eax
call fcn.005602f0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea ecx, [ebp + 0x5c]
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
add esp, 0x10
lea eax, [ebp + 0x38]
mov dword [ecx + 8], edx
push eax
lea ecx, [esp + 0x80]
call fcn.005227c0
fld dword [esp + 0x38]
fmul dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0xa8]
faddp st(1)
fabs
fstp dword [ebp + 0x68]
mov eax, dword [esi + 0x3c]
inc edi
cmp edi, eax
jb 0x57b3b0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x8c
ret 0xc