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

Disassembly:
mov eax, 0x452918
call fcn.0044ca14
sub esp, 0x15c
push esi
push edi
push 0x10
mov esi, ecx
pop edi
cmp dword [esi + 0x1c], edi
jb 0x41a73e
mov eax, dword [esi + 8]
jmp 0x41a741
lea eax, [esi + 8]
push eax
mov eax, esi
call fcn.0041aaa0
test eax, eax
jne 0x41a77c
cmp dword [esi + 0x38], edi
jb 0x41a757
mov ecx, dword [esi + 0x24]
jmp 0x41a75a
lea ecx, [esi + 0x24]
cmp dword [esi + 0x1c], edi
jb 0x41a764
mov eax, dword [esi + 8]
jmp 0x41a767
lea eax, [esi + 8]
push ecx
push eax
call fcn.0041aac3
test eax, eax
je 0x41a77c
mov eax, 0x1a4
jmp 0x41aa3b
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
je 0x41a9d8
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x100], bl
je 0x41a7ad
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xf8]
jne 0x41a7ad
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xfc]
je 0x41a960
cmp dword [esi + 0x38], edi
jb 0x41a7b7
mov ecx, dword [esi + 0x24]
jmp 0x41a7ba
lea ecx, [esi + 0x24]
cmp dword [esi + 0x1c], edi
jb 0x41a7c4
mov eax, dword [esi + 8]
jmp 0x41a7c7
lea eax, [esi + 8]
push ecx
push eax
call fcn.0041aac3
test eax, eax
je 0x41a7dc
mov eax, 0x192
jmp 0x41aa3a
mov edi, 0xff
push edi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call fcn.0043ae00
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.0043c69d
add esp, 0x20
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040162e
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.0041adbf
or edi, 0xffffffff
push edi
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00402eb1
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004017a5
cmp dword [esi + 0xe0], ebx
je 0x41a865
push edi
push ebx
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402eb1
cmp dword [esi + 0x6c], ebx
je 0x41a8ba
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0x68]
push str.Cookie:
push eax
call fcn.00402faa
push 0x4585d0
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.00402fff
add esp, 0x18
push edi
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00402eb1
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004017a5
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.004017a5
cmp dword [esi + 0x54], 0x10
mov edx, dword [esi + 0x50]
jb 0x41a8c8
mov eax, dword [esi + 0x40]
jmp 0x41a8cb
lea eax, [esi + 0x40]
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x41a8d7
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 0x41aa2b
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 0x41aa0c
mov eax, dword [ebp - 0x10]
sub eax, 0xc8
je 0x41a92c
sub eax, 6
je 0x41a94b
mov esi, dword [ebp - 0x10]
jmp 0x41a939
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x41a94b
mov esi, 0x1e8
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004017a5
mov eax, esi
jmp 0x41aa3a
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [esi + 0x100], 1
mov dword [ebp - 4], edi
call fcn.004017a5
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 0x41a9d1
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 0x41a9fb
cmp dword [ebp + 0x20], ebx
jbe 0x41a9fb
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 0x41aa35
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x41a9df
add dword [edi], eax
add dword [esi + 0xf8], eax
adc dword [esi + 0xfc], ebx
mov eax, dword [ebp + 0x1c]
cmp dword [edi], eax
jl 0x41a979
mov eax, 0xc8
jmp 0x41aa3a
push str.Download_0_bytes__File_end__n
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
mov eax, 0x1f3
jmp 0x41aa3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 0x1f3
jmp 0x41aa3a
push str.queryinfo_failed__n
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
mov esi, 0x1f2
jmp 0x41a939
push 1
lea ecx, [ebp - 0x30]
call fcn.004017a5
mov eax, 0x1f2
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x1c