Function at 0x401170
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [section..data]
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, edx
mov edi, ecx
push 0
push 0
push 0
push 1
push str.WinINet
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x450], eax
test eax, eax
je 0x40147c
cmp dword [edi + 0x14], 0xf
mov eax, dword [edi + 0x10]
jbe 0x4011d1
add eax, dword [edi]
mov edi, dword [edi]
jmp 0x4011d3
add eax, edi
push ecx
push eax
push edi
lea ecx, [ebp - 0x468]
call fcn.00401aa0
mov edi, eax
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0xf
mov ecx, dword [esi + 0x10]
jbe 0x4011f9
add ecx, dword [esi]
mov esi, dword [esi]
jmp 0x4011fb
add ecx, esi
push ecx
push ecx
push esi
lea ecx, [ebp - 0x42c]
call fcn.00401aa0
push edi
push eax
push dword [ebp - 0x448]
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call fcn.00401d10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x418]
cmp ecx, 7
jbe 0x401260
mov edx, dword [ebp - 0x42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401256
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4012b3
push ecx
push edx
call fcn.00401f4f
add esp, 8
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x454]
cmp ecx, 7
jbe 0x4012c3
mov edx, dword [ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4012b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4012b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401f4f
add esp, 8
cmp dword [ebp - 0x430], 7
lea eax, [ebp - 0x444]
push 0
cmova eax, dword [ebp - 0x444]
push 0x80000000
push 0
push 0
push eax
push dword [ebp - 0x450]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x44c], eax
test eax, eax
je 0x401432
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
mov esi, 0xf
movups xmmword [ebp - 0x42c], xmm0
mov dword [ebp - 0x418], esi
mov byte [ebp - 0x42c], 0
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 5
push ecx
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4013f4
xor ecx, ecx
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x4013ee
mov eax, esi
sub eax, ecx
push edi
cmp edi, eax
ja 0x40139a
lea eax, [ecx + edi]
cmp esi, 0xf
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x42c]
cmova eax, dword [ebp - 0x42c]
lea esi, [eax + ecx]
lea eax, [ebp - 0x410]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4013ba
lea eax, [ebp - 0x410]
mov byte [ebp - 0x448], 0
push eax
push dword [ebp - 0x448]
lea ecx, [ebp - 0x42c]
push edi
call fcn.00401bb0
lea eax, [ebp - 0x414]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [ebp - 0x418]
test eax, eax
je 0x4013ee
mov ecx, dword [ebp - 0x41c]
jmp 0x401351
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x44c]
call edi
cmp esi, 0xf
jbe 0x401432
mov ecx, dword [ebp - 0x42c]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x401428
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401428
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.00401f4f
add esp, 8
push dword [ebp - 0x450]
call edi
mov ecx, dword [ebp - 0x430]
cmp ecx, 7
jbe 0x40147c
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401472
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401472
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401f4f
add esp, 8
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.00401f11
mov esp, ebp
pop ebp
ret