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

Disassembly:
mov eax, 0x452624
call fcn.0044c764
sub esp, 0x15c
push esi
push edi
push 0x10
mov esi, ecx
pop edi
cmp dword [esi + 0x1c], edi
jb 0x41a6fd
mov eax, dword [esi + 8]
jmp 0x41a700
lea eax, [esi + 8]
push eax
mov eax, esi
call fcn.0041aa5f
test eax, eax
jne 0x41a73b
cmp dword [esi + 0x38], edi
jb 0x41a716
mov ecx, dword [esi + 0x24]
jmp 0x41a719
lea ecx, [esi + 0x24]
cmp dword [esi + 0x1c], edi
jb 0x41a723
mov eax, dword [esi + 8]
jmp 0x41a726
lea eax, [esi + 8]
push ecx
push eax
call fcn.0041aa82
test eax, eax
je 0x41a73b
mov eax, 0x1a4
jmp 0x41a9fa
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
je 0x41a997
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x100], bl
je 0x41a76c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xf8]
jne 0x41a76c
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xfc]
je 0x41a91f
cmp dword [esi + 0x38], edi
jb 0x41a776
mov ecx, dword [esi + 0x24]
jmp 0x41a779
lea ecx, [esi + 0x24]
cmp dword [esi + 0x1c], edi
jb 0x41a783
mov eax, dword [esi + 8]
jmp 0x41a786
lea eax, [esi + 8]
push ecx
push eax
call fcn.0041aa82
test eax, eax
je 0x41a79b
mov eax, 0x192
jmp 0x41a9f9
mov edi, 0xff
push edi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call fcn.0043ab70
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.0043c40d
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.0041ad7e
or edi, 0xffffffff
push edi
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00402eb3
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004017a7
cmp dword [esi + 0xe0], ebx
je 0x41a824
push edi
push ebx
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402eb3
cmp dword [esi + 0x6c], ebx
je 0x41a879
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0x68]
push str.Cookie:
push eax
call fcn.00402fac
push 0x4575c8
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.00402eb3
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004017a7
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.004017a7
cmp dword [esi + 0x54], 0x10
mov edx, dword [esi + 0x50]
jb 0x41a887
mov eax, dword [esi + 0x40]
jmp 0x41a88a
lea eax, [esi + 0x40]
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x41a896
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 0x41a9ea
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 0x41a9cb
mov eax, dword [ebp - 0x10]
sub eax, 0xc8
je 0x41a8eb
sub eax, 6
je 0x41a90a
mov esi, dword [ebp - 0x10]
jmp 0x41a8f8
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x41a90a
mov esi, 0x1e8
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004017a7
mov eax, esi
jmp 0x41a9f9
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [esi + 0x100], 1
mov dword [ebp - 4], edi
call fcn.004017a7
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 0x41a990
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 0x41a9ba
cmp dword [ebp + 0x20], ebx
jbe 0x41a9ba
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 0x41a9f4
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x41a99e
add dword [edi], eax
add dword [esi + 0xf8], eax
adc dword [esi + 0xfc], ebx
mov eax, dword [ebp + 0x1c]
cmp dword [edi], eax
jl 0x41a938
mov eax, 0xc8
jmp 0x41a9f9
push str.Download_0_bytes__File_end__n
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0xc
mov eax, 0x1f3
jmp 0x41a9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 0x1f3
jmp 0x41a9f9
push str.queryinfo_failed__n
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0xc
mov esi, 0x1f2
jmp 0x41a8f8
push 1
lea ecx, [ebp - 0x30]
call fcn.004017a7
mov eax, 0x1f2
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x1c