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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e492b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa5c
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax + 0xa78]
push edi
mov dword [ebx + 0x1324], ecx
mov edx, dword [eax + 0xa7c]
mov dword [ebx + 0x1328], edx
mov ecx, dword [eax + 0xa80]
mov dword [ebx + 0x132c], ecx
mov edx, dword [eax + 0xa84]
mov dword [ebx + 0x1330], edx
mov ecx, dword [eax + 0xa88]
mov dword [ebx + 0x1334], ecx
mov edx, dword [eax + 0xa8c]
mov dword [ebx + 0x1338], edx
mov ecx, dword [eax + 0xa90]
mov dword [ebx + 0x133c], ecx
lea edi, [ebx + 0x1340]
lea esi, [eax + 0xa94]
mov ecx, 0x17
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0xaf0]
lea edi, [ebx + 0x8ac]
mov dword [ebx + 0x139c], edx
mov ecx, dword [eax + 0xaf4]
mov dword [ebx + 0x13a0], ecx
mov edx, dword [eax + 0xaf8]
mov dword [ebx + 0x13a4], edx
mov ecx, dword [eax + 0xafc]
mov dword [ebx + 0x13a8], ecx
mov edx, dword [eax + 0xb00]
mov dword [ebx + 0x13ac], edx
mov ecx, dword [eax + 0xb04]
mov dword [ebx + 0x13b0], ecx
mov edx, dword [eax + 0xb08]
mov ecx, 0x200
mov esi, eax
mov dword [ebx + 0x13b4], edx
mov dword [esp + 0x2c], 0
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x800]
lea edi, [ebx + 0x10ac]
mov ecx, 0x82
mov dword [esp + 0x30], 0
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x12b4]
lea esi, [eax + 0xa08]
mov ecx, 0x1c
mov dword [esp + 0x58], 0
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
lea eax, [esp + 0xc4]
mov ecx, 4
mov dword [eax - 0x10], edi
mov dword [eax - 8], edi
mov dword [eax], edi
mov dword [eax - 0xc], edi
mov dword [eax - 4], edi
mov dword [eax + 4], edi
mov dword [eax + 8], 0x2710
add eax, 0x1c
dec ecx
jne 0x580a35
lea ecx, [esp + 0xc4]
lea eax, [ebx + 0x12c4]
mov esi, 4
mov edx, dword [eax - 0x10]
add eax, 0x1c
mov dword [ecx - 0x10], edx
mov edx, dword [eax - 0x28]
mov dword [ecx - 0xc], edx
mov edx, dword [eax - 0x24]
mov dword [ecx - 8], edx
mov edx, dword [eax - 0x20]
mov dword [ecx - 4], edx
mov edx, dword [eax - 0x1c]
mov dword [ecx], edx
mov edx, dword [eax - 0x18]
mov dword [ecx + 4], edx
mov edx, dword [eax - 0x14]
mov dword [ecx + 8], edx
add ecx, 0x1c
dec esi
jne 0x580a65
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
lea eax, [esp + 0xc4]
mov ecx, 4
fld qword [eax - 0x10]
fsub qword [esp + 0x1c]
add eax, 0x1c
dec ecx
fstp qword [eax - 0x2c]
fld qword [eax - 0x24]
fsub qword [esp + 0x24]
fstp qword [eax - 0x24]
fld qword [eax - 0x1c]
fsub qword [esp + 0x2c]
fstp qword [eax - 0x1c]
jne 0x580acf
fld qword [esp + 0xd8]
fld qword [esp + 0xd0]
fpatan
lea eax, [esp + 0xbc]
mov ecx, 4
fstp qword [esp + 0x50]
fld qword [0x5e9fe8]
fsub qword [esp + 0x50]
fld st(0)
fcos
fstp qword [esp + 0x14]
fsin
fld qword [eax - 8]
fld qword [eax]
fld qword [esp + 0x14]
fmul st(2)
fld st(3)
fmul st(2)
add eax, 0x1c
dec ecx
fsubp st(1)
fstp qword [eax - 0x24]
fld qword [esp + 0x14]
fmul st(1)
fld st(3)
fmul st(3)
faddp st(1)
fstp qword [eax - 0x1c]
fstp st(0)
fstp st(0)
jne 0x580b27
fstp st(0)
fld qword [esp + 0xf4]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 1
je 0x580b7d
fld qword [esp + 0x110]
mov dword [esp + 0x10], 1
fchs
jmp 0x580b84
fld qword [esp + 0x110]
fld qword [esp + 0x108]
fdiv st(1)
mov eax, dword [ebx + 0x1340]
cmp eax, edi
mov dword [esp + 0x14], eax
fstp qword [esp + 0x84]
fld qword [esp + 0xd0]
fdiv qword [ebx + 0x1484]
fstp qword [esp + 0x9c]
fdiv qword [ebx + 0x1484]
fstp qword [esp + 0xa4]
jge 0x580bc9
neg eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [ebx + 0x12b4], edi
mov dword [ebx + 0x12bc], edi
mov dword [ebx + 0x12d8], edi
mov dword [ebx + 0x1308], edi
fmul qword [0x5ea008]
lea ecx, [esp + 0x124]
mov dword [ebx + 0x12b8], edi
mov dword [ebx + 0x12c0], edi
mov dword [ebx + 0x12dc], edi
mov dword [ebx + 0x130c], edi
fst qword [ebx + 0x1484]
fst qword [ebx + 0x12d0]
fst qword [ebx + 0x12ec]
fst qword [ebx + 0x12f4]
fstp qword [ebx + 0x1310]
call fcn.0055f180
mov dword [esp + 0xa70], edi
lea esi, [ebx + 0x12c4]
mov dword [esp + 0x14], 4
push 0x1c
call fcn.005b449a
add esp, 4
cmp eax, edi
je 0x580c7a
mov ecx, dword [esi - 0x10]
mov dword [eax], ecx
mov edx, dword [esi - 0xc]
mov dword [eax + 4], edx
mov ecx, dword [esi - 8]
mov dword [eax + 8], ecx
mov edx, dword [esi - 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esi]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 8]
mov dword [eax + 0x18], ecx
jmp 0x580c7c
xor eax, eax
push eax
lea ecx, [esp + 0x128]
call fcn.00565880
mov eax, dword [esp + 0x14]
add esi, 0x1c
dec eax
mov dword [esp + 0x14], eax
jne 0x580c42
mov edx, dword [ebx + 0x1484]
mov ecx, dword [ebx + 0x1488]
mov eax, 0x2710
mov dword [esp + 0x68], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x80], eax
lea edx, [esp + 0x9c]
lea eax, [esp + 0x34]
mov dword [esp + 0x6c], ecx
push edx
push eax
lea ecx, [esp + 0x12c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.005601d0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x12c]
call fcn.0055fd30
cmp dword [esp + 0x10], edi
je 0x580d5f
lea eax, [esp + 0x68]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x12c]
call fcn.0055ff30
lea edx, [esp + 0x50]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x12c]
call fcn.0055fbd0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x128]
call fcn.0055fac0
lea ecx, [esp + 0x124]
call fcn.005655a0
lea esi, [ebx + 0x12c4]
mov dword [esp + 0x10], 4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov dword [esi - 0x10], edx
mov edx, dword [ecx + 4]
mov dword [esi - 0xc], edx
mov edx, dword [ecx + 8]
mov dword [esi - 8], edx
mov edx, dword [ecx + 0xc]
mov dword [esi - 4], edx
mov edx, dword [ecx + 0x10]
mov dword [esi], edx
mov edx, dword [ecx + 0x14]
mov dword [esi + 4], edx
mov ecx, dword [ecx + 0x18]
mov dword [esi + 8], ecx
lea ecx, [esp + 0x128]
call fcn.00565610
mov ecx, dword [esp + 0x10]
add esi, 0x1c
dec ecx
mov dword [esp + 0x10], ecx
jne 0x580da0
mov ecx, dword [ebx + 0x139c]
cmp ecx, 2
sbb eax, eax
xor edx, edx
and eax, ecx
mov ecx, dword [ebx + 0x13a4]
cmp edx, ecx
mov dword [ebx + 0x139c], eax
sbb eax, eax
and eax, ecx
mov dword [ebx + 0x13a4], eax
mov eax, dword [ebx + 0x1490]
cmp eax, edi
je 0x580e32
mov ecx, dword [ebx + 0x148c]
mov dword [ebx + 0x1490], edi
cmp ecx, edi
je 0x580e2c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x148c], edi
mov ecx, dword [ebx + 0x8a0]
mov dword [ebx + 0x83c], edi
cmp ecx, edi
je 0x580e48
push edi
call fcn.00549900
lea ecx, [esp + 0x124]
mov dword [ebx + 0x838], edi
mov dword [esp + 0xa70], 0xffffffff
call fcn.0055f650
mov ecx, dword [esp + 0xa68]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4