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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x184
fld dword [ebp + 0xc]
push ebx
fcomp dword [0x7d7d3c]
push esi
push edi
mov dword [esp + 0xa4], ecx
fnstsw ax
test ah, 0x44
jnp 0x616053
mov ebx, dword [ebp + 0x20]
lea ecx, [ecx]
mov eax, dword [ebp + 8]
test eax, eax
je 0x616053
cmp eax, 1
mov ecx, dword [esp + 0xa4]
lea edi, [ecx + eax*8 + 0x458]
jl 0x615ab2
cmp eax, 5
jg 0x615ab2
mov ecx, dword [0x883e68]
test ecx, ecx
je 0x615ab2
mov edx, dword [ebp + 0x10]
imul eax, eax, 0x1d
and edx, 0xffff
add eax, edx
lea edi, [ecx + eax*8 - 0xe8]
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00401310
mov eax, dword [ebp + 0x18]
fld dword [eax + 4]
mov edx, dword [eax]
mov esi, dword [edi]
fstp dword [esp + 0x9c]
fld dword [eax + 8]
add esp, 8
fstp dword [esp + 0x98]
mov ecx, edi
mov dword [esp + 0x90], edx
mov dword [esp + 0x9c], 0x3f800000
call fcn.005d7ab0
cmp esi, eax
mov dword [esp + 0xb0], eax
je 0x616041
jmp 0x615b10
lea eax, [esi + 0x40]
push eax
lea eax, [esp + 0x114]
push eax
call fcn.00401310
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 0x5c]
mov edx, dword [esp + 0xac]
mov ecx, dword [ebp + 0x14]
add esp, 8
test ecx, ecx
lea eax, [edx + eax*8 + 0x548]
mov dword [esp + 0xa8], eax
je 0x615b56
lea ecx, [edx + ecx*8 + 0x548]
mov dword [esp + 0xa8], ecx
mov eax, ecx
mov edi, dword [eax]
cmp edi, eax
je 0x61601c
fld dword [ebp + 0xc]
fchs
fstp dword [esp + 0xc4]
lea esp, [esp]
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00401310
mov eax, dword [edi + 0x10]
add esp, 8
test eax, eax
je 0x615b9b
mov ecx, dword [eax + 0x44]
fld dword [eax + 0x40]
mov edx, dword [eax + 0x48]
mov dword [esp + 0x18], ecx
jmp 0x615bda
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov ecx, eax
and ecx, 0xfffffffe
mov dword [esp + 0xcc], eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [edi + 0xc]
fld dword [esp + 0xb4]
mov eax, edx
mov dword [esp + 0xb8], edx
and eax, 0xfffffffe
mov edx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc0], ecx
and edx, 0xfffffffe
mov eax, dword [esp + 0x18]
fst dword [esp + 0x50]
mov ecx, edx
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x54], eax
mov al, dl
test al, 1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0xac], edx
je 0x615c32
fld dword [esp + 0x20]
fmul dword [0x7842a0]
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fmul dword [0x7842a0]
fstp dword [esp + 0x30]
fld dword [esp + 0x40]
fmul dword [0x7842a0]
fstp dword [esp + 0x40]
mov eax, dword [edi + 8]
test al, 1
mov dword [esp + 0xbc], eax
je 0x615c6a
fld dword [esp + 0x24]
fmul dword [0x7842a0]
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fmul dword [0x7842a0]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fmul dword [0x7842a0]
fstp dword [esp + 0x44]
mov ecx, dword [edi + 0xc]
mov al, cl
test al, 1
mov dword [esp + 0xc8], ecx
je 0x615ca4
fld dword [esp + 0x28]
fmul dword [0x7842a0]
fstp dword [esp + 0x28]
fld dword [esp + 0x38]
fmul dword [0x7842a0]
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
fmul dword [0x7842a0]
fstp dword [esp + 0x48]
fld dword [esp + 0x2c]
fmul dword [esp + 0x90]
fld dword [esp + 0x80]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x20]
faddp st(1)
fstp dword [esp + 0xd0]
fld dword [esp + 0x2c]
fmul dword [esp + 0x94]
fld dword [esp + 0x84]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x20]
faddp st(1)
fstp dword [esp + 0xd4]
fld dword [esp + 0x88]
fmul dword [esp + 0x28]
fld dword [esp + 0x78]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x68]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x98]
faddp st(1)
fstp dword [esp + 0xd8]
fld dword [esp + 0x8c]
fmul dword [esp + 0x28]
fld dword [esp + 0x7c]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [esp + 0x20]
faddp st(1)
fadd dword [esp + 0x2c]
fstp dword [esp + 0xdc]
fld dword [esp + 0x3c]
fmul dword [esp + 0x90]
fld dword [esp + 0x80]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x30]
faddp st(1)
fstp dword [esp + 0xe0]
fld dword [esp + 0x3c]
fmul dword [esp + 0x94]
fld dword [esp + 0x84]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x30]
faddp st(1)
fstp dword [esp + 0xe4]
fld dword [esp + 0x88]
fmul dword [esp + 0x38]
fld dword [esp + 0x78]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x68]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [esp + 0x98]
faddp st(1)
fstp dword [esp + 0xe8]
fld dword [esp + 0x8c]
fmul dword [esp + 0x38]
fld dword [esp + 0x7c]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [esp + 0x30]
faddp st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0xec]
fld dword [esp + 0x4c]
fmul dword [esp + 0x90]
fld dword [esp + 0x80]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x40]
faddp st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0x4c]
fmul dword [esp + 0x94]
fld dword [esp + 0x84]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x40]
faddp st(1)
fstp dword [esp + 0xf4]
fld dword [esp + 0x88]
fmul dword [esp + 0x48]
fld dword [esp + 0x78]
fmul dword [esp + 0x44]
faddp st(1)
lea edx, [esp + 0xd0]
fld dword [esp + 0x68]
push edx
fmul dword [esp + 0x44]
lea eax, [esp + 0x154]
push eax
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0xa0]
faddp st(1)
fstp dword [esp + 0x100]
fld dword [esp + 0x94]
fmul dword [esp + 0x50]
fld dword [esp + 0x84]
fmul dword [esp + 0x4c]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x48]
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x104]
fld dword [esp + 0x88]
fmul dword [esp + 0x24]
fld dword [esp + 0x78]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x68]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x98]
fstp dword [esp + 0x108]
fld dword [esp + 0x8c]
fmul dword [esp + 0x24]
fld dword [esp + 0x7c]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x6c]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x9c]
fstp dword [esp + 0x10c]
fld dword [esp + 0x90]
fmul dword [esp + 0x24]
fld dword [esp + 0x80]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x70]
fmul st(2)
faddp st(1)
fadd dword [esp + 0xa0]
fstp dword [esp + 0x110]
fld dword [esp + 0x94]
fmul dword [esp + 0x24]
fld dword [esp + 0x84]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x74]
fmul st(2)
faddp st(1)
fadd dword [0x784250]
fstp dword [esp + 0x114]
fstp st(0)
call fcn.00401310
lea ecx, [esp + 0x158]
push ecx
lea eax, [esi + 0x40]
push eax
call fcn.00401310
fld dword [ebx + 8]
fld dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0xb4]
fstp dword [esi + 0x84]
add esp, 0x10
mov dword [esi + 0x80], edx
fstp dword [esi + 0x88]
mov edx, dword [esp + 0xc4]
mov dword [esi + 0x8c], 0
mov ecx, dword [eax]
push ecx
push edx
push esi
mov ecx, 0x8357e0
call fcn.00491e10
mov edi, dword [edi]
cmp edi, dword [esp + 0xa8]
jne 0x615b70
lea eax, [esp + 0x110]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.00401310
mov esi, dword [esi]
mov eax, dword [esp + 0xb8]
add esp, 8
cmp esi, eax
jne 0x615b10
cmp dword [ebp + 8], 0xd
jne 0x616053
mov dword [ebp + 8], 0xe
jmp 0x615a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c