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

Disassembly:
mov eax, 0x41792f
call fcn.00407c70
mov eax, 0x12bc
call fcn.00407db0
push ebx
push esi
push edi
xor ebx, ebx
push 0x4205f4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.004104a3
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x12c7]
mov byte [ebp - 0x12c8], bl
rep stosd dword es:[edi], eax
push 1
pop esi
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.HttpDownload
mov dword [ebp - 4], esi
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x404e0f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041020c
mov dword [ebp - 0x18], esi
jmp 0x404f96
push ebx
lea eax, [ebp - 0x12c8]
push 2
push eax
call fcn.00407d30
pop ecx
push eax
lea eax, [ebp - 0x12c8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404e8f
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x43]
mov byte [ebp - 0x44], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x20
push eax
lea eax, [ebp - 0x44]
push eax
push 0x13
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
lea eax, [ebp - 0x44]
push eax
jne 0x404ea3
lea eax, [ebp - 0xc8]
push str.XX:STATUS_CODE_:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041020c
mov dword [ebp - 0x18], esi
jmp 0x404f96
call fcn.00407d1a
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
mov ecx, dword [0x41e944]
mov dword [ebp - 0x14], ecx
cmp eax, 2
mov byte [ebp - 4], 2
je 0x404ee4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push 0x41e0dc
push eax
call fcn.0040fb21
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x404f7b
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x63]
mov byte [ebp - 0x64], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x20
push eax
lea eax, [ebp - 0x64]
push eax
push 0x14
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x404f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push 0x41e0c0
push eax
call fcn.0040fb21
add esp, 0xc
jmp 0x404f7b
mov edi, 0x200
lea eax, [ebp - 0x2c8]
push edi
push ebx
push eax
call fcn.00407de0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c8]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404f7b
push dword [ebp + 0xc]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x20]
call edi
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x10]
push eax
call fcn.00410572
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041020c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
call fcn.00410479
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00410479
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret