Function at 0x42ec16
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dbeb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2aac
call fcn.0045cd80
mov eax, dword [0x4977b8]
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 - 0x2a48], edx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2a40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2a4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2a44], esi
mov dword [ebp - 0x2a50], eax
xor ebx, ebx
lea ecx, [ebp - 0x2a2c]
mov dword [ebp - 4], ebx
call fcn.0040dbb8
mov edx, esi
lea ecx, [ebp - 0x534]
call fcn.0042a7a8
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x42ecaf
mov edi, dword [edi]
lea ecx, [ebp - 0x2a2c]
call fcn.0040e33d
push edi
lea ecx, [ebp - 0x2a2c]
call fcn.0040ddd1
push ebx
push 1
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x2a3c], eax
call fcn.00409522
push ebx
push ebx
push ebx
push ebx
push 0x47a1a0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x2a60], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x42ed71
mov ebx, dword [ebp - 0x2a34]
cmp dword [ebx + 0x14], 0x10
jb 0x42ed07
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x42ed0f
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a48]
lea eax, [ebp - 0x54c]
push str.InternetOpen_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0042a994
add esp, 0x18
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x42ed3e
mov eax, dword [eax]
mov dword [ebp - 0x2a38], eax
lea eax, [ebp - 0x2a38]
push eax
lea ecx, [ebp - 0x2a70]
call fcn.0044a9ea
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x48a8c0
lea eax, [ebp - 0x2a70]
push eax
call fcn.0044fb93
mov dword [ebp - 0x2a54], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a3c], 0
je 0x42edb5
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x5e0]
lea eax, [ebp - 0x29ea]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
push ebx
mov dword [ebp - 0x2a38], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2a54], ebx
jmp 0x42edff
mov edx, esi
lea ecx, [ebp - 0x534]
call fcn.0042a7a8
cmp dword [eax + 0x14], 8
jb 0x42edca
mov eax, dword [eax]
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
push ebx
mov dword [ebp - 0x2a38], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 1
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x2a54], ebx
call fcn.00409522
push 0x50
pop eax
test ebx, ebx
jne 0x42ee91
cmp dword [ebp - 0x2a3c], ebx
je 0x42ee19
movzx eax, word [ebp - 0x5e0]
mov ebx, dword [ebp - 0x2a34]
cmp dword [ebx + 0x14], 0x10
jb 0x42ee27
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x42ee2f
mov esi, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a48]
lea eax, [ebp - 0x54c]
push str.InternetConnect_failed_for__s_http:___s_s__Error_Code:__d__Port_Number:__d
push eax
call fcn.0042a994
add esp, 0x1c
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x42ee5f
mov eax, dword [eax]
mov dword [ebp - 0x2a38], eax
lea eax, [ebp - 0x2a38]
push eax
lea ecx, [ebp - 0x2a94]
call fcn.0044a9ea
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x48a8c0
lea eax, [ebp - 0x2a94]
jmp 0x42ed6b
push dword [ebp - 0x2a48]
lea ecx, [ebp - 0x58c]
call fcn.00407cc8
mov edx, dword [ebp - 0x2a34]
lea ecx, [ebp - 0x5a4]
mov byte [ebp - 4], 5
call fcn.0042a7a8
mov esi, eax
lea edx, [ebp - 0x58c]
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 6
call fcn.0042a7a8
cmp dword [esi + 0x14], 8
jb 0x42eed6
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x42eede
mov eax, dword [eax]
push 1
push 0x20400010
push 0
push 0
push 0
push esi
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x2a64], esi
push 0
push 1
lea ecx, [ebp - 0x5bc]
call fcn.00409522
push 0
push 1
lea ecx, [ebp - 0x5a4]
call fcn.00409522
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 9
call fcn.00407d52
test esi, esi
jne 0x42efaa
mov ebx, dword [ebp - 0x2a34]
cmp dword [ebx + 0x14], 0x10
jb 0x42ef3b
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2a44]
cmp dword [esi + 0x14], 0x10
jb 0x42ef49
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a48]
lea eax, [ebp - 0x54c]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0042a994
add esp, 0x18
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x42ef78
mov eax, dword [eax]
mov dword [ebp - 0x2a44], eax
lea eax, [ebp - 0x2a44]
push eax
lea ecx, [ebp - 0x2aac]
call fcn.0044a9ea
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x48a8c0
lea eax, [ebp - 0x2aac]
jmp 0x42ed6b
mov eax, dword [ebp - 0x2a30]
test eax, eax
je 0x42f04d
push eax
lea eax, [ebp - 0x574]
push str.Content_Type:__s_r_n
push eax
call fcn.0042a994
add esp, 0xc
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.00407cc8
lea edx, [ebp - 0x574]
lea ecx, [ebp - 0x54c]
mov byte [ebp - 4], 0xc
call fcn.0042a7a8
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x42f002
mov eax, dword [eax]
push 0x20000000
push dword [ebp - 0x564]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x42f024
lea ecx, [ebp - 0x534]
call fcn.00427e7f
push 0
push 1
lea ecx, [ebp - 0x54c]
call fcn.00409522
lea ecx, [ebp - 0x534]
call fcn.00407d52
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 9
call fcn.00407d52
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x54c]
push eax
call fcn.00429b5d
mov ecx, dword [eax + 8]
add ecx, dword [eax]
push 2
push ecx
mov dword [ebp - 0x2a30], ecx
push ecx
mov ecx, dword [ebp - 0x2a40]
call fcn.00429a6e
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x54c]
push eax
call fcn.00429b5d
mov ecx, dword [eax + 8]
add ecx, dword [eax]
push 0
sub ecx, dword [ebp - 0x2a30]
push ecx
mov dword [ebp - 0x2a34], ecx
push ecx
mov ecx, dword [ebp - 0x2a40]
call fcn.00429a6e
mov eax, dword [ebp - 0x2a34]
test eax, eax
jne 0x42f0f9
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x534]
call fcn.00407cc8
xor eax, eax
push eax
push eax
push eax
push eax
push esi
mov byte [ebp - 4], 0xe
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x42f0e5
lea ecx, [ebp - 0x534]
call fcn.00427e7f
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00407d52
jmp 0x42f275
push eax
call fcn.0044b6df
mov ebx, eax
pop ecx
mov dword [ebp - 0x2a3c], ebx
mov ecx, dword [ebp - 0x2a40]
push 0
push dword [ebp - 0x2a34]
mov byte [ebp - 4], 0xf
push ebx
call fcn.004298cd
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x55c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2a34]
xor edi, edi
push edi
push edi
mov dword [ebp - 0x540], eax
push edi
lea eax, [ebp - 0x55c]
push eax
push esi
mov dword [ebp - 0x55c], 0x28
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x42f190
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2a88]
mov dword [ebp - 0x2a30], str.HttpSendRequestEx_failed
call fcn.0044a9ea
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x48a8c0
lea eax, [ebp - 0x2a88]
jmp 0x42ed6b
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x10
call fcn.00407cc8
lea eax, [ebp - 0x2a30]
push eax
push dword [ebp - 0x2a34]
mov byte [ebp - 4], 0x11
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x42f1cc
lea ecx, [ebp - 0x534]
call fcn.00427e7f
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x10
call fcn.00407d52
mov eax, dword [ebp - 0x2a34]
cmp dword [ebp - 0x2a30], eax
je 0x42f21f
lea eax, [ebp - 0x2a44]
push eax
lea ecx, [ebp - 0x2a7c]
mov dword [ebp - 0x2a44], str.Failed_to_upload_content
call fcn.0044a9ea
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x48a8c0
lea eax, [ebp - 0x2a7c]
jmp 0x42ed6b
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x534]
mov dword [ebp - 4], 0xf
call fcn.00407cc8
push edi
push edi
push edi
push esi
mov byte [ebp - 4], 0x13
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x42f253
lea ecx, [ebp - 0x534]
call fcn.00427e7f
lea ecx, [ebp - 0x534]
call fcn.00407d52
push ebx
mov byte [ebp - 4], 9
call fcn.0044b2a6
mov ebx, dword [ebp - 0x2a38]
mov edi, dword [ebp - 0x2a60]
pop ecx
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x2a30], 4
call fcn.00407cc8
push 0
lea eax, [ebp - 0x2a30]
push eax
lea eax, [ebp - 0x2a58]
push eax
push 0x20000013
push esi
mov byte [ebp - 4], 0x14
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x42f2be
lea ecx, [ebp - 0x534]
call fcn.00427e7f
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00407d52
and dword [ebp - 0x2a5c], 0
push 0
lea eax, [ebp - 0x2a30]
push eax
lea eax, [ebp - 0x2a5c]
push eax
push 0x20000005
push esi
mov dword [ebp - 0x2a30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea eax, [ebp - 0x2a30]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x36
push esi
mov dword [ebp - 0x2a30], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42f375
lea eax, [ebp - 0x11c]
push eax
call fcn.0040111e
pop ecx
mov ecx, dword [ebp - 0x2a4c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00409da9
mov ecx, dword [ebp - 0x2a4c]
mov eax, dword [ecx + 0x10]
add eax, 0xfffffffe
push eax
push 1
lea eax, [ebp - 0x54c]
push eax
call fcn.0042ad4a
mov ecx, dword [ebp - 0x2a4c]
push eax
call fcn.00407d1a
lea ecx, [ebp - 0x54c]
call fcn.00407d52
jmp 0x42f38a
mov eax, dword [ebp - 0x2a4c]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x42f387
mov eax, dword [eax]
mov byte [eax], 0
push 0
push 0
lea eax, [ebp - 0x2a38]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
neg eax
sbb eax, eax
and dword [ebp - 0x2a38], eax
je 0x42f427
push str.InternetReadFile_failed
lea ecx, [ebp - 0x534]
call fcn.00407cc8
lea eax, [ebp - 0x2a3c]
push eax
push 0x400
lea eax, [ebp - 0x51c]
push eax
push esi
mov byte [ebp - 4], 0x15
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42f3e5
lea ecx, [ebp - 0x534]
call fcn.00427e7f
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00407d52
mov ecx, dword [ebp - 0x2a50]
push 0
push dword [ebp - 0x2a3c]
lea eax, [ebp - 0x51c]
push eax
call fcn.0042980b
push dword [ebp - 0x2a5c]
lea ecx, [ebp + 0x24]
push dword [ebp - 0x2a3c]
call fcn.00430e6d
jmp 0x42f38a
cmp dword [ebp - 0x2a58], 0xc8
je 0x42f4fd
push 0
lea eax, [ebp - 0x2a50]
push eax
lea eax, [ebp - 0x51c]
push eax
push 0x14
push esi
mov dword [ebp - 0x2a50], 0x200
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42f4c3
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x54c]
call fcn.00408227
lea edx, [ebp - 0x54c]
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x16
call fcn.0042a731
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0x10
jb 0x42f491
mov eax, dword [eax]
mov dword [ebp - 0x2a30], eax
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2aa0]
call fcn.0044a9ea
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x48a8c0
lea eax, [ebp - 0x2aa0]
jmp 0x42ed6b
push dword [ebp - 0x2a58]
lea eax, [ebp - 0x54c]
push str.statusCode___d
push eax
call fcn.0042a994
add esp, 0xc
push eax
lea ecx, [ebp - 0x2ab8]
mov byte [ebp - 4], 0x18
call fcn.00401208
push 0x48a8c0
lea eax, [ebp - 0x2ab8]
jmp 0x42ed6b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00408e98
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.0044a9a4
leave
ret