Function at 0x413dad
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 0x43a466
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x29ac
call fcn.00437fe0
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.0040eeb3
mov edx, eax
cmp dword [edx + 0x14], 7
jbe 0x413e46
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 0x4145fb
mov dword [ebp - 0x2954], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x293c], 0
je 0x413ec9
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 0x413f09
mov edx, edi
lea ecx, [ebp - 0x434]
call fcn.0040eeb3
cmp dword [eax + 0x14], 7
jbe 0x413ede
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 0x413f87
cmp dword [ebp - 0x293c], edi
je 0x413f26
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.0040f0a4
add esp, 0x1c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040275d
push eax
lea ecx, [ebp - 0x297c]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x297c]
jmp 0x414652
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.0040eeb3
mov esi, eax
lea edx, [ebp - 0x48c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4a4]
call fcn.0040eeb3
cmp dword [esi + 0x14], 7
jbe 0x413fcc
mov esi, dword [esi]
cmp dword [eax + 0x14], 7
jbe 0x413fd4
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 0x414078
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.0040f0a4
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040275d
push eax
lea ecx, [ebp - 0x2988]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x2988]
jmp 0x414652
mov eax, dword [ebp - 0x2940]
test eax, eax
je 0x414115
push eax
lea eax, [ebp - 0x474]
push str.Content_Type:__s_r_n
push eax
call fcn.0040f0a4
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.0040eeb3
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
jbe 0x4140d0
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.0041c290
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 0x4141d2
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.0041c290
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 9
call fcn.004027a6
jmp 0x414330
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 0x414266
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x2994]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x2994]
jmp 0x414652
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.0041c290
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x10
call fcn.004027a6
mov eax, dword [ebp - 0x2930]
cmp dword [ebp - 0x2940], eax
je 0x4142e2
push str.Failed_to_upload_content
lea ecx, [ebp - 0x29a0]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x29a0]
jmp 0x414652
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.0041c290
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.0041c290
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 0x41442f
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4143df
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.0040f5ff
mov ecx, dword [ebp - 0x294c]
push eax
call fcn.004027c9
lea ecx, [ebp - 0x44c]
call fcn.004027a6
jmp 0x414442
mov eax, dword [ebp - 0x294c]
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 0xf
jbe 0x414440
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 0x414460
mov eax, ebx
mov dword [ebp - 0x2934], eax
jmp 0x414466
mov eax, dword [ebp - 0x2934]
test eax, eax
je 0x4144e7
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.0041c290
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.00415d0b
jmp 0x414442
cmp dword [ebp - 0x295c], 0xc8
je 0x4145a5
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 0x41456b
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x44c]
call fcn.0040bc27
lea edx, [ebp - 0x44c]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x434]
call fcn.0040ee35
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.0040275d
push eax
lea ecx, [ebp - 0x29ac]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x29ac]
jmp 0x414652
push dword [ebp - 0x295c]
lea eax, [ebp - 0x44c]
push str.statusCode___d
push eax
call fcn.0040f0a4
add esp, 0xc
push eax
lea ecx, [ebp - 0x29b8]
mov byte [ebp - 4], 0x18
call fcn.00405d7a
push 0x456dc8
lea eax, [ebp - 0x29b8]
jmp 0x414652
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.0040b034
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.0043587c
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.0040f0a4
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040275d
push eax
lea ecx, [ebp - 0x2970]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x2970]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3