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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66c0a7
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x718924]
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 dword [ebp - 0x26c], ecx
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x34]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x2c]
push eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x288], ebx
push eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], 0
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x280], 0
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x264], 0
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x25c], 0
push edx
push 0x67d4dc
push esi
mov esi, dword [ebp - 0x26c]
mov ecx, esi
push edi
call fcn.00472ae0
test eax, eax
jne 0x473852
lea eax, [ebp - 0x264]
mov ecx, esi
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00470570
mov eax, 0x80004005
jmp 0x473d21
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004e30c0
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x278]
add esp, 0xc
mov dword [ebp - 0x278], 0x100
push 0
push eax
lea eax, [ebp - 0x210]
push eax
push 0x3f
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x473a1d
mov ecx, 0x67d4e8
lea eax, [ebp - 0x210]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4738d6
test dx, dx
je 0x4738d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4738d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4738b0
xor eax, eax
jmp 0x4738db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x473a1d
xor esi, esi
mov dword [ebp - 0x25c], 0x80004005
push esi
push esi
lea eax, [ebp - 0x260]
mov dword [ebp - 0x274], esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x47396e
lea esp, [esp]
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x473980
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x24]
jae 0x4739f3
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x268]
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47398a
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x47398a
push 0
add esi, eax
mov dword [ebp - 0x274], 0
push 0
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x473910
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x270], eax
cmp eax, 0x12
jne 0x4739b2
xor eax, eax
mov dword [ebp - 0x25c], eax
jmp 0x4739f9
push str.InternetReadFile_fail.
lea ecx, [ebp - 0x228]
call fcn.004514e0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
jmp 0x4739d6
push str.InternetQueryDataAvailable_fail.
lea ecx, [ebp - 0x228]
call fcn.004514e0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x270]
mov ecx, dword [ebp - 0x26c]
call fcn.00474e10
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
call fcn.00448fb0
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x27c]
test ecx, ecx
je 0x473a05
mov dword [ecx], esi
cmp eax, 0x80004005
je 0x473b2d
test eax, eax
js 0x473cfb
jmp 0x473bba
push 0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x473ad8
cmp dword [ebp - 0x268], 0
je 0x473bc0
cmp dword [ebp + 0x24], 0
jbe 0x473bc0
lea eax, [ebp - 0x210]
push eax
call fcn.004e862e
mov ebx, dword [ebp - 0x268]
mov edi, eax
mov eax, dword [ebp + 0x24]
add esp, 4
cmp edi, eax
cmova edi, eax
xor esi, esi
mov dword [ebp - 0x260], esi
lea ecx, [ebp - 0x260]
sub eax, esi
push ecx
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x260]
add esi, ecx
test eax, eax
je 0x473ab7
test ecx, ecx
je 0x473ab7
mov eax, dword [ebp + 0x24]
cmp esi, edi
jb 0x473a86
mov eax, dword [ebp - 0x27c]
mov ebx, dword [ebp - 0x288]
mov edi, dword [ebp - 0x264]
test eax, eax
je 0x473bba
mov dword [eax], esi
jmp 0x473bba
push str.HttpQueryInfo_fail.
lea ecx, [ebp - 0x228]
call fcn.004514e0
mov dword [ebp - 4], 2
call esi
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0x228]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
call fcn.00448fb0
mov dword [ebp - 0x25c], 0x80004005
cmp dword [ebp + 0x30], 0
je 0x473cfb
cmp dword [ebp - 0x268], 0
je 0x473cfb
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x473cfb
mov ebx, dword [ebp - 0x268]
xor esi, esi
mov dword [ebp - 0x260], esi
lea ecx, [ecx]
lea ecx, [ebp - 0x260]
sub eax, esi
push ecx
push eax
lea eax, [ebx + esi]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, eax
mov eax, dword [ebp - 0x260]
add esi, eax
test ecx, ecx
je 0x473b8e
test eax, eax
je 0x473b8e
mov eax, dword [ebp + 0x24]
cmp esi, eax
jb 0x473b60
mov eax, dword [ebp - 0x27c]
mov ebx, dword [ebp - 0x288]
test eax, eax
je 0x473ba0
mov dword [eax], esi
test ecx, ecx
je 0x473cfb
test esi, esi
je 0x473cfb
mov dword [ebp - 0x25c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x473cfb
mov dword [ebx + 0x10], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x473bd9
mov eax, dword [ebx]
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x270]
push eax
push ecx
push 0x16
push edi
mov dword [ebp - 0x270], ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x473ce7
call esi
cmp eax, 0x2f76
jne 0x473c54
push str.Not_found_header.
lea ecx, [ebp - 0x240]
call fcn.004514e0
push 0x2f76
mov dword [ebp - 4], 3
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0x240]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0x240]
call fcn.00448fb0
xor al, al
jmp 0x473ce9
call esi
cmp eax, 0x7a
jne 0x473ce7
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x270]
cmp eax, ecx
ja 0x473c81
mov dword [ebx + 0x10], eax
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x473c79
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x473c8d
sub eax, ecx
mov ecx, ebx
push 0
push eax
call fcn.004667d0
cmp dword [ebx + 0x14], 8
jb 0x473c95
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x270]
push eax
push ebx
push 0x16
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x473ce7
push str.HttpQueryInfo_read_header_fail.
lea ecx, [ebp - 0x258]
call fcn.004514e0
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 4
push eax
call esi
mov ecx, dword [ebp - 0x26c]
push eax
call fcn.00474e10
lea ecx, [ebp - 0x258]
call fcn.00448fb0
xor al, al
jmp 0x473ce9
mov al, 1
xor edx, edx
mov ecx, 0x80004005
test al, al
cmovne ecx, edx
mov dword [ebp - 0x25c], ecx
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00470570
mov eax, dword [ebp - 0x25c]
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.004cb998
mov esp, ebp
pop ebp
ret 0x30