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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4208d0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x431010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
mov edi, 0xf
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], ecx
mov byte [ebp - 0x78], cl
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x7c]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40208a
push 0xa
lea eax, [ebp - 0x50]
mov byte [ebp - 0x81], 1
push 0
push eax
call fcn.0040e7a8
add esp, 0xc
mov dword [ebp - 0x90], eax
cmp eax, edi
jbe 0x40208a
cmp eax, 0x7fffffff
ja 0x402333
mov edi, eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x40203d
mov eax, 0x80000000
mov edi, 0x7fffffff
push eax
call fcn.00402ee0
add esp, 4
jmp 0x40206d
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x40205c
push eax
call fcn.00402ee0
add esp, 4
jmp 0x40206d
test eax, eax
je 0x40206b
push eax
call fcn.0040970a
add esp, 4
jmp 0x40206d
xor eax, eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x68], ecx
xor ecx, ecx
mov dword [ebp - 0x64], edi
mov byte [eax], 0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x68], ecx
xor eax, eax
push eax
push eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4022c3
nop word [eax + eax]
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x40228b
mov dword [ebp - 0x54], 0
xorps xmm0, xmm0
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
cmp esi, 0x7fffffff
ja 0x40233d
push esi
cmp esi, 0x1000
jb 0x4020fb
call fcn.00402ee0
jmp 0x402100
call fcn.0040970a
mov dword [ebp - 0x5c], eax
add esp, 4
mov dword [ebp - 0x58], eax
add eax, esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
add esi, ecx
mov edx, esi
call fcn.00402ec0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
push dword [ebp - 0x94]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x40223a
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xa0], ecx
test ecx, ecx
je 0x40223a
mov edx, dword [ebp - 0x88]
mov eax, edi
add dword [ebp - 0x8c], ecx
sub eax, edx
push ecx
push dword [ebp - 0x5c]
cmp ecx, eax
ja 0x4021b1
cmp edi, 0x10
lea esi, [ebp - 0x78]
lea eax, [ecx + edx]
cmovae esi, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
lea eax, [esi + edx]
push eax
call fcn.0040aa80
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov ecx, dword [ebp - 0x88]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x4021c0
push dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x78]
call fcn.00402ba0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40220d
mov edx, dword [ebp - 0x54]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4021ee
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402338
push edx
push ecx
call fcn.00409854
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, dword [ebp - 0x64]
test eax, eax
je 0x4022c3
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x88], ecx
jmp 0x4020b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x402287
mov edx, dword [ebp - 0x54]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x402268
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402338
push edx
push ecx
call fcn.00409854
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
test esi, esi
je 0x4022c3
cmp byte [ebp - 0x81], 0
je 0x4022a2
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x90]
jne 0x4022c3
mov eax, dword [ebp - 0x98]
mov byte [ebp - 0x81], 1
test eax, eax
je 0x4022ca
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.00402680
mov edi, dword [ebp - 0x64]
jmp 0x4022ca
mov byte [ebp - 0x81], 0
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x4022fe
mov ecx, dword [ebp - 0x78]
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x4022f4
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402342
push edi
push ecx
call fcn.00409854
add esp, 8
mov al, byte [ebp - 0x81]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004096fc
mov esp, ebp
pop ebp
ret 8
call fcn.00401520
call fcn.0040ea8b
call fcn.00402e90
call fcn.0040ea8b
int3