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

Disassembly:
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0x360]
test al, al
je 0x58165c
mov eax, dword [edi + 0x35c]
test eax, eax
je 0x58165c
push fcn.00525130
push 2
push 0xc
lea eax, [esp + 0x70]
push eax
call fcn.00401000
mov eax, dword [edi + 0x114]
test eax, eax
je 0x581383
push eax
mov ecx, 0x69f328
call fcn.005298b0
test al, al
jne 0x5810e5
mov eax, dword [edi + 0x35c]
test eax, eax
je 0x58165c
mov ecx, eax
mov byte [ecx + 0x29], 1
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x58165c
mov eax, edx
mov ecx, dword [eax + 4]
xor ebp, ebp
test ecx, ecx
jle 0x58165c
xor ebx, ebx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx + 0x12c]
test eax, eax
je 0x5810c4
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.005e4d10
push ecx
push 0xbc
push eax
call fcn.0061682e
push esi
call fcn.00616a81
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
add esp, 4
mov dword [eax + ebx + 0x12c], 0
mov eax, dword [edi + 0x35c]
mov ecx, dword [eax + 4]
inc ebp
add ebx, 0x158
cmp ebp, ecx
jl 0x581082
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0x18
lea ebp, [edi + 0x1a0]
xor esi, esi
lea ebx, [esp + 0x64]
mov ecx, ebp
mov eax, dword [ecx]
mov edx, ebx
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 edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x20]
mov ecx, dword [edi + 0x114]
add eax, esi
push eax
call fcn.0058fbc0
test eax, eax
je 0x58136e
mov ecx, dword [edi + 0x114]
cmp ecx, dword [ecx + 0x44]
je 0x581139
mov dword [esp + 0x10], 0x3f800000
jmp 0x581143
mov ecx, dword [ecx + 0x9c]
mov dword [esp + 0x10], ecx
lea edx, [eax + 0x14]
mov ecx, dword [edx]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
add eax, 8
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x35c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x7c], 0x3f800000
mov edx, dword [eax + 0x20]
fld dword [esi + edx + 0x100]
fstp dword [esp + 0xac]
mov ecx, dword [eax + 0x20]
fld dword [esi + ecx + 0x104]
lea ecx, [esp + 0x10c]
fstp dword [esp + 0xb0]
mov edx, dword [eax + 0x20]
fld dword [esi + edx + 0x108]
lea eax, [esp + 0x1c]
push eax
fstp dword [esp + 0xb8]
push ecx
call fcn.004f8f79
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.004f82b4
mov eax, dword [edi + 0x35c]
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x1c]
push edx
lea edx, [ecx + esi + 0x10c]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.004f95c8
fld dword [esp + 0xfc]
mov ecx, dword [esp + 0xbc]
fadd dword [esp + 0x4c]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
fld dword [esp + 0x100]
mov edx, ebx
fadd dword [esp + 0x50]
fld dword [esp + 0x104]
fadd dword [esp + 0x54]
fstp dword [esp + 0x60]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x58]
fmul dword [esp + 0x10]
fld dword [esp + 0x60]
fmul dword [esp + 0x10]
fld dword [esp + 0x58]
fadd dword [ebp]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fxch st(1)
mov dword [edx], eax
fadd dword [edi + 0x1a4]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov dword [edx + 4], ecx
fadd dword [edi + 0x1a8]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [edx + 8], eax
add esi, 0x144
add ebx, 0xc
cmp esi, 0x288
jl 0x5810f1
mov esi, dword [edi + 0x35c]
mov al, byte [esi + 0x28]
test al, al
mov eax, dword [esp + 0x154]
jne 0x58158d
mov ecx, dword [esi + 0x30]
cmp ecx, eax
jne 0x58165c
fld dword [esp + 0x158]
call fcn.0061672c
cmp dword [esi + 0x34], eax
jg 0x58165c
mov byte [esi + 0x28], 1
call dword [sym.imp.winmm.dll_timeGetTime]
mov edx, dword [edi + 0x35c]
mov dword [edx + 0x2c], eax
mov eax, dword [edi + 0x35c]
mov ecx, dword [eax + 4]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x18], ebp
jle 0x58165c
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + ebp]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x14], ecx
jle 0x581560
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov eax, dword [edi + 0x35c]
mov ecx, dword [eax + 0x1c]
mov esi, dword [ecx + ebp + 0x12c]
mov edx, dword [esp + 0x10]
add ecx, ebp
add esi, edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x14c], edx
je 0x581535
mov eax, dword [edi + 0x200]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x35c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + ebp + 0x134]
push eax
mov ecx, esi
call fcn.005e2c20
call fcn.006167ae
mov ecx, dword [edi + 0x35c]
mov edx, dword [ecx + 0x1c]
fld dword [edx + ebp + 0x104]
mov ebx, eax
call fcn.0061672c
mov ecx, eax
mov eax, ebx
cdq
idiv ecx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fadd dword [0x658c68]
fstp dword [esi + 0x1c]
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp + 0x10c]
fld dword [eax + ebp + 0x110]
add eax, ebp
fstp dword [esi + 0x4c]
mov dword [esi + 0x48], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
mov ecx, esi
call fcn.005e2a20
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
mov ecx, esi
call fcn.005e2a40
mov ecx, esi
call fcn.005e2c70
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp + 0x154]
mov dword [esi + 0x68], ecx
push 1
mov ecx, esi
call fcn.005e2af0
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
lea ecx, [eax + ebp + 4]
push ecx
push 0
mov ecx, esi
call fcn.005e2e80
mov dword [esi + 0x3c], 1
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp + 0x108]
mov dword [esi + 0x50], ecx
mov ecx, esi
call fcn.005e4bc0
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp + 0x13c]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x35c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [edx + 0x1c]
mov edx, dword [ecx + ebp]
inc eax
add esi, 0xbc
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jl 0x581400
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x35c]
mov edx, dword [eax + 4]
inc ecx
add ebp, 0x158
cmp ecx, edx
mov dword [esp + 0x18], ecx
jl 0x5813e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0x18
mov edx, dword [esi + 0x38]
cmp edx, eax
jne 0x581633
fld dword [esp + 0x158]
call fcn.0061672c
cmp dword [esi + 0x3c], eax
jg 0x581633
mov byte [esi + 0x29], 1
mov eax, dword [edi + 0x35c]
mov ecx, dword [eax + 4]
xor ebp, ebp
test ecx, ecx
jle 0x58165c
xor ebx, ebx
jmp 0x5815d0
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx + 0x12c]
test eax, eax
je 0x581612
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.005e4d10
push ecx
push 0xbc
push eax
call fcn.0061682e
push esi
call fcn.00616a81
mov edx, dword [edi + 0x35c]
mov eax, dword [edx + 0x1c]
add esp, 4
mov dword [eax + ebx + 0x12c], 0
mov eax, dword [edi + 0x35c]
mov ecx, dword [eax + 4]
inc ebp
add ebx, 0x158
cmp ebp, ecx
jl 0x5815d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0x18
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x160]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x170]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, edi
call fcn.0057fd90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0x18