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

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x140
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 0x4015d8
mov dword [esp + 4], str.Failed_to_open_Internet_connection.
mov dword [esp], 0x4ce780
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, 0
jmp 0x401894
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 0x40167d
mov dword [esp + 4], str.Failed_to_open_config_file__
mov dword [esp], 0x4ce780
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp], eax
mov ecx, ebx
call method.std::ostream.operator___unsigned_long_
sub esp, 4
mov dword [esp + 4], 0x4cf04d
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
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 0x401894
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
sete al
test al, al
je 0x40174f
mov dword [esp + 4], str.Failed_to_read_config_file__
mov dword [esp], 0x4ce780
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp], eax
mov ecx, ebx
call method.std::ostream.operator___unsigned_long_
sub esp, 4
mov dword [esp + 4], 0x4cf04d
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
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 0x401894
mov dword [esp + 4], 0x4cf06d
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._strtok
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40186f
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 0x401853
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
sete al
test al, al
je 0x4017d7
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 0x401853
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
sete al
test al, al
je 0x401816
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 0x401853
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
sete al
test al, al
je 0x401853
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], 0x4cf06d
mov dword [esp], 0
call sym._strtok
mov dword [ebp - 0xc], eax
jmp 0x401768
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
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret