Function at 0x432fe8
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 0x472a26
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2aa4
call fcn.00461c20
mov eax, dword [0x49b7f8]
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 - 0x2a4c], edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2a38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2a44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2a48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2a40], ebx
mov dword [ebp - 0x2a50], eax
xor esi, esi
lea ecx, [ebp - 0x2a2c]
mov dword [ebp - 4], esi
call fcn.00410550
push 4
pop ecx
push 0x50
pop eax
push ecx
push dword [0x47f488]
mov word [ebp - 0x5e0], ax
lea eax, [ebp - 0x2a2c]
push 0x21
push eax
mov dword [ebp - 0x5dc], 2
mov dword [ebp - 0x5d8], ecx
call fcn.004508ba
push eax
call fcn.0040fbb0
add esp, 0x14
mov edx, ebx
lea ecx, [ebp - 0x534]
call fcn.0042f884
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4330bc
mov edi, dword [edi]
lea ecx, [ebp - 0x2a2c]
call fcn.00410550
push edi
lea ecx, [ebp - 0x2a2c]
call fcn.0040ffd0
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x2a3c], eax
call fcn.00408690
push esi
push esi
push esi
push esi
push 0x47f580
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x2a60], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x43317b
mov esi, dword [ebp - 0x2a38]
cmp dword [esi + 0x14], 0x10
jb 0x433111
mov esi, dword [esi]
cmp dword [ebx + 0x14], 0x10
jb 0x433119
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push dword [ebp - 0x2a4c]
lea eax, [ebp - 0x54c]
push str.InternetOpen_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0042fa5d
add esp, 0x18
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x433148
mov eax, dword [eax]
mov dword [ebp - 0x2a34], eax
lea eax, [ebp - 0x2a34]
push eax
lea ecx, [ebp - 0x2a90]
call fcn.0044f8e7
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push 0x48e968
lea eax, [ebp - 0x2a90]
push eax
call fcn.00454ac3
mov dword [ebp - 0x2a54], esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a3c], 0
je 0x4331bf
push esi
push esi
push 3
push esi
push esi
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 - 0x2a34], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2a54], ebx
jmp 0x433205
mov edx, ebx
lea ecx, [ebp - 0x534]
call fcn.0042f884
cmp dword [eax + 0x14], 8
jb 0x4331d4
mov eax, dword [eax]
push 1
push esi
push 3
push esi
push esi
push 0x50
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
push ebx
mov dword [ebp - 0x2a34], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x2a54], ebx
call fcn.00408690
test ebx, ebx
jne 0x43329f
cmp dword [ebp - 0x2a3c], ebx
je 0x43321e
movzx eax, word [ebp - 0x5e0]
jmp 0x433221
push 0x50
pop eax
mov ebx, dword [ebp - 0x2a38]
cmp dword [ebx + 0x14], 0x10
jb 0x43322f
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2a40]
cmp dword [esi + 0x14], 0x10
jb 0x43323d
mov esi, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a4c]
lea eax, [ebp - 0x54c]
push str.InternetConnect_failed_for__s_http:___s_s__Error_Code:__d__Port_Number:__d
push eax
call fcn.0042fa5d
add esp, 0x1c
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x43326d
mov eax, dword [eax]
mov dword [ebp - 0x2a34], eax
lea eax, [ebp - 0x2a34]
push eax
lea ecx, [ebp - 0x2a6c]
call fcn.0044f8e7
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push 0x48e968
lea eax, [ebp - 0x2a6c]
jmp 0x433175
push dword [ebp - 0x2a4c]
lea ecx, [ebp - 0x58c]
call fcn.00407d70
mov edx, dword [ebp - 0x2a38]
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 5
call fcn.0042f884
mov dword [ebp - 0x2a3c], eax
lea edx, [ebp - 0x58c]
lea ecx, [ebp - 0x5a4]
mov byte [ebp - 4], 6
call fcn.0042f884
mov ecx, dword [ebp - 0x2a3c]
cmp dword [ecx + 0x14], 8
jb 0x4332ee
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x4332f6
mov eax, dword [eax]
push 1
push 0x20400010
push esi
push esi
push esi
push ecx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x2a3c], esi
lea ecx, [ebp - 0x5a4]
call fcn.00408690
lea ecx, [ebp - 0x5bc]
call fcn.00408690
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 9
call fcn.00404060
test esi, esi
jne 0x4333b7
mov ebx, dword [ebp - 0x2a38]
cmp dword [ebx + 0x14], 0x10
jb 0x433348
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2a40]
cmp dword [esi + 0x14], 0x10
jb 0x433356
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a4c]
lea eax, [ebp - 0x54c]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0042fa5d
add esp, 0x18
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x433385
mov eax, dword [eax]
mov dword [ebp - 0x2a34], eax
lea eax, [ebp - 0x2a34]
push eax
lea ecx, [ebp - 0x2aa8]
call fcn.0044f8e7
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push 0x48e968
lea eax, [ebp - 0x2aa8]
jmp 0x433175
mov eax, dword [ebp - 0x2a30]
test eax, eax
je 0x433456
push eax
lea eax, [ebp - 0x574]
push str.Content_Type:__s_r_n
push eax
call fcn.0042fa5d
add esp, 0xc
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.00407d70
lea edx, [ebp - 0x574]
lea ecx, [ebp - 0x54c]
mov byte [ebp - 4], 0xc
call fcn.0042f884
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x43340f
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 0x433431
lea ecx, [ebp - 0x534]
call fcn.0042d9c1
lea ecx, [ebp - 0x54c]
call fcn.00408690
lea ecx, [ebp - 0x534]
call fcn.00404060
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 9
call fcn.00404060
mov ecx, dword [ebp - 0x2a44]
lea eax, [ebp - 0x534]
push eax
call fcn.0042f590
push 2
push ecx
push ecx
mov ecx, dword [ebp - 0x2a44]
call fcn.0042f4a1
mov ecx, dword [ebp - 0x2a44]
lea eax, [ebp - 0x574]
push eax
call fcn.0042f590
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 - 0x2a44]
mov dword [ebp - 0x2a38], eax
call fcn.0042f4a1
mov eax, dword [ebp - 0x2a38]
test eax, eax
jne 0x433504
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x534]
call fcn.00407d70
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 0x4334f0
lea ecx, [ebp - 0x534]
call fcn.0042d9c1
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00404060
jmp 0x433680
push eax
call fcn.0045021a
mov ebx, eax
pop ecx
mov dword [ebp - 0x2a40], ebx
mov ecx, dword [ebp - 0x2a44]
push 0
push dword [ebp - 0x2a38]
mov byte [ebp - 4], 0xf
push ebx
call fcn.0042f300
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x55c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2a38]
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 0x43359b
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2a84]
mov dword [ebp - 0x2a30], str.HttpSendRequestEx_failed
call fcn.0044f8e7
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push 0x48e968
lea eax, [ebp - 0x2a84]
jmp 0x433175
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x10
call fcn.00407d70
lea eax, [ebp - 0x2a30]
push eax
push dword [ebp - 0x2a38]
mov byte [ebp - 4], 0x11
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4335d7
lea ecx, [ebp - 0x534]
call fcn.0042d9c1
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x10
call fcn.00404060
mov eax, dword [ebp - 0x2a38]
cmp dword [ebp - 0x2a30], eax
je 0x43362a
lea eax, [ebp - 0x2a34]
push eax
lea ecx, [ebp - 0x2a78]
mov dword [ebp - 0x2a34], str.Failed_to_upload_content
call fcn.0044f8e7
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push 0x48e968
lea eax, [ebp - 0x2a78]
jmp 0x433175
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x534]
mov dword [ebp - 4], 0xf
call fcn.00407d70
push edi
push edi
push edi
push esi
mov byte [ebp - 4], 0x13
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x43365e
lea ecx, [ebp - 0x534]
call fcn.0042d9c1
lea ecx, [ebp - 0x534]
call fcn.00404060
push ebx
mov byte [ebp - 4], 9
call fcn.00450127
mov ebx, dword [ebp - 0x2a34]
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.00407d70
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 0x4336c9
lea ecx, [ebp - 0x534]
call fcn.0042d9c1
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00404060
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], pe_nt_image_headers32
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x2a48]
test eax, eax
je 0x433772
lea eax, [ebp - 0x11c]
push eax
call fcn.00407e80
mov ecx, dword [ebp - 0x2a48]
mov eax, dword [ecx + 0x10]
add eax, 0xfffffffe
push eax
push 1
lea eax, [ebp - 0x54c]
push eax
call fcn.0042fe07
mov ecx, dword [ebp - 0x2a48]
push eax
call fcn.00407e40
lea ecx, [ebp - 0x54c]
call fcn.00404060
jmp 0x433779
push 0
call fcn.00408f20
push 0
push 0
lea eax, [ebp - 0x2a34]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
neg eax
sbb eax, eax
and dword [ebp - 0x2a34], eax
je 0x433816
push str.InternetReadFile_failed
lea ecx, [ebp - 0x534]
call fcn.00407d70
lea eax, [ebp - 0x2a40]
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 0x4337d4
lea ecx, [ebp - 0x534]
call fcn.0042d9c1
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.00404060
mov ecx, dword [ebp - 0x2a50]
push 0
push dword [ebp - 0x2a40]
lea eax, [ebp - 0x51c]
push eax
call fcn.0042f23e
push dword [ebp - 0x2a5c]
lea ecx, [ebp + 0x24]
push dword [ebp - 0x2a40]
call fcn.00435226
jmp 0x433779
cmp dword [ebp - 0x2a58], 0xc8
je 0x4338ec
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 0x4338b2
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x54c]
call fcn.00408580
lea edx, [ebp - 0x54c]
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x16
call fcn.0042f811
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0x10
jb 0x433880
mov eax, dword [eax]
mov dword [ebp - 0x2a30], eax
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2a9c]
call fcn.0044f8e7
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push 0x48e968
lea eax, [ebp - 0x2a9c]
jmp 0x433175
push dword [ebp - 0x2a58]
lea eax, [ebp - 0x54c]
push str.statusCode___d
push eax
call fcn.0042fa5d
add esp, 0xc
push eax
lea ecx, [ebp - 0x2ab4]
mov byte [ebp - 4], 0x18
call fcn.00401250
push 0x48e968
lea eax, [ebp - 0x2ab4]
jmp 0x433175
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.00407cd0
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.0044f834
leave
ret