Function at 0x413d24
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
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 0x43a3b6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x29ac
call fcn.00437f50
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2948], edx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2930], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2938], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2940], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x294c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2934], edi
mov dword [ebp - 0x2950], eax
xor ebx, ebx
lea ecx, [ebp - 0x292c]
mov dword [ebp - 4], ebx
call fcn.00401a11
mov edx, edi
lea ecx, [ebp - 0x434]
call fcn.0040ee2a
mov edx, eax
cmp dword [edx + 0x14], 7
jbe 0x413dbd
mov edx, dword [edx]
lea ecx, [ebp - 0x292c]
call fcn.004021c5
push edx
call fcn.00401bd5
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x293c], eax
call fcn.00402ab8
push ebx
push ebx
push ebx
push ebx
push 0x440094
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x2960], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x414572
mov dword [ebp - 0x2954], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x293c], 0
je 0x413e40
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x4e0]
lea eax, [ebp - 0x28ea]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2954], edi
jmp 0x413e80
mov edx, edi
lea ecx, [ebp - 0x434]
call fcn.0040ee2a
cmp dword [eax + 0x14], 7
jbe 0x413e55
mov eax, dword [eax]
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x2954], edi
call fcn.00402ab8
push 0x50
pop eax
test edi, edi
jne 0x413efe
cmp dword [ebp - 0x293c], edi
je 0x413e9d
lea ecx, [ebp - 0x292c]
call fcn.00401b7b
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2930]
push eax
call fcn.0040275d
mov ecx, dword [ebp - 0x2934]
push eax
call fcn.0040275d
push eax
push dword [ebp - 0x2948]
lea eax, [ebp - 0x44c]
push str.InternetConnect_failed_for__s_http:___s_s__Error_Code:__d__Port_Number:__d
push eax
call fcn.0040f01b
add esp, 0x1c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040275d
push eax
lea ecx, [ebp - 0x297c]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x297c]
jmp 0x4145c9
push dword [ebp - 0x2948]
lea ecx, [ebp - 0x48c]
call fcn.00402815
mov edx, dword [ebp - 0x2930]
lea ecx, [ebp - 0x4bc]
mov byte [ebp - 4], 5
call fcn.0040ee2a
mov esi, eax
lea edx, [ebp - 0x48c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4a4]
call fcn.0040ee2a
cmp dword [esi + 0x14], 7
jbe 0x413f43
mov esi, dword [esi]
cmp dword [eax + 0x14], 7
jbe 0x413f4b
mov eax, dword [eax]
push 1
push 0x20400010
push ebx
push ebx
push ebx
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x2964], esi
lea ecx, [ebp - 0x4a4]
call fcn.00402ab8
lea ecx, [ebp - 0x4bc]
call fcn.00402ab8
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 9
call fcn.004027a6
test esi, esi
jne 0x413fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2930]
push eax
call fcn.0040275d
mov ecx, dword [ebp - 0x2934]
push eax
call fcn.0040275d
push eax
push dword [ebp - 0x2948]
lea eax, [ebp - 0x44c]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0040f01b
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040275d
push eax
lea ecx, [ebp - 0x2988]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x2988]
jmp 0x4145c9
mov eax, dword [ebp - 0x2940]
test eax, eax
je 0x41408c
push eax
lea eax, [ebp - 0x474]
push str.Content_Type:__s_r_n
push eax
call fcn.0040f01b
add esp, 0xc
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0xb
call fcn.00402815
lea edx, [ebp - 0x474]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44c]
call fcn.0040ee2a
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
jbe 0x414047
mov eax, dword [eax]
push 0x20000000
push dword [ebp - 0x464]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea edx, [ebp - 0x434]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x44c]
call fcn.00402ab8
lea ecx, [ebp - 0x434]
call fcn.004027a6
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 9
call fcn.004027a6
mov ecx, dword [ebp - 0x2938]
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 2
push 0
push 0
mov ebx, dword [eax + 8]
add ebx, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0x2940], ecx
mov ecx, dword [ebp - 0x2938]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov ecx, dword [ebp - 0x2938]
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov edx, dword [eax + 8]
add edx, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
sub edx, ebx
xor ebx, ebx
mov dword [ebp - 0x2940], ecx
mov ecx, dword [ebp - 0x2938]
push ebx
push ebx
push ebx
mov dword [ebp - 0x2930], edx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov eax, dword [ebp - 0x2930]
test eax, eax
jne 0x414149
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x434]
call fcn.00402815
push ebx
push ebx
push ebx
push ebx
push esi
mov byte [ebp - 4], 0xe
call dword [sym.imp.WININET.dll_HttpSendRequestW]
lea edx, [ebp - 0x434]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 9
call fcn.004027a6
jmp 0x4142a7
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x2934], eax
mov ecx, dword [ebp - 0x2938]
push ebx
push dword [ebp - 0x2930]
mov byte [ebp - 4], 0xf
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov eax, dword [ebp - 0x2930]
xorps xmm0, xmm0
push ebx
push ebx
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x45c]
push ebx
push eax
push esi
movlpd qword [ebp - 0x458], xmm0
movlpd qword [ebp - 0x450], xmm0
movlpd qword [ebp - 0x448], xmm0
movlpd qword [ebp - 0x43c], xmm0
mov dword [ebp - 0x45c], 0x28
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x4141dd
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x2994]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x2994]
jmp 0x4145c9
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x10
call fcn.00402815
lea eax, [ebp - 0x2940]
mov byte [ebp - 4], 0x11
push eax
push dword [ebp - 0x2930]
push dword [ebp - 0x2934]
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
lea edx, [ebp - 0x434]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x10
call fcn.004027a6
mov eax, dword [ebp - 0x2930]
cmp dword [ebp - 0x2940], eax
je 0x414259
push str.Failed_to_upload_content
lea ecx, [ebp - 0x29a0]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x29a0]
jmp 0x4145c9
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xf
call fcn.00402815
push ebx
push ebx
push ebx
push esi
mov byte [ebp - 4], 0x13
call dword [sym.imp.WININET.dll_HttpEndRequestW]
lea edx, [ebp - 0x434]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x434]
call fcn.004027a6
mov byte [ebp - 4], 9
push dword [ebp - 0x2934]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x2940], 4
call fcn.00402815
push ebx
lea eax, [ebp - 0x2940]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x295c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea edx, [ebp - 0x434]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 9
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2940]
mov dword [ebp - 0x2958], ebx
push eax
lea eax, [ebp - 0x2958]
mov dword [ebp - 0x2940], 4
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea eax, [ebp - 0x2940]
mov dword [ebp - 0x2940], 0x100
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x36
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4143a6
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414356
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x294c]
push eax
call fcn.004044fc
mov ecx, dword [ebp - 0x294c]
mov eax, dword [ecx + 0x10]
sub eax, 2
push eax
push 1
lea eax, [ebp - 0x44c]
push eax
call fcn.0040f576
mov ecx, dword [ebp - 0x294c]
push eax
call fcn.004027c9
lea ecx, [ebp - 0x44c]
call fcn.004027a6
jmp 0x4143b9
mov eax, dword [ebp - 0x294c]
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 0xf
jbe 0x4143b7
mov eax, dword [eax]
mov byte [eax], bl
push ebx
push ebx
lea eax, [ebp - 0x2934]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4143d7
mov eax, ebx
mov dword [ebp - 0x2934], eax
jmp 0x4143dd
mov eax, dword [ebp - 0x2934]
test eax, eax
je 0x41445e
push str.InternetReadFile_failed
lea ecx, [ebp - 0x434]
call fcn.00402815
lea eax, [ebp - 0x293c]
mov byte [ebp - 4], 0x15
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 0x434]
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 9
call fcn.004027a6
mov ecx, dword [ebp - 0x2950]
lea eax, [ebp - 0x41c]
push ebx
push dword [ebp - 0x293c]
push eax
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 dword [ebp - 0x2958]
lea ecx, [ebp + 0x24]
push dword [ebp - 0x293c]
call fcn.00415c82
jmp 0x4143b9
cmp dword [ebp - 0x295c], 0xc8
je 0x41451c
push ebx
lea eax, [ebp - 0x2950]
mov dword [ebp - 0x2950], 0x200
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x14
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4144e2
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x44c]
call fcn.0040bb9e
lea edx, [ebp - 0x44c]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x434]
call fcn.0040edac
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.0040275d
push eax
lea ecx, [ebp - 0x29ac]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x29ac]
jmp 0x4145c9
push dword [ebp - 0x295c]
lea eax, [ebp - 0x44c]
push str.statusCode___d
push eax
call fcn.0040f01b
add esp, 0xc
push eax
lea ecx, [ebp - 0x29b8]
mov byte [ebp - 4], 0x18
call fcn.00405d7a
push 0x456d68
lea eax, [ebp - 0x29b8]
jmp 0x4145c9
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
push edi
call ebx
push dword [ebp - 0x2960]
call ebx
lea ecx, [ebp + 0x24]
call fcn.0040afab
mov eax, 0xc8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004357ec
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2930]
push eax
call fcn.0040275d
push eax
mov ecx, edi
call fcn.0040275d
push eax
push dword [ebp - 0x2948]
lea eax, [ebp - 0x44c]
push str.InternetOpen_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0040f01b
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040275d
push eax
lea ecx, [ebp - 0x2970]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x2970]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3