Function at 0x4ba320
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4cc6a6
call fcn.004c7e20
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x70]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x20]
cmp dword [eax], 2
push edi
mov edi, dword [ecx + 0x6c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], eax
jne 0x4ba6df
xor esi, esi
cmp dword [ebx + 0x40], esi
jne 0x4ba51d
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 0xc]
mov edi, ebx
mov dword [ebx + 0x44], eax
call fcn.004b9a00
lea eax, [ebx + 0xa0]
cmp dword [eax + 4], esi
ja 0x4ba384
push 0x80070057
call fcn.004010ca
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x40]
mov dword [eax + 8], ecx
cmp dword [ebx + 0x74], esi
je 0x4ba3bb
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004b8139
lea ecx, [ebx + 0x3c]
push ecx
call fcn.0040588c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4ba3bb
push eax
call fcn.004013aa
mov eax, dword [0x4f0980]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 0x3c]
mov dword [ebp - 4], esi
push 0x5c
mov esi, edi
mov dword [ebp - 0x20], edi
call fcn.00403023
xor esi, esi
cmp eax, esi
jl 0x4ba405
lea ecx, [ebp - 0x10]
push ecx
inc eax
mov ecx, edi
call fcn.00408bad
mov edi, eax
lea eax, [ebp - 0x14]
call fcn.00402f73
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4ba405
push eax
call fcn.004013aa
mov eax, dword [ebx + 0x50]
cmp eax, esi
mov edi, 0x4f3590
jbe 0x4ba42a
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], esi
je 0x4ba42a
push 0x1400000
push dword [ebx + 0x40]
push esi
push eax
push ecx
push edi
call fcn.004b3453
mov eax, dword [ebx + 0x38]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ba46e
mov eax, ebx
call fcn.004b9cb5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4ba70b
push eax
call fcn.004013aa
jmp 0x4ba70b
push 0
push 0
push dword [ebx + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x78], 0
je 0x4ba500
mov ecx, dword [ebp - 0x18]
add ecx, 4
lea esi, [ebp - 0x10]
call fcn.00402eaa
push 0x4d8e0c
mov eax, esi
mov byte [ebp - 4], 1
call fcn.0040a767
xor ecx, ecx
mov esi, eax
call fcn.0040a781
test eax, eax
jle 0x4ba4c3
lea eax, [ebp - 0x10]
call fcn.00402f45
push dword [ebx + 0x40]
push ecx
lea ecx, [ebp - 0x10]
mov esi, esp
mov dword [ebp - 0x28], esp
call fcn.00402eaa
push ecx
mov ecx, dword [ebp - 0x20]
mov esi, esp
mov dword [ebp - 0x28], esp
call fcn.00402eaa
mov ebx, edi
call fcn.004b2ad4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4ba4fd
push eax
call fcn.004013aa
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4ba518
push eax
call fcn.004013aa
mov edi, dword [ebp - 0x18]
xor esi, esi
mov eax, dword [ebx + 0x40]
cmp eax, dword [edi + 0x10]
jne 0x4ba664
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], esi
jbe 0x4ba53b
inc dword [edi + 0x3c]
mov dword [edi + 0x38], 1
cmp dword [ebx + 0x94], esi
mov dword [ebp + 8], esi
jle 0x4ba59a
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x90]
call fcn.004553ae
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
je 0x4ba58c
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x90]
call fcn.004553ae
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + 0x70], ecx
jne 0x4ba58c
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x90]
call fcn.004553ae
mov eax, dword [eax]
mov esi, ebx
call fcn.004b980c
xor esi, esi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x94]
jl 0x4ba546
cmp dword [ebx + 0xb4], esi
mov dword [ebp + 8], esi
jle 0x4ba602
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xb0]
call fcn.004553ae
cmp dword [eax], edi
je 0x4ba5f4
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xb0]
call fcn.004553ae
mov eax, dword [eax]
cmp dword [eax + 0x14], esi
je 0x4ba5f4
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xb0]
call fcn.004553ae
mov eax, dword [eax]
mov dword [eax + 0x38], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], esi
mov dword [eax + 0x48], esi
mov dword [eax + 0x4c], esi
mov dword [eax + 0x50], esi
mov dword [eax + 0x54], esi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0xb4]
jl 0x4ba5a5
mov eax, dword [ebp + 0xc]
add eax, 0x28
lea esi, [ebx + 0x28]
call fcn.004b81f5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x54]
cmp eax, 1
jae 0x4ba625
xor eax, eax
inc eax
jmp 0x4ba62a
call esi
sub eax, dword [ebx + 0x54]
mov dword [ebx + 0x5c], eax
call esi
push dword [ebx + 0x38]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0xc]
call fcn.004b8608
push 4
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 1
mov edi, ebx
call fcn.004b9412
push 0xc8
mov eax, ebx
call fcn.004b9cd5
jmp 0x4ba70b
mov eax, dword [ebp + 0xc]
mov esi, ebx
mov dword [edi + 0x38], 0xfffffffe
call fcn.004b980c
mov edi, ebx
call fcn.004b9981
test eax, eax
je 0x4ba6b7
mov eax, dword [ebp + 0xc]
add eax, 0x28
lea esi, [ebx + 0x28]
call fcn.004b81f5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x4ba6a7
call esi
sub eax, dword [ebx + 0x54]
and dword [ebx + 0x54], 0
mov dword [ebx + 0x5c], eax
mov eax, ebx
call fcn.004b9cb5
jmp 0x4ba70b
push ebx
call fcn.004b9676
mov esi, eax
test esi, esi
je 0x4ba70b
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
call fcn.004b84d8
mov eax, dword [ebp + 0xc]
call fcn.004b85f2
mov dword [esi + 0x38], 2
jmp 0x4ba70b
mov eax, dword [ebx + 0x40]
cmp eax, dword [edi + 0x10]
mov eax, ecx
jne 0x4ba6fd
inc dword [edi + 0x3c]
mov dword [edi + 0x38], 1
push dword [ebx + 0x38]
call fcn.004b8608
jmp 0x4ba70b
mov esi, ebx
mov dword [edi + 0x38], 0xfffffffe
call fcn.004b980c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8