Function at 0x480860
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d21cd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5000a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x480a3b
push 0x4d7ff6
push 0x100
call fcn.0049d4ec
add esp, 8
mov dword [ebp - 0x38], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4808c6
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x4808db
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
jmp 0x4808dd
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.0048af40
mov ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x4808fa
test eax, eax
je 0x480906
test esi, esi
je 0x480906
push eax
mov ecx, esi
call fcn.004762e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
mov eax, dword [ebp - 0x18]
push 0x100
push dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x480a0e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x480a34
test esi, esi
je 0x4809b9
mov edx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x20], edx
sub edx, dword [esi]
mov dword [ebp - 0x1c], ecx
add dword [ebp - 0x1c], ebx
adc eax, edi
test eax, eax
jb 0x4809a2
ja 0x480960
cmp dword [ebp - 0x1c], edx
jbe 0x4809a2
lea edi, [ebx + ecx]
cmp edi, edx
jae 0x48096b
mov eax, dword [esi]
jmp 0x48099a
jbe 0x48099f
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp edi, eax
jbe 0x480984
push ecx
push edi
mov ecx, esi
call fcn.00476850
mov ecx, dword [ebp - 0x10]
jmp 0x48099f
sub edi, edx
push edi
push 0
push dword [ebp - 0x20]
call fcn.0049edd0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add eax, edi
mov dword [esi + 4], eax
mov edi, dword [ebp - 0x14]
mov eax, dword [esi]
push ecx
push dword [ebp - 0x34]
add eax, ebx
push eax
call fcn.0049e850
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebp + 0xc]
add ebx, ecx
adc edi, 0
mov dword [ebp - 0x14], edi
test eax, eax
je 0x4809e2
push ecx
push edi
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
call eax
add esp, 0x24
test eax, eax
je 0x480a0e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x18]
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 0x480934
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x480a20
push eax
call fcn.0049d4f5
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 0x480a10
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