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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x599b29
xor eax, eax
jmp 0x599b2e
mov eax, dword [edi + 0x10]
sub eax, ecx
mov ecx, dword [edi + 0xc]
push eax
push 0
push ecx
call fcn.0062f6b0
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xb0]
mov esi, dword [edi + 0xac]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 0x78]
add eax, 0x39
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0x54], eax
jle 0x599b6f
mov dword [esp + 0x54], ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
call sub.WINMM.dll_timeGetTime
mov edx, dword [edi + 0x114]
mov ecx, dword [edi + 0x90]
sub eax, edx
mov edx, dword [edi + 0x94]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x98]
add eax, ecx
mov ecx, dword [edi + 0x9c]
add ecx, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov ecx, edx
shl ecx, 6
sub ecx, eax
mov eax, esi
shl eax, 5
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
add eax, 0x20
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x54]
mov dword [esp + 0x20], esi
jae 0x599e80
jmp 0x599be0
cmp edx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
jae 0x599e5a
jmp 0x599c00
mov ebx, dword [esp + 0x14]
jmp 0x599c00
mov ecx, dword [edi + 0xe8]
test ecx, ecx
je 0x599cb9
mov eax, dword [edi + 0xec]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x599cb9
mov eax, ecx
shl ebx, 2
add eax, ebx
mov eax, dword [eax]
mov edx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x20]
mov eax, edx
cdq
and edx, 0x3f
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, 0x20
cdq
and edx, 0x1f
add eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 5
shl eax, 0x10
sar esi, 6
shl ecx, 0x10
or ecx, edx
or eax, esi
sub eax, ecx
test eax, eax
jg 0x599cb9
mov al, byte [edi + 0x28]
test al, al
jne 0x599c91
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + ebx]
mov edx, dword [ecx + 0x3c]
add eax, ebx
shr edx, 5
test dl, 1
jne 0x599cb0
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0xe8]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ebx
mov eax, dword [eax]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
inc dword [esp + 0x14]
jmp 0x599bf4
mov ebx, dword [edi + 0x74]
imul ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x84]
add ebx, edx
imul ebx, ebx, 0xf
add ebx, ecx
mov ecx, dword [edi + 0xd8]
test ecx, ecx
jne 0x599ce0
xor eax, eax
jmp 0x599ceb
mov eax, dword [edi + 0xdc]
sub eax, ecx
sar eax, 2
movzx ecx, byte [ebx + 2]
cmp ecx, eax
jae 0x599d40
mov edx, dword [edi + 0xd8]
mov eax, dword [edx + ecx*4]
test eax, eax
lea ecx, [edx + ecx*4]
je 0x599d40
movzx eax, word [ebx]
xor edx, edx
mov esi, 0x64
div esi
lea esi, [esp + 0x58]
push esi
push dword [ebp + 8]
push dword [esp + 0x2c]
push dword [esp + 0x24]
push dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx]
push eax
call fcn.005992a0
add esp, 0x20
test al, al
je 0x599d40
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.00599a70
mov edx, dword [ebx + 7]
test edx, edx
je 0x599db6
mov ecx, dword [edi + 0xd8]
test ecx, ecx
jne 0x599d55
xor eax, eax
jmp 0x599d60
mov eax, dword [edi + 0xdc]
sub eax, ecx
sar eax, 2
movzx ecx, byte [edx + 4]
cmp ecx, eax
jae 0x599db6
mov eax, dword [edi + 0xd8]
lea ecx, [eax + ecx*4]
cmp dword [ecx], 0
je 0x599db6
movzx eax, word [edx + 5]
xor edx, edx
mov esi, 0x64
div esi
mov ecx, dword [ecx]
lea esi, [esp + 0x68]
push esi
mov esi, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x2c]
push esi
push dword [esp + 0x24]
push dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.005992a0
add esp, 0x20
test al, al
je 0x599db6
lea edx, [esp + 0x68]
push edx
mov ecx, edi
call fcn.00599a70
mov ebx, dword [ebx + 0xb]
test ebx, ebx
je 0x599e2e
mov ecx, dword [edi + 0xd8]
test ecx, ecx
jne 0x599dcb
xor eax, eax
jmp 0x599dd6
mov eax, dword [edi + 0xdc]
sub eax, ecx
sar eax, 2
movzx ecx, byte [ebx + 4]
cmp ecx, eax
jae 0x599e2e
mov eax, dword [edi + 0xd8]
lea ecx, [eax + ecx*4]
cmp dword [ecx], 0
je 0x599e2e
movzx eax, word [ebx + 5]
xor edx, edx
mov esi, 0x64
div esi
mov ecx, dword [ecx]
lea esi, [esp + 0x78]
push esi
mov esi, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
push esi
push edx
push eax
push ecx
call fcn.005992a0
add esp, 0x20
test al, al
je 0x599e2e
lea edx, [esp + 0x78]
push edx
mov ecx, edi
call fcn.00599a70
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
inc eax
add edx, 0x40
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jb 0x599bf4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x54]
add eax, 0x20
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, esi
mov dword [esp + 0x20], eax
jb 0x599be0
lea ebx, [ebx]
mov ecx, dword [edi + 0xe8]
test ecx, ecx
je 0x599ed5
mov eax, dword [edi + 0xec]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x599ed5
mov al, byte [edi + 0x28]
test al, al
jne 0x599eb3
mov eax, ecx
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx + 0x3c]
lea eax, [eax + ebx*4]
shr edx, 5
test dl, 1
jne 0x599ed2
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
lea eax, [eax + ebx*4]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [edx + 0xc]
inc ebx
jmp 0x599e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4