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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4127fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4170d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0xac], 0x40
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x68], 0
push edi
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0x50]
push edx
push 5
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404552
push 0xa
lea eax, [ebp - 0x50]
push edi
push eax
mov byte [ebp - 0x6d], 1
call fcn.0040631d
mov ecx, eax
mov eax, dword [ebp - 0x58]
add esp, 0xc
cmp eax, ecx
mov dword [ebp - 0x7c], ecx
ja 0x404552
cmp dword [ebp - 0x54], ecx
je 0x404552
push 1
push ecx
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.00401dd0
test al, al
je 0x404552
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x58], esi
jae 0x40454e
lea eax, [ebp - 0x68]
mov byte [eax + esi], 0
push edi
push edi
lea edx, [ebp - 0x78]
push edx
push ebx
mov dword [ebp - 0x74], edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
setne bl
test bl, bl
jne 0x404574
xor bl, bl
jmp 0x4046fc
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jbe 0x404681
xor esi, esi
cmp eax, 0xffffffff
mov ebx, eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x90], edi
jbe 0x40459b
call fcn.00403b60
jmp 0x4045b6
push edi
push eax
call fcn.00401960
mov esi, eax
lea eax, [esi + ebx]
add esp, 8
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x90], eax
cmp ebx, edi
jbe 0x4045c5
push ebx
push edi
push esi
call fcn.00406350
add esp, 0xc
lea edi, [esi + ebx]
mov dword [ebp - 0x94], edi
test esi, esi
mov byte [ebp - 4], 1
je 0x4045dc
mov ecx, edi
sub ecx, esi
jne 0x4045e1
call fcn.00405f4f
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
push edx
push eax
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne bl
test bl, bl
je 0x40466e
mov eax, dword [ebp - 0x80]
test eax, eax
jbe 0x40466e
add dword [ebp - 0x74], eax
test esi, esi
je 0x404612
sub edi, esi
jne 0x40461a
call fcn.00405f4f
mov eax, dword [ebp - 0x80]
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.004039c0
xor edi, edi
cmp esi, edi
mov byte [ebp - 4], 0
je 0x404637
push esi
call fcn.00405620
add esp, 4
mov eax, dword [ebp - 0x84]
push edi
push edi
lea edx, [ebp - 0x78]
push edx
push eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
setne bl
test bl, bl
jne 0x404572
jmp 0x4046fc
test esi, esi
mov byte [ebp - 4], 0
je 0x40467f
push esi
call fcn.00405620
add esp, 4
xor edi, edi
test bl, bl
je 0x40456b
cmp byte [ebp - 0x6d], 0
je 0x40469b
mov ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x74], ecx
jne 0x40456b
mov esi, dword [ebp - 0x8c]
cmp esi, edi
mov bl, 1
je 0x4046fc
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.00403f70
add esp, 8
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004012a0
cmp dword [ebp - 0x90], 8
mov byte [ebp - 4], 0
jb 0x4046e5
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.00405620
add esp, 4
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], edi
mov word [ebp - 0xa4], di
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x404715
mov edx, dword [ebp - 0x68]
push edx
call fcn.00405620
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405a6f
mov esp, ebp
pop ebp
ret