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

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.winmm.dll_timeGetTime]
mov edi, dword [esp + 0x10c]
imul edi, edi, 0x158
mov ecx, eax
mov eax, dword [esi + 0x328]
lea ebx, [edi + eax]
mov eax, dword [ebx + 0x120]
mov edx, ecx
sub edx, eax
mov eax, 0xcccccccd
mul edx
mov eax, dword [ebx + 0x114]
shr edx, 5
cmp edx, eax
jb 0x5808ef
mov eax, dword [esi + 0x328]
mov dword [edi + eax + 0x120], ecx
mov ecx, dword [esi + 0x328]
lea eax, [edi + ecx]
cmp dword [eax], 0
mov dword [esp + 0x10], 0
jle 0x5808ef
xor ebp, ebp
jmp 0x580620
mov ecx, dword [eax + 0x12c]
test ecx, ecx
je 0x5808cd
mov cl, byte [eax + 0x118]
test cl, cl
je 0x580819
lea edx, [esi + 0x1e0]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
fmul dword [0x664da0]
mov eax, dword [esi + 0x1a4]
mov dword [esp + 0x2c], edx
fld dword [esp + 0x2c]
fmul dword [0x664da0]
mov dword [esp + 0x28], ecx
lea ebx, [esi + 0x1a0]
fxch st(1)
fadd dword [ebx]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fadd dword [ebx + 8]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], ecx
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
sub esp, 0xc
mov ecx, ebx
mov eax, dword [ecx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, esi
call fcn.0057fa70
mov edx, dword [esi + 0x328]
lea eax, [edi + edx]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov ecx, dword [eax + 0x140]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 0x144]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x70], edx
mov eax, dword [eax + 0x148]
mov edx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.004f908f
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.004f82b4
mov al, byte [esi + 0x37c]
test al, al
je 0x5807d3
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
push edx
mov edx, dword [esi + 0x328]
push eax
push ecx
mov ecx, dword [edi + edx + 0x12c]
jmp 0x580812
fld dword [esp + 0xc0]
mov eax, dword [esi + 0x328]
fadd dword [esi + 0x1a8]
mov ecx, dword [eax + edi + 0x12c]
add eax, edi
sub esp, 0xc
fstp dword [esp + 8]
fld dword [eax + 0x144]
fadd dword [esi + 0x1a4]
fstp dword [esp + 4]
fld dword [esp + 0xc4]
fadd dword [ebx]
fstp dword [esp]
add ecx, ebp
call fcn.005e2a20
mov eax, dword [esi + 0x118]
test eax, eax
mov dword [esp + 0x14], 0
je 0x58083a
push eax
mov ecx, 0x69f328
call fcn.005298b0
test al, al
jne 0x580842
fld dword [0x64fc90]
jmp 0x580887
mov ecx, dword [esi + 0x118]
push 0x65a378
call fcn.0058fbc0
mov ecx, dword [esi + 0x118]
cmp ecx, dword [ecx + 0x44]
je 0x580865
fld dword [0x64fe64]
jmp 0x58086b
fld dword [ecx + 0x9c]
test eax, eax
je 0x580881
add eax, 0x50
je 0x580879
fmul dword [eax + 0x34]
jmp 0x580887
fmul dword [0x64fe60]
jmp 0x580887
fstp st(0)
fld dword [esp + 0x14]
mov eax, dword [esi + 0x1f0]
mov ecx, dword [eax + 8]
fadd dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 0x328]
push ecx
push ecx
mov ecx, dword [edi + eax + 0x12c]
fstp dword [esp]
push edx
add ecx, ebp
call fcn.005e2a40
mov edx, dword [esi + 0x328]
push 0
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [edi + edx + 0x12c]
add ecx, ebp
call fcn.005e6450
mov eax, dword [esi + 0x328]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + edi]
add eax, edi
inc ecx
add ebp, 0xbc
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x580620
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 0x10