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

Disassembly:
mov eax, 0x50f951
call fcn.00508264
sub esp, 0x15c
push esi
push edi
push 0x10
mov esi, ecx
pop edi
cmp dword [esi + 0x1c], edi
jb 0x4310f9
mov eax, dword [esi + 8]
jmp 0x4310fc
lea eax, [esi + 8]
push eax
mov eax, esi
call fcn.00431447
test eax, eax
jne 0x431137
cmp dword [esi + 0x38], edi
jb 0x431112
mov ecx, dword [esi + 0x24]
jmp 0x431115
lea ecx, [esi + 0x24]
cmp dword [esi + 0x1c], edi
jb 0x43111f
mov eax, dword [esi + 8]
jmp 0x431122
lea eax, [esi + 8]
push ecx
push eax
call fcn.0043146b
test eax, eax
je 0x431137
mov eax, 0x1a4
jmp 0x4313e2
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
je 0x431393
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x100], bl
je 0x431168
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xf8]
jne 0x431168
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xfc]
je 0x43131b
cmp dword [esi + 0x38], edi
jb 0x431172
mov ecx, dword [esi + 0x24]
jmp 0x431175
lea ecx, [esi + 0x24]
cmp dword [esi + 0x1c], edi
jb 0x43117f
mov eax, dword [esi + 8]
jmp 0x431182
lea eax, [esi + 8]
push ecx
push eax
call fcn.0043146b
test eax, eax
je 0x431197
mov eax, 0x192
jmp 0x4313e1
mov edi, 0xff
push edi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call fcn.0049d740
push dword [ebp + 0xc]
lea eax, [ebp - 0x168]
push dword [ebp + 8]
push str.Range:_bytes_d__r_n
push edi
push eax
call fcn.00507f10
add esp, 0x20
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401644
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.00431767
or edi, 0xffffffff
push edi
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00409cc4
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004017de
cmp dword [esi + 0xe0], ebx
je 0x431220
push edi
push ebx
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409cc4
cmp dword [esi + 0x6c], ebx
je 0x431275
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0x68]
push str.Cookie:
push eax
call fcn.00415803
push 0x53a15c
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.00415771
add esp, 0x18
push edi
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00409cc4
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004017de
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.004017de
cmp dword [esi + 0x54], 0x10
mov edx, dword [esi + 0x50]
jb 0x431283
mov eax, dword [esi + 0x40]
jmp 0x431286
lea eax, [esi + 0x40]
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x431292
lea ecx, [ebp - 0x2c]
push edx
push eax
push edi
push ecx
push dword [esi + 0xf0]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebx
test eax, eax
je 0x4313d2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push dword [esi + 0xf0]
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4313bd
mov eax, dword [ebp - 0x10]
sub eax, 0xc8
je 0x4312e7
sub eax, 6
je 0x431306
mov esi, dword [ebp - 0x10]
jmp 0x4312f4
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x431306
mov esi, 0x1e8
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004017de
mov eax, esi
jmp 0x4313e1
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [esi + 0x100], 1
mov dword [ebp - 4], edi
call fcn.004017de
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi + 0xf8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xfc], eax
jmp 0x43138c
push ebx
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [esi + 0xf0]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4313ac
cmp dword [ebp + 0x20], ebx
jbe 0x4313ac
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x18]
add eax, ecx
push eax
push dword [esi + 0xf0]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4313dc
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x43139a
add dword [edi], eax
add dword [esi + 0xf8], eax
adc dword [esi + 0xfc], ebx
mov eax, dword [ebp + 0x1c]
cmp dword [edi], eax
jl 0x431334
mov eax, 0xc8
jmp 0x4313e1
push str.Download_0_bytes__File_end__n
call fcn.00413df9
pop ecx
mov eax, 0x1f3
jmp 0x4313e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 0x1f3
jmp 0x4313e1
push str.queryinfo_failed__n
call fcn.00413df9
pop ecx
mov esi, 0x1f2
jmp 0x4312f4
push 1
lea ecx, [ebp - 0x30]
call fcn.004017de
mov eax, 0x1f2
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x1c