Function at 0x42d054
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 0x46c0b1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2aac
call fcn.0045b5d0
mov eax, dword [0x4947b8]
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.0040dca2
mov edx, esi
lea ecx, [ebp - 0x534]
call fcn.004297c4
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x42d0ed
mov edi, dword [edi]
lea ecx, [ebp - 0x2a2c]
call fcn.0040e427
push edi
lea ecx, [ebp - 0x2a2c]
call fcn.0040debb
push ebx
push 1
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x2a3c], eax
call fcn.004095c3
push ebx
push ebx
push ebx
push ebx
push 0x478208
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x2a60], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x42d1af
mov ebx, dword [ebp - 0x2a34]
cmp dword [ebx + 0x14], 0x10
jb 0x42d145
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x42d14d
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.004299b0
add esp, 0x18
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x42d17c
mov eax, dword [eax]
mov dword [ebp - 0x2a38], eax
lea eax, [ebp - 0x2a38]
push eax
lea ecx, [ebp - 0x2a70]
call fcn.0044932a
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x488818
lea eax, [ebp - 0x2a70]
push eax
call fcn.0044e4d3
mov dword [ebp - 0x2a54], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a3c], 0
je 0x42d1f3
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 0x42d23d
mov edx, esi
lea ecx, [ebp - 0x534]
call fcn.004297c4
cmp dword [eax + 0x14], 8
jb 0x42d208
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.004095c3
push 0x50
pop eax
test ebx, ebx
jne 0x42d2cf
cmp dword [ebp - 0x2a3c], ebx
je 0x42d257
movzx eax, word [ebp - 0x5e0]
mov ebx, dword [ebp - 0x2a34]
cmp dword [ebx + 0x14], 0x10
jb 0x42d265
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x42d26d
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.004299b0
add esp, 0x1c
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x42d29d
mov eax, dword [eax]
mov dword [ebp - 0x2a38], eax
lea eax, [ebp - 0x2a38]
push eax
lea ecx, [ebp - 0x2a94]
call fcn.0044932a
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x488818
lea eax, [ebp - 0x2a94]
jmp 0x42d1a9
push dword [ebp - 0x2a48]
lea ecx, [ebp - 0x58c]
call fcn.00407d9b
mov edx, dword [ebp - 0x2a34]
lea ecx, [ebp - 0x5a4]
mov byte [ebp - 4], 5
call fcn.004297c4
mov esi, eax
lea edx, [ebp - 0x58c]
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 6
call fcn.004297c4
cmp dword [esi + 0x14], 8
jb 0x42d314
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x42d31c
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.004095c3
push 0
push 1
lea ecx, [ebp - 0x5a4]
call fcn.004095c3
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 9
call fcn.00407e25
test esi, esi
jne 0x42d3e8
mov ebx, dword [ebp - 0x2a34]
cmp dword [ebx + 0x14], 0x10
jb 0x42d379
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2a44]
cmp dword [esi + 0x14], 0x10
jb 0x42d387
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.004299b0
add esp, 0x18
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x42d3b6
mov eax, dword [eax]
mov dword [ebp - 0x2a44], eax
lea eax, [ebp - 0x2a44]
push eax
lea ecx, [ebp - 0x2aac]
call fcn.0044932a
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x488818
lea eax, [ebp - 0x2aac]
jmp 0x42d1a9
mov eax, dword [ebp - 0x2a30]
test eax, eax
je 0x42d48b
push eax
lea eax, [ebp - 0x574]
push str.Content_Type:__s_r_n
push eax
call fcn.004299b0
add esp, 0xc
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.00407d9b
lea edx, [ebp - 0x574]
lea ecx, [ebp - 0x54c]
mov byte [ebp - 4], 0xc
call fcn.004297c4
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x42d440
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 0x42d462
lea ecx, [ebp - 0x534]
call fcn.00426e74
push 0
push 1
lea ecx, [ebp - 0x54c]
call fcn.004095c3
lea ecx, [ebp - 0x534]
call fcn.00407e25
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 9
call fcn.00407e25
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x534]
push eax
call fcn.00428b7c
push 2
push ecx
push ecx
mov ecx, dword [ebp - 0x2a40]
call fcn.00428a8d
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x574]
push eax
call fcn.00428b7c
mov eax, dword [ebp - 0x56c]
sub eax, dword [ebp - 0x52c]
push 0
sub eax, dword [ebp - 0x534]
push ecx
add eax, dword [ebp - 0x574]
push ecx
mov ecx, dword [ebp - 0x2a40]
mov dword [ebp - 0x2a34], eax
call fcn.00428a8d
mov eax, dword [ebp - 0x2a34]
test eax, eax
jne 0x42d539
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x534]
call fcn.00407d9b
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 0x42d525
lea ecx, [ebp - 0x534]
call fcn.00426e74
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00407e25
jmp 0x42d6b5
push eax
call fcn.0044a01f
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.004288ec
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 0x42d5d0
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2a88]
mov dword [ebp - 0x2a30], str.HttpSendRequestEx_failed
call fcn.0044932a
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x488818
lea eax, [ebp - 0x2a88]
jmp 0x42d1a9
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x10
call fcn.00407d9b
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 0x42d60c
lea ecx, [ebp - 0x534]
call fcn.00426e74
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x10
call fcn.00407e25
mov eax, dword [ebp - 0x2a34]
cmp dword [ebp - 0x2a30], eax
je 0x42d65f
lea eax, [ebp - 0x2a44]
push eax
lea ecx, [ebp - 0x2a7c]
mov dword [ebp - 0x2a44], str.Failed_to_upload_content
call fcn.0044932a
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x488818
lea eax, [ebp - 0x2a7c]
jmp 0x42d1a9
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x534]
mov dword [ebp - 4], 0xf
call fcn.00407d9b
push edi
push edi
push edi
push esi
mov byte [ebp - 4], 0x13
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x42d693
lea ecx, [ebp - 0x534]
call fcn.00426e74
lea ecx, [ebp - 0x534]
call fcn.00407e25
push ebx
mov byte [ebp - 4], 9
call fcn.00449be6
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.00407d9b
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 0x42d6fe
lea ecx, [ebp - 0x534]
call fcn.00426e74
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00407e25
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 0x42d7b5
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.00409e4a
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.00429d66
mov ecx, dword [ebp - 0x2a4c]
push eax
call fcn.00407ded
lea ecx, [ebp - 0x54c]
call fcn.00407e25
jmp 0x42d7ca
mov eax, dword [ebp - 0x2a4c]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x42d7c7
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 0x42d867
push str.InternetReadFile_failed
lea ecx, [ebp - 0x534]
call fcn.00407d9b
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 0x42d825
lea ecx, [ebp - 0x534]
call fcn.00426e74
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00407e25
mov ecx, dword [ebp - 0x2a50]
push 0
push dword [ebp - 0x2a3c]
lea eax, [ebp - 0x51c]
push eax
call fcn.0042882a
push dword [ebp - 0x2a5c]
lea ecx, [ebp + 0x24]
push dword [ebp - 0x2a3c]
call fcn.0042f26e
jmp 0x42d7ca
cmp dword [ebp - 0x2a58], 0xc8
je 0x42d93d
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 0x42d903
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x54c]
call fcn.004082fa
lea edx, [ebp - 0x54c]
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x16
call fcn.0042974d
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0x10
jb 0x42d8d1
mov eax, dword [eax]
mov dword [ebp - 0x2a30], eax
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2aa0]
call fcn.0044932a
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x488818
lea eax, [ebp - 0x2aa0]
jmp 0x42d1a9
push dword [ebp - 0x2a58]
lea eax, [ebp - 0x54c]
push str.statusCode___d
push eax
call fcn.004299b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2ab8]
mov byte [ebp - 4], 0x18
call fcn.00401208
push 0x488818
lea eax, [ebp - 0x2ab8]
jmp 0x42d1a9
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.00408f39
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.004492e4
leave
ret