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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 5
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], 0
je 0x4ba93c
push 0
lea edx, [esp + 0x34]
push edx
lea ecx, [esi + 0x15c]
call fcn.00478990
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ba93c
mov ecx, dword [eax + 0x18]
cmp dword [ecx + 0x78], 9
jne 0x4ba938
mov edx, dword [eax + 4]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x128]
test dh, 4
jne case.default.0x4ba965
mov esi, eax
jmp 0x4ba942
mov esi, dword [esi + 0x23c]
xor edi, edi
test esi, esi
mov dword [esp + 0x18], edi
je 0x4ba959
mov ecx, esi
call fcn.0048ce50
mov edi, eax
mov dword [esp + 0x18], edi
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x4ba965
jmp dword [eax*4 + 0x4bb06c]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [edx + 0x8f8]
and esi, 0x7fffffff
test eax, eax
je 0x4ba9ba
mov eax, edx
mov ecx, dword [eax + 0x8f4]
test ecx, ecx
je 0x4ba9ba
call dword [0x5f64d8]
mov ecx, dword [esp + 0x10]
sub esi, dword [ecx + 0x8f8]
cmp esi, eax
jle 0x4ba9ba
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 0x8f8], ecx
mov dword [eax + 0x8f4], ecx
cmp ebx, 1
jne 0x4ba9ff
test edi, edi
je 0x4ba9f1
fild dword [ebp + 0x10]
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x40c]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push ebx
push edx
call fcn.00539220
mov eax, dword [esp + 0x10]
mov dword [eax + 0x8f8], 0
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x8ec]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x1c], esi
je 0x4baa1e
call fcn.0048ce50
mov esi, eax
mov dword [esp + 0x1c], esi
xor eax, eax
cmp edi, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
je 0x4baa3c
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.005376d0
xor ecx, ecx
xor eax, eax
cmp esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
je 0x4baa78
mov ecx, esi
call fcn.00537390
test al, al
je 0x4baa70
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.005376d0
mov eax, dword [esp + 0x38]
jmp 0x4bab28
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x8fc]
test edx, edx
je 0x4bab2c
xor edi, edi
test edx, edx
jbe 0x4baaf1
jmp 0x4baaa0
mov ecx, dword [esp + 0x3c]
jmp 0x4baaa0
mov edx, dword [ebx + 0x904]
mov esi, dword [edx + edi*4]
lea edx, [eax + 1]
cmp edx, ecx
jbe 0x4baad6
test ecx, ecx
je 0x4baabd
lea eax, [ecx + ecx]
mov dword [esp + 0x3c], eax
jmp 0x4baac5
mov dword [esp + 0x3c], 0x80
lea ecx, [esp + 0x38]
call fcn.004b5e80
test al, al
mov eax, dword [esp + 0x38]
je 0x4baae6
mov ecx, dword [esp + 0x40]
mov dword [ecx + eax*4], esi
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov ecx, dword [ebx + 0x8fc]
inc edi
cmp edi, ecx
jb 0x4baa92
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x904]
xor edi, edi
cmp ecx, edi
je 0x4bab14
push ecx
call fcn.005ddc00
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esi + 0x904], edi
mov dword [esi + 0x900], edi
mov dword [esi + 0x8fc], edi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4bab69
test eax, eax
je 0x4bab62
test eax, eax
je 0x4bab72
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + edx*4 - 4]
mov ecx, dword [esp + 0x40]
cmp edx, dword [ecx + eax*4 - 4]
mov edx, dword [esp + 0x44]
jne 0x4bab72
dec edx
dec eax
test edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
jne 0x4bab38
jmp 0x4bab72
dec edx
mov dword [esp + 0x44], edx
jmp 0x4bab72
test eax, eax
je 0x4bab72
dec eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4bada2
mov eax, dword [ebx + 0x8ec]
test eax, eax
je 0x4bad10
cmp ecx, eax
je 0x4bae4e
test esi, esi
je 0x4bac49
mov ebx, dword [esp + 0x1c]
fild dword [ebp + 0x10]
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
fstp qword [esp + 0x20]
fild dword [ebp + 0xc]
mov esi, dword [ecx + 0x410]
mov ecx, dword [esp + 0x14]
push 0
fstp qword [esp + 0x2c]
call fcn.0048ce50
fld qword [esp + 0x24]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, ebx
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 1
push esi
call fcn.00539220
mov eax, dword [esp + 0x38]
xor ebx, ebx
test eax, eax
jbe 0x4bac49
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + ebx*4]
call fcn.0048ce50
mov esi, eax
test esi, esi
je 0x4bac40
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [edx + 0x44c]
push 0
call fcn.0048ce50
fld qword [esp + 0x24]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 0
push edi
call fcn.00539220
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, eax
jb 0x4babf1
test edi, edi
je 0x4bacfd
mov ebx, dword [esp + 0x44]
dec ebx
js 0x4bacb6
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + ebx*4]
call fcn.0048ce50
mov esi, eax
test esi, esi
je 0x4bacb3
mov ecx, dword [edi + 0x8ec]
test ecx, ecx
je 0x4bac83
call fcn.0048ce50
jmp 0x4bac85
xor eax, eax
fild dword [ebp + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
push 0
push eax
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x450]
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push ecx
mov ecx, esi
call fcn.00539220
dec ebx
jns 0x4bac60
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x8ec]
test ecx, ecx
je 0x4baccb
call fcn.0048ce50
jmp 0x4baccd
xor eax, eax
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
push 0
push eax
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x414]
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.00539220
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x8ec], eax
jmp 0x4bae4e
test edi, edi
mov dword [ebx + 0x8ec], ecx
je 0x4bae4e
xor esi, esi
test edx, edx
jbe 0x4bad6c
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx + esi*4]
call fcn.0048ce50
test eax, eax
je 0x4bad63
fild dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 0x450]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, eax
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push edx
call fcn.00539220
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jb 0x4bad24
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x414]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.00539220
jmp 0x4bae4e
mov eax, dword [ebx + 0x8ec]
test eax, eax
je 0x4bae4e
test esi, esi
je 0x4bae44
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
fstp qword [esp + 0x20]
fild dword [ebp + 0xc]
mov edx, dword [eax + 0x410]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 0x40]
fld qword [esp + 0x38]
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 1
push edx
call fcn.00539220
mov esi, dword [esp + 0x38]
dec esi
js 0x4bae44
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + esi*4]
call fcn.0048ce50
test eax, eax
je 0x4bae41
fld qword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 0x44c]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, eax
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 0
push edx
call fcn.00539220
dec esi
jns 0x4bae00
mov dword [ebx + 0x8ec], 0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4bae67
push eax
call fcn.005ddc00
add esp, 4
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
je case.default.0x4ba965
push ecx
call fcn.005ddc00
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
mov edx, dword [esp + 0x10]
mov dword [edx + 0x8f0], esi
je case.default.0x4ba965
fild dword [ebp + 0x10]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x400]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push eax
call fcn.00539220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x4baf0c
fild dword [ebp + 0x10]
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x418]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push ecx
mov ecx, edi
call fcn.00539220
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, eax
je 0x4baf1a
mov edi, ecx
jmp 0x4baf24
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x23c]
test edi, edi
mov ebx, dword [esp + 0x10]
je 0x4bb049
cmp edi, dword [ebx + 0x8f0]
je 0x4baf55
test ecx, ecx
je 0x4bb049
cmp ecx, esi
jne 0x4bb049
call fcn.0048e1f0
test eax, eax
je 0x4bb049
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebx + 0x8f4]
and esi, 0x7fffffff
cmp edi, eax
jne 0x4baff5
call dword [0x5f64d8]
mov edx, dword [ebx + 0x8f8]
mov ecx, esi
sub ecx, edx
cmp ecx, eax
jge 0x4baffb
mov ecx, edi
call fcn.0048ce50
test eax, eax
je 0x4baffb
mov ecx, edi
call fcn.0048ce50
mov edx, dword [eax + 0x3c]
shr edx, 6
test dl, 1
je 0x4baffb
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp ecx, esi
je 0x4bafd6
fild dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x3c4]
push esi
push esi
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push esi
push 1
push edx
call fcn.00539220
mov dword [ebx + 0x8f8], esi
mov dword [ebx + 0x8f4], esi
mov dword [ebx + 0x8f0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x8f4], edi
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [ebx + 0x8f8], esi
je 0x4bb057
fild dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x3ac]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.00539220
mov dword [ebx + 0x8f0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [ebx + 0x8f8], eax
mov dword [ebx + 0x8f4], eax
mov dword [ebx + 0x8f0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc