Function at 0x4b7780
Capabilities:
Check for time delay via gettickcount
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x57cda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x733f14]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x61acc]
mov byte [esp + 0x30], 1
cmp eax, ebx
je 0x4b7a36
push 0x2000
call fcn.004f56f0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4b7a36
mov edi, dword [esp + 0x40]
push edi
push ebx
call fcn.004ecfb0
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov eax, ebp
add esp, 8
and eax, ebx
cmp eax, 0xffffffff
push edi
jne 0x4b7817
call fcn.004f58c0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4b7853
call fcn.004f3d20
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b7a36
push ebx
mov ecx, eax
push ebp
push ecx
call fcn.004f57a0
add esp, 0xc
test eax, eax
je 0x4b7a36
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4b7a36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b7a36
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, ecx
xor eax, eax
mov edi, edx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x61acc]
lea eax, [esp + 0x40]
push eax
push edx
push 0x16
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4b7a36
mov edx, dword [esp + 0x4c]
mov ebx, dword [0x736578]
mov dword [edx], 0
call fcn.004f3680
cmp eax, 1
je 0x4b7a22
mov ebp, dword [esp + 0x18]
push 0x2000
push ebp
mov ecx, esi
call fcn.004b75f0
mov edi, eax
test edi, edi
je 0x4b7a2e
mov eax, dword [esp + 0x10]
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push eax
call fcn.004f5ad0
add esp, 0x14
test eax, eax
je 0x4b7a36
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4b7904
mov ecx, dword [esi + 0x20]
add ecx, edi
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x24]
adc eax, 0
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
add ecx, edi
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4b78a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp eax, 0x1f4
jbe 0x4b78a8
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ecx
push edx
call fcn.004f7fb0
add esp, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0055af82
mov eax, dword [esi + 0x1c]
test eax, eax
jl 0x4b79ab
jg 0x4b794f
mov eax, dword [esi + 0x18]
test eax, eax
jbe 0x4b79ab
push 0x70c4f0
lea ecx, [esp + 0x3c]
call fcn.0055ae5f
mov edi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push eax
push ecx
mov byte [esp + 0x38], 2
call fcn.004f7fb0
add esp, 8
lea edx, [esp + 0x40]
push eax
push edi
push edx
call fcn.0055b090
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.0055b218
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call fcn.0055adeb
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.0055adeb
lea eax, [esi + 0x14]
push 0x70b880
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0055b090
lea edx, [esp + 0x14]
mov byte [esp + 0x30], 4
push edx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0055b02a
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
lea ecx, [esp + 0x44]
call fcn.0055adeb
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.0055adeb
mov eax, dword [0x7c6d78]
test eax, eax
je 0x4b7a14
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
call fcn.004d2b10
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x28], eax
jmp 0x4b78a8
mov dword [0x85ac64], 1
jmp 0x4b7a36
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
push eax
call fcn.004f5730
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004f5720
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 0
call fcn.0055adeb
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0055adeb
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18