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

Disassembly:
push 0xffffffffffffffff
push 0x7985d8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, dword [esp + 0x94]
lea eax, [esp + 0x64]
push esi
push eax
mov edi, ecx
call fcn.005b5980
lea ecx, [esp + 0x50]
push esi
xor ebx, ebx
push ecx
mov dword [esp + 0x9c], ebx
call fcn.0059ed90
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 1
call fcn.00403fb2
mov ebp, 0x10
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x60], ebp
jb 0x5ba104
mov edx, dword [esp + 0x4c]
push edx
call fcn.00564155
add esp, 4
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jne 0x5ba120
cmp dword [esp + 0x7c], ebp
jb 0x5ba30c
mov eax, dword [esp + 0x68]
push eax
jmp 0x5ba304
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], ebp
jae 0x5ba12e
lea eax, [esp + 0x68]
push 0x2e
push ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.005b6a20
add esp, 0x10
mov edx, dword [edi + 0x24]
push 1
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 2
call fcn.00549490
mov esi, dword [esp + 0x28]
mov ecx, esi
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax - 1]
test ecx, ecx
jbe 0x5ba2a3
add edi, 0x28
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov byte [esp + 0x8c], 4
mov edi, ebx
cmp ebx, eax
jae 0x5ba226
mov ebp, dword [esp + 0x30]
cmp dword [esp + 0x5c], 0
je 0x5ba1cc
push 0x2e
push 1
lea ecx, [esp + 0x50]
call fcn.0040323d
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x24]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5ba1ec
call fcn.00565471
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
lea eax, [ecx + ebp]
push 0
push eax
lea ecx, [esp + 0x54]
call fcn.00401e38
mov esi, dword [esp + 0x28]
mov ecx, esi
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebp, 0x1c
cmp edi, eax
jb 0x5ba1b4
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
call fcn.005b8980
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x5ba24f
cmp esi, eax
je 0x5ba254
call fcn.00565471
cmp edi, ebp
jne 0x5ba332
cmp dword [esp + 0x60], 0x10
jb 0x5ba270
mov eax, dword [esp + 0x4c]
push eax
call fcn.00564155
add esp, 4
mov esi, dword [esp + 0x28]
add dword [esp + 0x30], 0x1c
mov ecx, esi
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebx
lea ecx, [eax - 1]
cmp ebx, ecx
jb 0x5ba18d
mov ebp, 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], 2
call fcn.00549420
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x5ba2e0
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.004023dd
mov eax, dword [esp + 0x34]
push eax
call fcn.00564155
add esp, 0x14
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00564155
add esp, 4
cmp dword [esp + 0x7c], ebp
jb 0x5ba30c
mov edx, dword [esp + 0x68]
push edx
call fcn.00564155
add esp, 4
xor al, al
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00564b24
add esp, 0x7c
ret 4
test esi, esi
jne 0x5ba400
call fcn.00565471
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5ba34b
call fcn.00565471
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 0xb8], eax
ja 0x5ba407
mov ecx, dword [esp + 0x14]
push edi
push esi
lea edx, [esp + 0x48]
push edx
call fcn.005b9830
mov edi, 0x10
cmp dword [esp + 0x60], edi
jb 0x5ba385
mov eax, dword [esp + 0x4c]
push eax
call fcn.00564155
add esp, 4
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
mov byte [esp + 0x8c], 2
call fcn.00549420
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x5ba3d3
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.004023dd
mov edx, dword [esp + 0x34]
push edx
call fcn.00564155
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00564155
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x5ba30c
mov ecx, dword [esp + 0x68]
push ecx
jmp 0x5ba304
mov eax, dword [esi]
jmp 0x5ba341
mov edi, 0x10
cmp dword [esp + 0x60], edi
jb 0x5ba41f
mov edx, dword [esp + 0x4c]
push edx
call fcn.00564155
add esp, 4
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
mov byte [esp + 0x8c], 2
call fcn.00549420
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x5ba46d
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.004023dd
mov edx, dword [esp + 0x34]
push edx
call fcn.00564155
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00564155
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x5ba499
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00564155
add esp, 4
mov al, 1
jmp 0x5ba30e