Function at 0x4030f0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a17b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x421474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0x8d], bl
mov dword [ebp - 0xa4], 0x40
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
push ebx
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x54]
push edx
push 5
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4031bd
push 0xa
lea eax, [ebp - 0x54]
push ebx
push eax
mov byte [ebp - 0x8d], 1
call fcn.00408c84
mov ecx, dword [ebp - 0x60]
add esp, 0xc
mov dword [ebp - 0x94], eax
cmp ecx, eax
ja 0x4031bd
mov edx, eax
cmp dword [ebp - 0x5c], edx
je 0x4031bd
push 1
mov esi, ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00405820
test al, al
je 0x4031bd
cmp dword [ebp - 0x5c], 0x10
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x60], esi
jae 0x4031ba
lea eax, [ebp - 0x70]
mov byte [eax + esi], bl
push ebx
push ebx
lea ecx, [ebp - 0x9c]
push ecx
push edi
mov dword [ebp - 0x98], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
cmp edi, ebx
je 0x403279
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jbe 0x403291
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.004048c0
mov ecx, dword [ebp - 0xa0]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x80]
lea edx, [ebp - 0xac]
push edx
push eax
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
cmp edi, ebx
je 0x403281
mov eax, dword [ebp - 0xac]
cmp eax, ebx
jbe 0x403281
add dword [ebp - 0x98], eax
push eax
mov eax, esi
lea ecx, [ebp - 0x70]
call fcn.004041c0
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x403250
push esi
call fcn.00407a3d
add esp, 4
mov eax, dword [ebp - 0xa0]
push ebx
push ebx
lea edx, [ebp - 0x9c]
push edx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
cmp edi, ebx
jne 0x4031dd
mov byte [ebp - 0x8d], bl
jmp 0x4032ee
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x403291
push esi
call fcn.00407a3d
add esp, 4
cmp edi, ebx
je 0x403279
cmp byte [ebp - 0x8d], bl
je 0x4032ab
mov ecx, dword [ebp - 0x94]
cmp dword [ebp - 0x98], ecx
jne 0x403279
mov esi, dword [ebp - 0xa8]
mov byte [ebp - 0x8d], 1
cmp esi, ebx
je 0x4032ee
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00403e00
add esp, 4
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00402550
cmp dword [ebp - 0x78], 8
jb 0x4032ee
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00407a3d
add esp, 4
cmp dword [ebp - 0x5c], 0x10
jb 0x403300
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00407a3d
add esp, 4
mov al, byte [ebp - 0x8d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004078b8
mov esp, ebp
pop ebp
ret