Function at 0x434b4f
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 0x470f33
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2a9c
call fcn.00448ed0
mov eax, dword [0x49d5f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2a38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2a2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2a28], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2a3c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2a50], esi
mov dword [ebp - 0x2a40], eax
xor ebx, ebx
lea ecx, [ebp - 0x2a20]
mov dword [ebp - 4], ebx
call fcn.0042b606
push 2
lea ecx, [ebp - 0x2a20]
call fcn.0042bc38
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.0040eefc
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x434bf8
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x2a20]
call fcn.0042b515
push ebx
push 1
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a30], eax
call fcn.0040905f
push ebx
push ebx
push ebx
push ebx
push 0x47da68
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x2a54], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x434ca4
mov ebx, dword [ebp - 0x2a24]
cmp dword [ebx + 0x14], 0x10
jb 0x434c46
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x434c4e
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a38]
lea eax, [ebp - 0x544]
push str.InternetOpen_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0040f0ca
add esp, 0x18
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x434c7d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a64]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a64]
push 0x493804
push eax
call fcn.0044b334
mov dword [ebp - 0x2a44], ebx
cmp dword [ebp - 0x2a30], 0
mov byte [ebp - 4], 3
je 0x434ce8
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x5d4]
lea eax, [ebp - 0x29de]
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 - 0x2a44], ebx
jmp 0x434d34
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.0040eefc
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x434cff
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 - 0x2a34], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 1
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a44], ebx
call fcn.0040905f
push 0x50
pop eax
test ebx, ebx
jne 0x434db6
cmp dword [ebp - 0x2a30], ebx
je 0x434d4a
movzx eax, word [ebp - 0x5d4]
mov ebx, dword [ebp - 0x2a24]
cmp dword [ebx + 0x14], 0x10
jb 0x434d58
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x434d60
mov esi, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a38]
lea eax, [ebp - 0x544]
push str.InternetConnect_failed_for__s_http:___s_s__Error_Code:__d__Port_Number:__d
push eax
call fcn.0040f0ca
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x434d90
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a70]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a70]
push 0x493804
jmp 0x434c9e
push dword [ebp - 0x2a38]
lea ecx, [ebp - 0x584]
call fcn.00403e06
push dword [ebp - 0x2a24]
lea eax, [ebp - 0x5b4]
mov byte [ebp - 4], 5
push eax
call fcn.0040eefc
mov esi, eax
lea eax, [ebp - 0x584]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x59c]
push eax
call fcn.0040eefc
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x434e01
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x434e09
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 - 0x2a58], esi
push 0
push 1
lea ecx, [ebp - 0x59c]
call fcn.0040905f
push 0
push 1
lea ecx, [ebp - 0x5b4]
call fcn.0040905f
push 0
push 1
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 9
call fcn.0040900a
test esi, esi
jne 0x434ecd
mov ebx, dword [ebp - 0x2a24]
cmp dword [ebx + 0x14], 0x10
jb 0x434e6a
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2a50]
cmp dword [esi + 0x14], 0x10
jb 0x434e78
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a38]
lea eax, [ebp - 0x544]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0040f0ca
add esp, 0x18
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x434ea7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a7c]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a7c]
push 0x493804
jmp 0x434c9e
mov eax, dword [ebp - 0x2a28]
test eax, eax
je 0x434f7c
push eax
lea eax, [ebp - 0x56c]
push str.Content_Type:__s_r_n
push eax
call fcn.0040f0ca
add esp, 0xc
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0xb
call fcn.00403e06
lea eax, [ebp - 0x56c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x544]
push eax
call fcn.0040eefc
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xd
jb 0x434f29
mov eax, dword [eax]
lea ecx, [ebp - 0x52c]
push ecx
push 0x20000000
push dword [ebp - 0x55c]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push eax
call fcn.00415830
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x544]
call fcn.0040905f
push 0
push 1
lea ecx, [ebp - 0x52c]
call fcn.0040900a
push 0
push 1
lea ecx, [ebp - 0x56c]
mov byte [ebp - 4], 9
call fcn.0040900a
mov ecx, dword [ebp - 0x2a2c]
lea eax, [ebp - 0x52c]
push eax
call fcn.004156f7
mov ecx, dword [ebp - 0x2a2c]
push 2
push 0
push 0
call fcn.00415415
mov ecx, dword [ebp - 0x2a2c]
lea eax, [ebp - 0x56c]
push eax
call fcn.004156f7
mov eax, dword [ebp - 0x564]
sub eax, dword [ebp - 0x524]
sub eax, dword [ebp - 0x52c]
add eax, dword [ebp - 0x56c]
mov ecx, dword [ebp - 0x2a2c]
mov dword [ebp - 0x2a24], eax
xor eax, eax
push eax
push eax
push eax
call fcn.00415415
mov eax, dword [ebp - 0x2a24]
test eax, eax
jne 0x435031
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x52c]
call fcn.00403e06
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0xe
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push eax
call fcn.00415830
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.0040900a
jmp 0x43519b
push eax
call fcn.0044ef27
mov ebx, eax
pop ecx
mov dword [ebp - 0x2a50], ebx
mov ecx, dword [ebp - 0x2a2c]
push 0
push dword [ebp - 0x2a24]
mov byte [ebp - 4], 0xf
push ebx
call fcn.004151f1
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x554]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2a24]
xor edi, edi
push edi
push edi
mov dword [ebp - 0x538], eax
lea eax, [ebp - 0x554]
push edi
push eax
push esi
mov dword [ebp - 0x554], 0x28
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x4350bc
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x2a88]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a88]
push 0x493804
jmp 0x434c9e
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x10
call fcn.00403e06
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x2a28]
push eax
push dword [ebp - 0x2a24]
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
push eax
call fcn.00415830
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x10
call fcn.0040900a
mov eax, dword [ebp - 0x2a24]
cmp dword [ebp - 0x2a28], eax
je 0x435142
push str.Failed_to_upload_content
lea ecx, [ebp - 0x2a94]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a94]
push 0x493804
jmp 0x434c9e
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x52c]
mov dword [ebp - 4], 0xf
call fcn.00403e06
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x13
push eax
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push eax
call fcn.00415830
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x52c]
call fcn.0040900a
push ebx
mov byte [ebp - 4], 9
call fcn.0044ef22
mov ebx, dword [ebp - 0x2a34]
mov edi, dword [ebp - 0x2a54]
pop ecx
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a28], 4
call fcn.00403e06
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x14
push eax
push 0
lea eax, [ebp - 0x2a28]
push eax
lea eax, [ebp - 0x2a4c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push eax
call fcn.00415830
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.0040900a
and dword [ebp - 0x2a48], 0
lea eax, [ebp - 0x2a28]
push 0
push eax
lea eax, [ebp - 0x2a48]
mov dword [ebp - 0x2a28], 4
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea eax, [ebp - 0x2a28]
mov dword [ebp - 0x2a28], 0x100
push eax
lea eax, [ebp - 0x114]
push eax
push 0x36
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4352a3
lea eax, [ebp - 0x114]
push eax
call fcn.0040b440
pop ecx
mov ecx, dword [ebp - 0x2a3c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00409541
mov ecx, dword [ebp - 0x2a3c]
mov eax, dword [ecx + 0x10]
add eax, 0xfffffffe
push eax
push 1
lea eax, [ebp - 0x544]
push eax
call fcn.0040f45c
mov ecx, dword [ebp - 0x2a3c]
push eax
call fcn.004052e4
push 0
push 1
lea ecx, [ebp - 0x544]
call fcn.0040900a
jmp 0x4352b8
mov eax, dword [ebp - 0x2a3c]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4352b5
mov eax, dword [eax]
mov byte [eax], 0
push 0
push 0
lea eax, [ebp - 0x2a34]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4352e2
cmp byte [0x4f0e3d], al
jne 0x435373
mov dword [ebp - 0x2a34], eax
jmp 0x4352e8
mov eax, dword [ebp - 0x2a34]
test eax, eax
je 0x43537d
push str.InternetReadFile_failed
lea ecx, [ebp - 0x52c]
call fcn.00403e06
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x2a30]
push eax
push 0x400
lea eax, [ebp - 0x514]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push eax
call fcn.00415830
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.0040900a
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x514]
push 0
push dword [ebp - 0x2a30]
push eax
call fcn.00416012
push dword [ebp - 0x2a48]
lea ecx, [ebp + 0x2c]
push dword [ebp - 0x2a30]
call fcn.0043c184
jmp 0x4352b8
push str.InternetQueryDataAvailable_failed
call fcn.00415882
cmp dword [ebp - 0x2a4c], 0xc8
je 0x43545d
push 0
lea eax, [ebp - 0x2a40]
mov dword [ebp - 0x2a40], 0x200
push eax
lea eax, [ebp - 0x514]
push eax
push 0x14
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x435411
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x544]
call fcn.00403e82
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.0040ef8f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x17
jb 0x4353eb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2aa0]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2aa0]
push 0x493804
jmp 0x434c9e
push dword [ebp - 0x2a4c]
lea eax, [ebp - 0x544]
push str.statusCode___d
push eax
call fcn.0040f0ca
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x18
jb 0x435437
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2aac]
call fcn.00404864
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2aac]
push 0x493804
jmp 0x434c9e
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
lea ecx, [ebp + 0x2c]
mov dword [ebp - 4], 0x19
call fcn.00421542
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 - 0x14]
xor ecx, ebp
call fcn.00448d6b
mov esp, ebp
pop ebp
ret