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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e776
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], edx
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x68], esi
mov ecx, dword [ebx + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x4d], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x48], 0x20
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x60], 0
mov byte [esi], 0
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x6c], 1
push ecx
push 5
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40226b
push 0xa
lea eax, [ebp - 0x34]
mov byte [ebp - 0x4d], 1
push 0
push eax
call fcn.0042708b
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, esi
push eax
call fcn.00406cb0
test edi, edi
mov eax, 0x401ee0
cmovne eax, edi
xor edi, edi
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x4c]
push edi
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x54], edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4023ef
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4023ec
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push ecx
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
call fcn.00406b30
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x40]
push eax
push dword [ebp - 0x4c]
push edi
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x40240d
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40240d
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x54]
push 0
add eax, ecx
push eax
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x74]
call dword [ebp - 0x78]
test al, al
je 0x4023bc
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
cmp ecx, eax
ja 0x402346
cmp dword [esi + 0x14], 0xf
lea eax, [ecx + edx]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x40232c
mov eax, dword [esi]
push ecx
lea esi, [eax + edx]
push edi
push esi
call fcn.00420f10
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x7c]
jmp 0x402357
push ecx
push edi
mov byte [ebp - 0x68], 0
push dword [ebp - 0x68]
push ecx
mov ecx, esi
call fcn.00407800
mov byte [ebp - 4], 0
test edi, edi
je 0x4023a1
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x402382
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40245d
push ecx
push edi
call fcn.0041eebc
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x402294
jmp 0x4023ec
test edi, edi
je 0x4023e9
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4023df
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40245d
push ecx
push edi
call fcn.0041eebc
add esp, 8
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x40243d
test eax, eax
je 0x402432
cmp byte [ebp - 0x4d], 0
je 0x402405
cmp edi, dword [ebp - 0x60]
jne 0x402432
mov dword [ecx], 0
jmp 0x40243d
test edi, edi
je 0x4023ec
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4023df
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40245d
jmp 0x4023df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
int3