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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
fild dword [ecx + 0x44]
mov eax, dword [0x836b2c]
push ebx
mov ebx, eax
push ebp
fld st(0)
imul ebx, eax
fmul qword [0x790fd8]
fadd qword [0x787570]
fstp qword [esp + 0x58]
fld st(0)
fmul qword [0x790fd0]
push esi
push edi
mov dword [esp + 0x24], ebx
fstp qword [esp + 0x50]
fmul qword [0x788170]
fstp qword [esp + 0x80]
fld qword [esp + 0x50]
fcomp qword [0x790ce8]
fnstsw ax
test ah, 1
jne 0x581878
xor edi, edi
cmp ebx, edi
jle 0x581878
xor esi, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov eax, dword [0xa5861c]
add esi, eax
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x2a]
cmp cx, di
jne 0x581471
cmp ax, di
je 0x5817ff
dec ecx
dec eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x10], edi
movsx edx, cx
movsx eax, ax
mov dword [esi + 0x14], edi
mov edi, dword [0xa58614]
lea ebp, [eax + edx]
mov dword [esp + 0x48], 0
cmp ebp, edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jle 0x5814eb
mov ebx, edx
sub ebx, eax
cmp ebx, edi
jge 0x5814eb
sub eax, edx
cmp eax, edi
jge 0x5814eb
cmp ebp, dword [0xa58618]
jg 0x5814eb
movsx eax, word [esp + 0x10]
imul eax, dword [0x836b2c]
movsx edx, cx
add eax, edx
mov edx, dword [0xa5861c]
lea eax, [eax + eax*4]
shl eax, 4
fld qword [eax + edx + 8]
fstp qword [esp + 0x48]
movsx eax, word [esp + 0x2a]
movsx ecx, cx
lea edx, [eax + ecx]
cmp edx, edi
jle 0x58154b
mov ebx, ecx
sub ebx, eax
cmp ebx, edi
jge 0x58154b
mov ebx, eax
sub ebx, ecx
cmp ebx, edi
jge 0x58154b
cmp edx, dword [0xa58618]
jg 0x58154b
imul eax, dword [0x836b2c]
fld qword [esi + 8]
add eax, ecx
mov ecx, dword [0xa5861c]
lea eax, [eax + eax*4]
shl eax, 4
add eax, ecx
fadd qword [eax + 8]
fstp qword [esi + 8]
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
fld qword [eax + 8]
fsub qword [esp + 0x48]
fstp qword [esp + 0x30]
jmp 0x581565
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x50]
mov dword [esi + 8], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x54]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], eax
movsx ecx, word [esp + 0x28]
movsx eax, word [esp + 0x10]
mov edx, dword [0xa58614]
lea edi, [eax + ecx]
cmp edi, edx
jle 0x5815ce
mov ebx, ecx
sub ebx, eax
cmp ebx, edx
jge 0x5815ce
mov ebx, eax
sub ebx, ecx
cmp ebx, edx
jge 0x5815ce
cmp edi, dword [0xa58618]
jg 0x5815ce
imul eax, dword [0x836b2c]
add eax, ecx
mov ecx, dword [0xa5861c]
lea eax, [eax + eax*4]
shl eax, 4
add eax, ecx
fld qword [eax + 8]
fadd qword [esi + 8]
fstp qword [esi + 8]
fld qword [eax + 0x10]
fadd qword [esi + 0x10]
fstp qword [esi + 0x10]
fld qword [eax + 8]
fsub qword [esp + 0x48]
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
jmp 0x5815e4
fld qword [esp + 0x50]
mov ecx, dword [esi + 8]
fadd qword [esi + 0x10]
mov dword [esi + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [esi + 0xc], edx
fstp qword [esi + 0x10]
fld qword [esi + 8]
fmul qword [0x785728]
fst qword [esi + 8]
fld qword [esi + 0x10]
fmul qword [0x785728]
fstp qword [esi + 0x10]
fld qword [esp + 0x30]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x41
jne 0x58161f
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jmp 0x58163a
fld qword [esp + 0x30]
fcomp qword [0x786610]
fnstsw ax
test ah, 1
je 0x58163a
fld qword [esp + 0x60]
fchs
fstp qword [esp + 0x30]
mov al, byte [esi + 0x45]
test al, al
je 0x581669
fcom qword [0x786610]
fnstsw ax
test ah, 0x41
je 0x581656
fstp st(0)
fld qword [0x786610]
fstp qword [esi + 8]
mov dword [esi + 0x10], 0x47ae147b
mov dword [esi + 0x14], 0x3f647ae1
jmp 0x58166b
fstp st(0)
fld qword [esi + 0x10]
fchs
fstp qword [esp + 0x40]
fld qword [esp + 0x80]
fsub qword [esi + 0x10]
mov eax, dword [0x790cec]
mov edx, dword [0x790ce8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x58], edx
fstp qword [esp + 0x10]
fld qword [0x790ce8]
fchs
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x5816c9
fld qword [0x790ce8]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x5816e3
fld qword [esp + 0x10]
fsub qword [esp + 0x40]
fmul qword [0x785728]
fst qword [esp + 0x58]
fadd qword [esp + 0x40]
fstp qword [esp + 0x68]
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [esp + 0x58]
fadd qword [esp + 0x68]
fst qword [esp + 0x70]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
jne 0x5816e3
fld qword [esp + 0x70]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x5816e3
fld qword [esp + 0x70]
fadd qword [esi + 0x10]
fst qword [esp + 0x70]
fstp qword [esi + 0x10]
fld qword [0x790fc8]
fsub qword [esi + 8]
fstp qword [esp + 0x10]
fld qword [0x7856f8]
fsub qword [esi + 8]
fstp qword [esp + 0x40]
fld qword [esp + 0x30]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x581750
fld qword [esp + 0x10]
jmp 0x581769
fld qword [esp + 0x30]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x581765
fld qword [esp + 0x40]
jmp 0x581769
fld qword [esp + 0x30]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
fst qword [esp + 0x78]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fld st(0)
fsub qword [esp + 0x38]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
je 0x5817a3
fld qword [esp + 0x38]
fadd st(1)
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 1
fstp st(0)
je 0x5817bf
jmp 0x5817a5
fstp st(0)
fld qword [esp + 0x40]
fsub qword [esp + 0x10]
fmul qword [0x785728]
fst qword [esp + 0x38]
fadd qword [esp + 0x10]
fstp qword [esp + 0x78]
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [esp + 0x38]
fadd qword [esp + 0x78]
fst qword [esp + 0x70]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x5817bf
fld qword [esp + 0x70]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
je 0x5817bf
fld qword [esp + 0x70]
fadd qword [esi + 8]
mov ebx, dword [esp + 0x24]
xor edi, edi
fstp qword [esi + 8]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esi, 0x50
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jne 0x581452
cmp ebx, edi
jle 0x581878
mov eax, dword [0xa5861c]
fld qword [edi + eax + 8]
fcomp qword [0x786610]
lea esi, [edi + eax + 8]
fld qword [esi]
fnstsw ax
test ah, 1
je 0x58184e
fsub qword [0x785728]
call fcn.0076a6b0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
jmp 0x581870
fcomp qword [0x786610]
fnstsw ax
test ah, 0x41
jne 0x581872
fld qword [esi]
fadd qword [0x785728]
call fcn.0076a6b0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fstp qword [esi]
add edi, 0x50
dec ebx
jne 0x58181d
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret