Function at 0x5f2d61
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7319a6
push eax
mov eax, 0x5ab8
mov dword fs:[0], esp
call fcn.0070e6a0
mov eax, dword [0x80fe3c]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
jne 0x5e8ce6
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov edx, dword [0x839d64]
mov ecx, eax
sub ecx, edx
mov eax, 0x95217cb1
mul ecx
mov edi, edx
shr edi, 0x15
test edi, edi
mov dword [ebp - 0x38], edi
jle 0x5e8e20
cmp dword [0x834424], edi
je 0x5e8e20
call ebx
mov dword [esi + 0x310], eax
mov eax, dword [esi + 0x2f8]
test eax, eax
jne 0x5e8c4d
push 0x9c
call fcn.0070dddb
add esp, 4
mov dword [ebp - 0x240], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x5e8c22
mov ecx, eax
call fcn.0043cd10
jmp 0x5e8c24
xor eax, eax
push 8
push 8
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2f8], eax
call fcn.004fb080
mov eax, dword [esi + 0x2f8]
mov ecx, 0x7d67b0
push eax
call fcn.00503ea0
cmp edi, 3
push edi
jge 0x5e8c61
lea ecx, [ebp - 0x5a60]
push 0x789e4c
push ecx
jmp 0x5e8c6d
lea edx, [ebp - 0x5a60]
push 0x789e14
push edx
call fcn.0070dea8
mov ecx, dword [esi + 0x2f8]
add esp, 0xc
lea eax, [ebp - 0x5a60]
push 0x48
push eax
call fcn.0043c670
mov edx, dword [0x79cb18]
mov ecx, dword [esi + 0x2f8]
push 0x33
mov eax, dword [edx + 0x24]
mov ebx, dword [ecx]
mov edi, dword [ecx + 0x1c]
sub eax, 0x280
cdq
sub eax, edx
mov dword [ebp - 0x28], ebx
mov ebx, eax
mov eax, edi
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
mov eax, dword [ebp - 0x28]
add ebx, 0x140
push ebx
call dword [eax + 0x18]
mov eax, dword [esi + 0x2f8]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x60], 0x62b0ff
mov dword [eax + 0x64], 0
mov dword [0x834424], ecx
jmp 0x5e8e20
cmp eax, 0xf
jne 0x5e8e20
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov edx, dword [0x839d64]
mov ecx, eax
sub ecx, edx
mov eax, 0x95217cb1
mul ecx
mov edi, edx
shr edi, 0x15
cmp edi, 3
je 0x5e8d1b
cmp edi, 5
jne 0x5e8e20
call ebx
mov dword [esi + 0x310], eax
mov eax, dword [esi + 0x2f8]
test eax, eax
jne 0x5e8d7f
push 0x9c
call fcn.0070dddb
add esp, 4
mov dword [ebp - 0x240], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x5e8d54
mov ecx, eax
call fcn.0043cd10
jmp 0x5e8d56
xor eax, eax
push 8
push 8
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2f8], eax
call fcn.004fb080
mov edx, dword [esi + 0x2f8]
mov ecx, 0x7d67b0
push edx
call fcn.00503ea0
cmp edi, 3
jne 0x5e8d9e
push 0x57b
call fcn.0057ed70
push eax
push edi
lea eax, [ebp - 0x5ac4]
push str._d__s
push eax
jmp 0x5e8db6
push 0x57c
call fcn.0057ed70
push eax
push edi
lea ecx, [ebp - 0x5ac4]
push str._d__s
push ecx
call fcn.0070dea8
mov ecx, dword [esi + 0x2f8]
add esp, 0x14
lea edx, [ebp - 0x5ac4]
push 0x48
push edx
call fcn.0043c670
mov eax, dword [0x79cb18]
mov ecx, dword [esi + 0x2f8]
push 0x33
mov eax, dword [eax + 0x24]
mov ebx, dword [ecx]
mov edi, dword [ecx + 0x1c]
sub eax, 0x280
cdq
sub eax, edx
mov dword [ebp - 0x28], ebx
mov ebx, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [ebp - 0x28]
sar ebx, 1
sar eax, 1
sub ebx, eax
add ebx, 0x140
push ebx
call dword [edx + 0x18]
mov eax, dword [esi + 0x2f8]
mov dword [eax + 0x60], 0x62b0ff
mov dword [eax + 0x64], 0
call fcn.00419190
mov ecx, eax
call fcn.00418820
test al, al
jne 0x5e8e43
mov ecx, dword [0x80fe54]
push 0
push 0
push 0
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
cmp dword [0x80feb0], 1
jne 0x5e8e86
push 1
lea ecx, [ebp - 0x944]
push 4
push ecx
call fcn.00419190
mov ecx, eax
call fcn.00418920
test eax, eax
je 0x5f2d88
mov dword [0x80feb0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x59fc]
push edx
call fcn.00419190
mov ecx, eax
call fcn.00418f70
test al, al
je 0x5f2d88
lea eax, [ebp - 0x59fc]
push eax
call fcn.00419190
mov ecx, eax
call fcn.00419130
movsx eax, ax
add eax, 0xffffff8d
cmp eax, 0x7ca
ja 0x5f2d61
jmp dword [eax*4 + 0x5f2d9c]
call fcn.00419190
mov ecx, eax
call fcn.00418980
lea edx, [ebp - 0x59fc]
push edx
call fcn.00419190
mov ecx, eax
call fcn.00418f70
test al, al
jne 0x5e8ea1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret