Function at 0x406f70
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425411
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1074
call fcn.004197b0
mov eax, dword [0x4309b0]
push ebx
mov dword [esp + 0x1074], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40731f
push eax
call fcn.00419051
add esp, 4
test eax, eax
je 0x40731f
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x40731f
push esi
call fcn.00419051
add esp, 4
test eax, eax
je 0x40731f
mov eax, dword [0x4323c4]
mov ecx, 0x4323c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x108c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
call fcn.00411740
push ebx
push 0x80
mov byte [esp + 0x80], bl
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
push 3
push ebx
push 1
stosw word es:[edi], ax
push 0x40000000
push esi
mov byte [esp + 0x10a8], 1
mov dword [esp + 0x34], 0xea60
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], 4
stosb byte es:[edi], al
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call dword [0x4270a8]
mov edi, eax
cmp edi, 0xffffffff
push ebx
jne 0x407086
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [0x4270a8]
mov edi, eax
mov dword [esp + 0x14], ebx
jmp 0x407091
push edi
call dword [0x4270a4]
mov dword [esp + 0x14], eax
cmp edi, 0xffffffff
jne 0x40709d
xor esi, esi
jmp 0x4072d9
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402580
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1090], 2
call fcn.00411950
lea ecx, [esp + 0xc]
movzx esi, al
mov byte [esp + 0x108c], 1
call fcn.00413020
cmp esi, ebx
je 0x407306
cmp dword [esp + 0x6c], 3
jne 0x407306
push ebx
push ebx
push ebx
push ebx
push str.bdget
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x407306
push 4
lea edx, [esp + 0x1c]
push edx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov esi, eax
cmp esi, ebx
je 0x4072ce
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x1c]
push eax
push 5
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov esi, eax
cmp esi, ebx
je 0x4072ce
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x1c]
push edx
push 5
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov esi, eax
cmp esi, ebx
je 0x4072ce
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 6
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov esi, eax
cmp esi, ebx
je 0x4072ce
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov esi, eax
cmp esi, ebx
je 0x4072ce
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4071ce
push esi
push str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_5.00__Windows_98__r_n
lea edx, [esp + 0x24]
push 0x427e34
push edx
call fcn.00403de0
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ebx
push ebx
push esi
push edi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x40], eax
call dword [0x4270a0]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
push ebx
push 0x44000000
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4071fc
xor esi, esi
jmp 0x4072bf
push ebx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
cmp esi, ebx
je 0x4072bf
mov eax, dword [esp + 0x2c]
cmp eax, 0xc8
je 0x40723d
cmp eax, 0xce
je 0x40723d
cmp eax, 0x130
je 0x40723d
xor esi, esi
jmp 0x4072bf
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x1000
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x4072bf
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4072ba
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
lea eax, [esp + 0x84]
push eax
push edi
call dword [0x42709c]
mov esi, eax
cmp esi, ebx
je 0x4072bf
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x20]
jne 0x4072bf
push edi
call dword [0x427098]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x1000
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
jne 0x407260
jmp 0x4072bf
mov esi, 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4072ce
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [0x427094]
cmp esi, ebx
lea ecx, [esp + 0x38]
setne byte [esp + 0x13]
mov byte [esp + 0x108c], bl
call fcn.00411810
lea ecx, [esp + 0x1c]
call fcn.00413020
mov al, byte [esp + 0x13]
jmp 0x407321
lea ecx, [esp + 0x38]
mov byte [esp + 0x108c], bl
call fcn.00411810
lea ecx, [esp + 0x1c]
call fcn.00413020
xor al, al
mov ecx, dword [esp + 0x1084]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x107c]
call fcn.00418dae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret