Function at 0x413a73
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a2a3
mov eax, dword fs:[0]
push eax
mov eax, 0x2558
call fcn.00437f50
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x24c0], ebx
mov dword [ebp - 0x24b4], ebx
lea ecx, [ebp - 0x24ac]
mov dword [ebp - 0x24b4], ebx
xor edi, edi
call fcn.00401a11
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0040ee2a
mov edx, eax
cmp dword [edx + 0x14], 7
jbe 0x413adc
mov edx, dword [edx]
lea ecx, [ebp - 0x24ac]
call fcn.004021c5
push edx
call fcn.00401bd5
lea ecx, [ebp - 0x40]
call fcn.00402ab8
cmp dword [ebp - 0x5c], 3
push edi
push edi
push edi
push edi
push 0x440094
sete bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x24b4], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x413d08
push edi
push edi
push 3
lea ecx, [ebp - 0x2166]
push ecx
lea ecx, [ebp - 0x2268]
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x246a]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x24c8], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x413b59
push str.httpGetString___InternetConnect_ERROR
jmp 0x413d0d
lea eax, [ebp - 0x2064]
push eax
lea ecx, [ebp - 0x24b0]
call fcn.00415fd8
lea eax, [ebp - 0x1062]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24b0]
call fcn.00402869
push 0
movzx eax, bl
xor ebx, ebx
shl eax, 0x17
push eax
push ebx
push 0x43ff90
push str.HTTP_1.0
push dword [ebp - 0x24b0]
push 0x446c74
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x24cc], esi
mov byte [ebp - 4], 3
test esi, esi
jne 0x413bc3
push str.httpGetString___HttpOpenRequest_ERROR
jmp 0x413d0d
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x413bdc
push str.httpGetString___HttpSendRequest_ERROR
jmp 0x413d0d
push ecx
lea ecx, [ebp - 0x2564]
call fcn.00415cf3
mov byte [ebp - 4], 4
push ebx
push ebx
lea eax, [ebp - 0x24b8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x413c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x413c96
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413bec
mov eax, dword [ebp - 0x24b8]
test eax, eax
je 0x413ca4
cmp eax, 0xffffffff
je 0x413c9d
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [ebp - 0x28]
mov dword [esp], str.InternetReadFile_failed
mov ebx, eax
call fcn.00402815
lea eax, [ebp - 0x24bc]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x24b8]
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004027a6
push 0
push dword [ebp - 0x24bc]
lea ecx, [ebp - 0x2564]
push ebx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor ebx, ebx
jmp 0x413bec
push str.httpGetString___InternetQueryDataAvailable_ERROR
jmp 0x413d0d
push str.httpGetString___No_Settings_ERROR
jmp 0x413d0d
mov ebx, dword [ebp - 0x24c0]
lea ecx, [ebp - 0x2560]
push ebx
call fcn.0040427d
lea ecx, [ebp - 0x2514]
call fcn.00415cc3
lea ecx, [ebp - 0x2514]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
lea ecx, [ebp - 0x24b0]
call fcn.00402b3c
push edi
call esi
push dword [ebp - 0x24b4]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004357ec
leave
ret
push str.httpGetString___InternetOpen_ERROR
lea ecx, [ebp - 0x1c]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3