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

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x144
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.User_Agent
mov eax, dword [sym.imp.WININET.DLL_InternetOpenA]
call eax
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401601
mov dword [esp], str.Failed_to_open_Internet_connection.
call sym._puts
mov eax, 0
jmp 0x401841
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x84000100
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetOpenUrlA]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401672
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_open_config_file___u_._n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x401841
mov dword [ebp - 0x118], 0
lea edx, [ebp - 0x114]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetReadFile]
call eax
sub esp, 0x10
test eax, eax
jne 0x40170b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_read_config_file___u_._n
call sym._printf
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x401841
mov dword [esp + 4], 0x404082
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._strtok
mov dword [ebp - 0xc], eax
jmp 0x401812
mov dword [esp + 4], 0x3d
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4017fb
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
mov dword [esp + 4], str.IpAddress
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__stricmp]
call eax
test eax, eax
jne 0x401789
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcpy_s]
call eax
jmp 0x4017fb
mov dword [esp + 4], str.Port
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__stricmp]
call eax
test eax, eax
jne 0x4017c3
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcpy_s]
call eax
jmp 0x4017fb
mov dword [esp + 4], str.FileName
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__stricmp]
call eax
test eax, eax
jne 0x4017fb
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcpy_s]
call eax
mov dword [esp + 4], 0x404082
mov dword [esp], 0
call sym._strtok
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401729
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, 1
mov edi, dword [ebp - 4]
leave
ret