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

Disassembly:
mov eax, 0x8060
call fcn.0042bcd0
xor ecx, ecx
push esi
mov esi, dword [esp + 0x8068]
test esi, esi
mov byte [esp + 0xb], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ecx
je 0x4087c2
mov edx, dword [esi + 4]
cmp edx, 2
jl 0x4087c2
mov eax, dword [esi + 8]
fild dword [eax]
push ebx
push ebp
push edi
fst dword [esp + 0x48]
mov dword [esp + 0x50], ecx
fild dword [eax + 4]
mov al, byte [esi]
test al, al
mov dword [esp + 0x38], ecx
fst dword [esp + 0x4c]
mov dword [esp + 0x44], ecx
fld st(1)
mov edi, 1
fstp dword [esp + 0x30]
fst dword [esp + 0x34]
fxch st(1)
fstp dword [esp + 0x3c]
fstp dword [esp + 0x40]
jne 0x408468
dec edx
xor eax, eax
test edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jle 0x4086d4
xor ebx, ebx
lea esp, [esp]
inc eax
fld dword [esp + 0x10]
mov dword [esp + 0x60], eax
fcomp dword [0x4369fc]
cdq
idiv dword [esi + 4]
fnstsw ax
mov ebp, dword [esi + 8]
mov esi, edx
shl esi, 5
add esi, ebp
test ah, 5
jp 0x4086a8
lea eax, [esp + ecx*4 + 0x6c]
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x17]
test al, al
je 0x4084bf
mov byte [esp + 0x17], 0
jmp 0x408516
test ecx, ecx
fild dword [esp + 0x2c]
fadd dword [esp + 0x10]
fstp dword [esp + ecx*4 + 0x4070]
jle 0x4084ee
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00408380
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
fstp dword [eax]
add esp, 8
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
inc ecx
add eax, 4
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
fld dword [esp + 0x1c]
fcomp dword [0x436c08]
fnstsw ax
test ah, 5
jp 0x40867a
mov dword [esp + 0x38], 0
fld dword [0x4369fc]
lea eax, [edi + edi*2]
fsub dword [esp + 0x10]
shl eax, 2
mov dword [esp + eax + 0x50], 0
lea ecx, [esp + 0x64]
fstp dword [esp + 0x18]
push ecx
fild dword [ebx + ebp]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fild dword [esi]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [ebx + ebp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x14]
fmul dword [0x436a34]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esi + 0xc]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fmul dword [0x436a34]
faddp st(1)
fst dword [esp + eax + 0x4c]
fild dword [ebx + ebp + 4]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fild dword [esi + 4]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x14]
fmul dword [ebx + ebp + 0x18]
fmul dword [0x436a34]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fmul dword [esi + 0x10]
fmul dword [0x436a34]
faddp st(1)
fst dword [esp + eax + 0x50]
fxch st(1)
fstp dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x4c]
fsub dword [esp + 0x58]
fstp dword [esp + 0x68]
fld dword [esp + 0x50]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x6c]
fld dword [esp + 0x54]
fsub dword [esp + 0x60]
fstp dword [esp + 0x70]
call fcn.0040fbe0
fadd dword [esp + 0x20]
add esp, 4
inc edi
and edi, 0x80000001
fstp dword [esp + 0x1c]
jns 0x408646
dec edi
or edi, 0xfffffffe
inc edi
fld dword [esp + 0x10]
fadd qword [0x4368a0]
fst dword [esp + 0x10]
fcomp dword [0x4369fc]
fnstsw ax
test ah, 1
je 0x40869f
fld dword [esp + 0x1c]
fcomp dword [0x436c08]
fnstsw ax
test ah, 5
jnp 0x408533
mov ecx, dword [esp + 0x20]
fld dword [esp + 0x1c]
fsub dword [0x436c08]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fcomp dword [0x4369fc]
fnstsw ax
test ah, 5
jnp 0x4084b0
jmp 0x4086a8
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x17], 1
fld dword [esp + 0x10]
mov eax, dword [esp + 0x60]
fsub dword [0x4369fc]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x8074]
add ebx, 0x20
cmp eax, edx
fstp dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jl 0x408480
cmp byte [esi], 0
lea ebx, [ecx*4]
je 0x4086f2
mov edx, dword [esp + 0x70]
mov dword [esp + ebx + 0x70], edx
mov eax, dword [esp + 0x70]
mov dword [esp + ebx + 0x6c], eax
jmp 0x4086fe
fld dword [esp + ecx*4 + 0x68]
fst dword [esp + ebx + 0x70]
fstp dword [esp + ebx + 0x6c]
push ebx
mov dword [esi + 0xc], ecx
call fcn.0042b34b
mov ebp, dword [esp + 0x8078]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov dword [ebp + 0x10], eax
mov edi, eax
lea esi, [esp + 0x4074]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0042b34b
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
mov ecx, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add esp, 8
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
dec edx
test edx, edx
jle 0x40879a
jmp 0x408760
fld dword [esp + ecx*4 + 0x74]
fsub dword [esp + ecx*4 + 0x70]
fcom dword [0x436eb0]
fnstsw ax
test ah, 0x41
jne 0x40877b
fsub dword [0x436eac]
fcom dword [0x436ea8]
fnstsw ax
test ah, 5
jp 0x40878e
fadd dword [0x436eac]
fstp dword [esp + ecx*4 + 0x4070]
inc ecx
cmp ecx, edx
jl 0x408760
push ebx
call fcn.0042b34b
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov dword [ebp + 0x18], eax
lea esi, [esp + 0x4074]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x8060
ret