Function at 0x480230
Capabilities:
Check for time delay via gettickcount
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3afd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x480429
push 0x4d94e6
push 0x100
call fcn.004a034c
add esp, 8
mov dword [ebp - 0x38], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x34], 0
test eax, eax
je 0x480296
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x4802ab
mov ebx, dword [edi + 4]
sub ebx, dword [edi]
jmp 0x4802ad
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x18], esi
call fcn.0048af10
mov ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x4802ca
test eax, eax
je 0x4802d6
test edi, edi
je 0x4802d6
push eax
mov ecx, edi
call fcn.00475dd0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push 0x100
push dword [ebp - 0x34]
mov dword [ebp - 0x10], esi
mov ecx, dword [eax + 0x10]
push dword [ecx]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4803fc
mov eax, dword [ebp + 0xc]
nop word [eax + eax]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x480422
test edi, edi
je 0x480393
mov edx, dword [edi + 4]
xor eax, eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
sub edx, dword [edi]
add esi, ebx
adc eax, dword [ebp - 0x18]
test eax, eax
jb 0x480379
ja 0x48033a
cmp esi, edx
jbe 0x480379
lea esi, [ebx + ecx]
cmp esi, edx
jae 0x480345
mov eax, dword [edi]
jmp 0x480374
jbe 0x480379
mov eax, dword [edi + 8]
sub eax, dword [edi]
cmp esi, eax
jbe 0x48035e
push ecx
push esi
mov ecx, edi
call fcn.00476310
mov ecx, dword [ebp - 0x10]
jmp 0x480379
sub esi, edx
push esi
push 0
push dword [ebp - 0x1c]
call fcn.004a1c30
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [edi + 4], eax
mov eax, dword [edi]
push ecx
push dword [ebp - 0x34]
add eax, ebx
push eax
call fcn.004a16b0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
add ebx, ecx
adc esi, 0
mov dword [ebp - 0x18], esi
test eax, eax
je 0x4803bc
push ecx
push esi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call eax
add esp, 0x24
test eax, eax
je 0x4803fc
cmp dword [ebp + 0x18], 0xffffffff
je 0x4803d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0x18]
jae 0x4803fc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x14]
push 0x100
push dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x480310
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x48040e
push eax
call fcn.004a0355
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x4803fe
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret