Function at 0x413afc
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 0x43a353
mov eax, dword fs:[0]
push eax
mov eax, 0x2558
call fcn.00437fe0
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.0040eeb3
mov edx, eax
cmp dword [edx + 0x14], 7
jbe 0x413b65
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 0x413d91
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 0x413be2
push str.httpGetString___InternetConnect_ERROR
jmp 0x413d96
lea eax, [ebp - 0x2064]
push eax
lea ecx, [ebp - 0x24b0]
call fcn.00416061
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 0x446cac
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 0x413c4c
push str.httpGetString___HttpOpenRequest_ERROR
jmp 0x413d96
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x413c65
push str.httpGetString___HttpSendRequest_ERROR
jmp 0x413d96
push ecx
lea ecx, [ebp - 0x2564]
call fcn.00415d7c
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 0x413ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x413d1f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413c75
mov eax, dword [ebp - 0x24b8]
test eax, eax
je 0x413d2d
cmp eax, 0xffffffff
je 0x413d26
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.0041c290
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 0x413c75
push str.httpGetString___InternetQueryDataAvailable_ERROR
jmp 0x413d96
push str.httpGetString___No_Settings_ERROR
jmp 0x413d96
mov ebx, dword [ebp - 0x24c0]
lea ecx, [ebp - 0x2560]
push ebx
call fcn.0040427d
lea ecx, [ebp - 0x2514]
call fcn.00415d4c
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.0043587c
leave
ret
push str.httpGetString___InternetOpen_ERROR
lea ecx, [ebp - 0x1c]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3