Function at 0x401d70
Capabilities:
Create http request
Print debug messages
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x407810
push eax
mov eax, 0x20b8
mov dword fs:[0], esp
call fcn.004073c0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x40b54c
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xc9]
mov byte [esp + 0xc8], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
mov esi, 1
push ebx
push str.HttpDownload
mov dword [esp + 0x20e4], esi
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, ebx
jne 0x401e10
mov edi, dword [esp + 0x20d8]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20d0], bl
call fcn.004071b2
mov eax, edi
jmp 0x401ffc
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20dc]
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 2
push ecx
lea ecx, [esp + 0xd4]
push ecx
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
je 0x401e99
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x28]
push ecx
stosw word es:[edi], ax
push edx
push 0x13
push esi
mov dword [esp + 0x30], 0x20
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x401eb9
lea eax, [esp + 0x24]
lea ecx, [esp + 0x64]
push eax
push str.XX:STATUS_CODE_:__s_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x20d8]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
jmp 0x401fea
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
add esp, 4
shr eax, 0x1f
add edx, eax
lea ecx, [esp + 0x18]
mov edi, edx
call sub.MFC42.DLL_CString::CString_2
cmp edi, 2
mov byte [esp + 0x20d0], 2
je 0x401f19
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push 0x40b0e4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401fbe
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x1c]
push ebx
lea eax, [esp + 0x48]
push edx
push eax
push 0x14
push esi
mov dword [esp + 0x30], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x401f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push 0x40b0c8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
push edx
jmp 0x401fc3
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10c8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10c8]
push eax
push 0x1000
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401fa1
lea edx, [esp + 0x10]
push edx
jmp 0x401fc3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
lea eax, [esp + 0x10c8]
lea ecx, [esp + 0x10]
push eax
call fcn.004071dc
lea ecx, [esp + 0x10]
push ecx
mov esi, dword [esp + 0x20dc]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 1
mov byte [esp + 0x20d0], 1
call fcn.004071b2
lea ecx, [esp + 0x10]
mov byte [esp + 0x20d0], bl
call fcn.004071b2
mov eax, esi
mov ecx, dword [esp + 0x20c8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20c4
ret