Function at 0x434d87
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 0x4711fe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2aa0
call fcn.004491a0
mov eax, dword [0x49e5f4]
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 + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2a28], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x2a21], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2a40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2a30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2a48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2a2c], esi
mov dword [ebp - 0x2a54], edi
mov dword [ebp - 0x2a50], eax
mov edx, dword [0x4f1d78]
xor ebx, ebx
inc edx
mov dword [ebp - 4], ebx
mov dword [0x4f1d78], edx
cmp byte [0x49e0ae], bl
je 0x434ea3
cmp dword [edi + 0x14], 0x10
jb 0x434e33
mov eax, dword [edi]
mov dword [ebp - 0x2a38], eax
jmp 0x434e39
mov dword [ebp - 0x2a38], edi
cmp dword [esi + 0x14], 0x10
jb 0x434e49
mov eax, dword [esi]
mov dword [ebp - 0x2a34], eax
jmp 0x434e4f
mov dword [ebp - 0x2a34], esi
xor eax, eax
mov ecx, str._passed_as_null_
cmp dword [ebp + 0x28], eax
setne al
cmp dword [ebp - 0x2a30], ebx
push eax
mov eax, ecx
cmovne eax, dword [ebp - 0x2a30]
push eax
push dword [ebp - 0x2a38]
movzx eax, byte [ebp - 0x2a21]
push dword [ebp - 0x2a34]
push eax
mov eax, dword [ebp - 0x2a28]
test eax, eax
cmovne ecx, eax
movzx eax, byte [0x49e0ae]
push ecx
push edx
push str.httpWinInet_requestId_d_method_s_useHttps_d_host_s_path_s_contentType_s___progress_d
push eax
call fcn.00410bbc
add esp, 0x24
lea ecx, [ebp - 0x2a20]
call fcn.0042b39b
push 2
lea ecx, [ebp - 0x2a20]
call fcn.0042b9cd
cmp byte [0x4f1d28], bl
jne 0x434efd
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.0040ee00
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x434eda
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x2a20]
call fcn.0042b2aa
push ebx
push 1
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a34], eax
call fcn.00409095
jmp 0x434f09
mov eax, dword [ebp - 0x2a50]
mov dword [ebp - 0x2a34], eax
push ebx
push ebx
push ebx
push ebx
push 0x47dac0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x2a58], ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x434f8e
cmp dword [edi + 0x14], 0x10
jb 0x434f30
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x434f38
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push dword [ebp - 0x2a28]
lea eax, [ebp - 0x544]
push str.InternetOpen_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0040efce
add esp, 0x18
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x434f67
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a68]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a68]
push 0x4939d8
push eax
call fcn.0044b5d4
cmp byte [0x4f1d28], 0
je 0x434ffb
cmp byte [ebp - 0x2a21], 0
mov ecx, 0x1bb
push 0x50
pop eax
cmovne eax, ecx
movzx eax, ax
mov dword [ebp - 0x2a3c], eax
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.0040ee00
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x434fc9
mov eax, dword [eax]
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x2a3c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
push edi
push 1
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a44], eax
call fcn.00409095
mov eax, dword [ebp - 0x2a3c]
jmp 0x435073
cmp dword [ebp - 0x2a34], 0
je 0x43502b
xor edi, edi
lea eax, [ebp - 0x29de]
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x5d4]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0x50
mov dword [ebp - 0x2a44], eax
pop eax
jmp 0x43506d
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.0040ee00
pop ecx
pop ecx
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x435044
mov ecx, dword [ecx]
push 1
xor edi, edi
push edi
push 3
push edi
push edi
push 0x50
pop eax
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
push edi
push 1
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a44], eax
call fcn.00409095
mov eax, dword [ebp - 0x2a4c]
mov ecx, dword [ebp - 0x2a44]
mov dword [ebp - 0x2a5c], ecx
mov byte [ebp - 4], 3
test ecx, ecx
jne 0x435119
cmp byte [0x4f1d28], cl
je 0x435098
movzx eax, ax
jmp 0x4350ad
cmp dword [ebp - 0x2a34], 0
je 0x4350aa
movzx eax, word [ebp - 0x5d4]
jmp 0x4350ad
push 0x50
pop eax
mov ebx, dword [ebp - 0x2a54]
cmp dword [ebx + 0x14], 0x10
jb 0x4350bb
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x4350c3
mov esi, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a28]
lea eax, [ebp - 0x544]
push str.InternetConnect_failed_for__s_http:___s_s__Error_Code:__d__Port_Number:__d
push eax
call fcn.0040efce
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x4350f3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a74]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a74]
push 0x4939d8
jmp 0x434f88
push dword [ebp - 0x2a28]
lea ecx, [ebp - 0x584]
call fcn.00403e21
push dword [ebp - 0x2a54]
lea eax, [ebp - 0x5b4]
mov byte [ebp - 4], 5
push eax
call fcn.0040ee00
mov esi, eax
lea eax, [ebp - 0x584]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x59c]
push eax
call fcn.0040ee00
add esp, 0x10
mov ecx, eax
cmp dword [esi + 0x14], 8
jb 0x435166
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x43516e
mov ecx, dword [ecx]
xor eax, eax
mov edx, 0x20c00010
cmp byte [0x4f1d28], al
sete al
cmp byte [ebp - 0x2a21], 0
push eax
mov eax, 0x20400010
cmovne eax, edx
push eax
push edi
push edi
push edi
push esi
push ecx
push dword [ebp - 0x2a44]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x2a34], esi
push edi
push 1
lea ecx, [ebp - 0x59c]
call fcn.00409095
push edi
push 1
lea ecx, [ebp - 0x5b4]
call fcn.00409095
push edi
push 1
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 9
call fcn.00409040
test esi, esi
jne 0x43524b
mov ebx, dword [ebp - 0x2a54]
cmp dword [ebx + 0x14], 0x10
jb 0x4351e8
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2a2c]
cmp dword [esi + 0x14], 0x10
jb 0x4351f6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push dword [ebp - 0x2a28]
lea eax, [ebp - 0x544]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
push eax
call fcn.0040efce
add esp, 0x18
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x435225
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a80]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a80]
push 0x4939d8
jmp 0x434f88
mov eax, dword [ebp - 0x2a30]
test eax, eax
je 0x4352f7
push eax
lea eax, [ebp - 0x56c]
push str.Content_Type:__s_r_n
push eax
call fcn.0040efce
add esp, 0xc
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0xb
call fcn.00403e21
lea eax, [ebp - 0x56c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x544]
push eax
call fcn.0040ee00
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xd
jb 0x4352a7
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.004158b7
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x544]
call fcn.00409095
push edi
push 1
lea ecx, [ebp - 0x52c]
call fcn.00409040
push edi
push 1
lea ecx, [ebp - 0x56c]
mov byte [ebp - 4], 9
call fcn.00409040
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x52c]
push eax
call fcn.0041574f
mov ecx, dword [ebp - 0x2a40]
push 2
push edi
push edi
call fcn.0041546d
mov ecx, dword [ebp - 0x2a40]
lea eax, [ebp - 0x56c]
push eax
call fcn.0041574f
mov eax, dword [ebp - 0x564]
sub eax, dword [ebp - 0x524]
sub eax, dword [ebp - 0x52c]
add eax, dword [ebp - 0x56c]
mov ecx, dword [ebp - 0x2a40]
push edi
push edi
push edi
mov dword [ebp - 0x2a28], eax
call fcn.0041546d
cmp byte [0x4f1d28], 0
je 0x4353a5
cmp byte [ebp - 0x2a21], 0
je 0x4353a5
lea eax, [ebp - 0x2a2c]
mov dword [ebp - 0x2a2c], 4
push eax
lea eax, [ebp - 0x2a30]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x2a30], 0x1000
lea eax, [ebp - 0x2a30]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x2a28]
test eax, eax
jne 0x4353f4
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x52c]
call fcn.00403e21
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0xe
push eax
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push eax
call fcn.004158b7
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.00409040
jmp 0x435557
push eax
call fcn.0044f1c7
mov ebx, eax
pop ecx
mov dword [ebp - 0x2a3c], ebx
mov ecx, dword [ebp - 0x2a40]
push edi
push dword [ebp - 0x2a28]
mov byte [ebp - 4], 0xf
push ebx
call fcn.00415249
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x554]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2a28]
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 0x43547e
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x2a8c]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a8c]
push 0x4939d8
jmp 0x434f88
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x10
call fcn.00403e21
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x2a2c]
push eax
push dword [ebp - 0x2a28]
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
push eax
call fcn.004158b7
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x10
call fcn.00409040
mov eax, dword [ebp - 0x2a28]
cmp dword [ebp - 0x2a2c], eax
je 0x435504
push str.Failed_to_upload_content
lea ecx, [ebp - 0x2a98]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2a98]
push 0x4939d8
jmp 0x434f88
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x52c]
mov dword [ebp - 4], 0xf
call fcn.00403e21
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.004158b7
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x52c]
call fcn.00409040
push ebx
mov byte [ebp - 4], 9
call fcn.0044f1c2
mov ebx, dword [ebp - 0x2a58]
pop ecx
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x2a2c], 4
call fcn.00403e21
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x14
push eax
push edi
lea eax, [ebp - 0x2a2c]
push eax
lea eax, [ebp - 0x2a38]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push eax
call fcn.004158b7
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.00409040
push edi
lea eax, [ebp - 0x2a2c]
mov dword [ebp - 0x2a4c], edi
push eax
lea eax, [ebp - 0x2a4c]
mov dword [ebp - 0x2a2c], 4
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
lea eax, [ebp - 0x2a2c]
mov dword [ebp - 0x2a2c], 0x100
push eax
lea eax, [ebp - 0x114]
push eax
push 0x36
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x435659
lea eax, [ebp - 0x114]
push eax
call fcn.0040b332
pop ecx
mov ecx, dword [ebp - 0x2a48]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00409577
mov ecx, dword [ebp - 0x2a48]
mov eax, dword [ecx + 0x10]
add eax, 0xfffffffe
push eax
push 1
lea eax, [ebp - 0x544]
push eax
call fcn.0040f360
mov ecx, dword [ebp - 0x2a48]
push eax
call fcn.00411d37
push edi
push 1
lea ecx, [ebp - 0x544]
call fcn.00409040
jmp 0x43566e
mov eax, dword [ebp - 0x2a48]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x43566b
mov eax, dword [eax]
mov byte [eax], 0
mov edi, dword [ebp - 0x2a50]
push 0
push 0
lea eax, [ebp - 0x2a3c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x43569e
cmp byte [0x4f1d27], al
jne 0x43572b
mov dword [ebp - 0x2a3c], eax
jmp 0x4356a4
mov eax, dword [ebp - 0x2a3c]
test eax, eax
je 0x435735
push str.InternetReadFile_failed
lea ecx, [ebp - 0x52c]
call fcn.00403e21
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.004158b7
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.00409040
push 0
push dword [ebp - 0x2a30]
lea eax, [ebp - 0x514]
mov ecx, edi
push eax
call fcn.00416066
push dword [ebp - 0x2a4c]
lea ecx, [ebp + 0x28]
push dword [ebp - 0x2a30]
call fcn.0043c518
jmp 0x435674
push str.InternetQueryDataAvailable_failed
call fcn.004158d6
cmp byte [0x4f1d28], 0
mov edi, dword [ebp - 0x2a38]
je 0x43574f
push edi
call fcn.0043716c
add esp, 4
jmp 0x435758
cmp edi, 0xc8
setne al
test al, al
je 0x435830
push 0
lea eax, [ebp - 0x2a50]
mov dword [ebp - 0x2a50], 0x200
push eax
lea eax, [ebp - 0x514]
push eax
push 0x14
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4357e4
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x544]
call fcn.00403e9d
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.0040ee93
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x17
jb 0x4357be
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2aa4]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2aa4]
push 0x4939d8
jmp 0x434f88
push dword [ebp - 0x2a38]
lea eax, [ebp - 0x544]
push str.statusCode___d
push eax
call fcn.0040efce
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x18
jb 0x43580a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2ab0]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x2ab0]
push 0x4939d8
jmp 0x434f88
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2a44]
call esi
push ebx
call esi
lea ecx, [ebp + 0x28]
mov dword [ebp - 4], 0x19
call fcn.004210e0
mov eax, edi
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.00449031
mov esp, ebp
pop ebp
ret