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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ebp, dword [eax]
mov al, byte [esi + 0x54]
test al, al
push edi
je 0x617956
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x617940
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x6178df
mov edi, dword [eax + 4]
add edi, 0x10
jmp 0x6178e1
xor edi, edi
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x617929
push 0
push eax
lea ebx, [esi + 0x48]
push ebx
call fcn.005e4280
test edi, edi
je 0x617956
push edi
lea ecx, [esi + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.007eddc0
fld dword [esp + 0x48]
fadd dword [ebx]
add esp, 0xc
fstp dword [ebx]
fld dword [esp + 0x40]
fadd dword [esi + 0x4c]
fstp dword [esi + 0x4c]
fld dword [esp + 0x44]
fadd dword [esi + 0x50]
fstp dword [esi + 0x50]
jmp 0x617956
test edi, edi
je 0x617956
push edi
lea eax, [esi + 0x38]
push eax
lea ecx, [esi + 0x48]
push ecx
call fcn.007edd60
add esp, 0xc
jmp 0x617956
lea edx, [esi + 0x38]
mov ecx, dword [edx]
lea eax, [esi + 0x48]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jle 0x617bfc
lea eax, [ebp + 0x6c]
mov dword [esp + 0x14], eax
add ebp, 0x3c
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
mov edi, dword [ecx + ebx*4]
lea edx, [edi + 0x6c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
push ebp
lea eax, [esi + 0x20]
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x4c], edx
call fcn.007eddc0
fld dword [esp + 0x54]
fadd dword [esp + 0x48]
lea edx, [esp + 0x30]
fld dword [esp + 0x58]
push edx
fadd dword [esp + 0x50]
fld dword [esp + 0x60]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fxch st(1)
fsub dword [esp + 0x40]
fstp dword [esp + 0x34]
fsub dword [esp + 0x44]
fstp dword [esp + 0x38]
fld dword [esp + 0x54]
fsub dword [esp + 0x48]
fstp dword [esp + 0x3c]
call fcn.007edac0
fcomp dword [0x858c14]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x617bf0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.007ed9b0
fstp st(0)
fld dword [esi + 0x48]
lea edx, [esp + 0x20]
fsub dword [esp + 0x38]
push edx
fstp dword [esp + 0x24]
fld dword [esi + 0x4c]
fsub dword [esp + 0x40]
fstp dword [esp + 0x28]
fld dword [esi + 0x50]
fsub dword [esp + 0x44]
fstp dword [esp + 0x2c]
call fcn.007edac0
fcomp dword [0x858c14]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x617bf0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.007ed9b0
fstp st(0)
fld dword [esp + 0x24]
add esp, 8
fmul dword [esp + 0x28]
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x2c]
faddp st(1)
fst dword [esp + 0x10]
fcomp dword [0x86d2c8]
fnstsw ax
test ah, 5
jp 0x617bf0
mov ecx, edi
call fcn.00616cb0
fld dword [esp + 0x10]
call fcn.00822380
fst dword [esp + 0x10]
fmulp st(1)
mov eax, dword [edi + 0x2c]
test eax, eax
fmul dword [esi + 0x44]
fmul dword [0x859878]
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fmul dword [esp + 0x28]
fld dword [esp + 0x1c]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x18]
fmul dword [esp + 0x2c]
fld dword [esp + 0x20]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x1c]
fmul dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x5c]
je 0x617b18
add eax, 0x3c
push eax
lea edx, [esp + 0x70]
push edx
jmp 0x617b21
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.007eb5c0
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
add esp, 8
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
faddp st(1)
fcom dword [0x858b50]
fnstsw ax
test ah, 0x41
jne 0x617b95
fdivr dword [0x858624]
fld dword [esp + 0x78]
fmul st(1)
fstp dword [esp + 0x88]
fchs
fld dword [esp + 0x6c]
fmul st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x70]
fmul st(1)
fstp dword [esp + 0x80]
fld dword [esp + 0x74]
fmul st(1)
fstp dword [esp + 0x84]
lea edx, [esp + 0x7c]
fstp st(0)
push edx
push 1
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.007ebbb0
mov edx, dword [esp + 0x20]
push 2
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.007eb7c0
mov al, byte [0x8d2bd2]
add esp, 0x20
test al, al
je 0x617bd9
mov edx, dword [esi + 0x18]
push edx
mov ecx, edi
call fcn.00617650
mov eax, dword [edi + 0x2c]
test eax, eax
mov ecx, edi
je 0x617be7
add eax, 0x3c
jmp 0x617bea
mov eax, dword [esi + 0x14]
push eax
call fcn.00616cd0
mov eax, dword [esi + 0xc]
inc ebx
cmp ebx, eax
jl 0x617970
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret