Function at 0x42f4a7
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 0x46604c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2b70
call fcn.00459df0
mov eax, dword [0x48d190]
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 dword [ebp - 0x29c0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x29c4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29cc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x29b4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x29bc], eax
mov eax, dword [ebp + 0x1c]
mov edi, ecx
mov dword [ebp - 0x29ec], eax
xor ebx, ebx
lea esi, [ebp - 0x29b0]
mov dword [ebp - 4], ebx
call fcn.0040d6df
mov edx, dword [ebp - 0x29c4]
lea ecx, [ebp - 0x29e8]
call fcn.0042b3fc
cmp dword [eax + 0x18], 8
jb 0x42f541
mov esi, dword [eax + 4]
jmp 0x42f544
lea esi, [eax + 4]
lea eax, [ebp - 0x29b0]
call fcn.0040dd31
lea eax, [ebp - 0x29b0]
push eax
mov ecx, esi
call fcn.0040d945
push ebx
push 1
lea esi, [ebp - 0x29e8]
mov dword [ebp - 0x29b8], eax
call fcn.00409047
push ebx
push ebx
push ebx
push ebx
push 0x46fde4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x2a14], esi
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x42f61e
cmp dword [edi + 0x18], 0x10
jb 0x42f59f
mov edi, dword [edi + 4]
jmp 0x42f5a2
add edi, 4
mov eax, dword [ebp - 0x29c4]
cmp dword [eax + 0x18], 0x10
jb 0x42f5b3
mov esi, dword [eax + 4]
jmp 0x42f5b6
lea esi, [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push dword [ebp - 0x29c0]
lea esi, [ebp - 0x2a10]
push str.InternetOpen_failed_for__s_http:___s_s__Error_Code:__d
call fcn.0042b5ba
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [eax + 0x18], 0x10
jb 0x42f5e7
mov eax, dword [eax + 4]
jmp 0x42f5ea
add eax, 4
push eax
lea ecx, [ebp - 0x29e8]
call fcn.00407a73
lea eax, [ebp - 0x29e8]
push eax
lea eax, [ebp - 0x2b30]
push eax
mov byte [ebp - 4], 3
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2b30]
push eax
call fcn.0044ab13
mov dword [ebp - 0x29c8], ebx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x29b8], ebx
je 0x42f65b
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x564]
lea eax, [ebp - 0x296e]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x29c8], esi
jmp 0x42f6a8
mov edx, dword [ebp - 0x29c4]
lea ecx, [ebp - 0x29e8]
call fcn.0042b3fc
cmp dword [eax + 0x18], 8
jb 0x42f677
mov eax, dword [eax + 4]
jmp 0x42f67a
add eax, 4
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
mov dword [ebp - 0x29c8], esi
push 1
lea esi, [ebp - 0x29e8]
call fcn.00409047
cmp dword [ebp - 0x29c8], ebx
jne 0x42f752
cmp dword [ebp - 0x29b8], ebx
je 0x42f6c5
movzx ecx, word [ebp - 0x564]
jmp 0x42f6c8
push 0x50
pop ecx
cmp dword [edi + 0x18], 0x10
jb 0x42f6d3
mov edi, dword [edi + 4]
jmp 0x42f6d6
add edi, 4
mov eax, dword [ebp - 0x29c4]
cmp dword [eax + 0x18], 0x10
jb 0x42f6e7
mov esi, dword [eax + 4]
jmp 0x42f6ea
lea esi, [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push dword [ebp - 0x29c0]
lea esi, [ebp - 0x2a10]
push str.InternetConnect_failed_for__s_http:___s_s__Error_Code:__d__Port_Number:__d
call fcn.0042b5ba
add esp, 0x18
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x42f71c
mov eax, dword [eax + 4]
jmp 0x42f71f
add eax, 4
push eax
lea ecx, [ebp - 0x29e8]
call fcn.00407a73
lea eax, [ebp - 0x29e8]
push eax
lea eax, [ebp - 0x2ae0]
push eax
mov byte [ebp - 4], 6
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2ae0]
jmp 0x42f618
push dword [ebp - 0x29c0]
lea ecx, [ebp - 0x2a30]
call fcn.00407a73
mov edx, edi
lea ecx, [ebp - 0x2a4c]
mov byte [ebp - 4], 7
call fcn.0042b3fc
mov esi, eax
lea edx, [ebp - 0x2a30]
lea ecx, [ebp - 0x2a68]
mov byte [ebp - 4], 8
call fcn.0042b3fc
cmp dword [esi + 0x18], 8
jb 0x42f796
mov esi, dword [esi + 4]
jmp 0x42f799
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x42f7a4
mov eax, dword [eax + 4]
jmp 0x42f7a7
add eax, 4
push 1
push 0x20400010
push ebx
push ebx
push ebx
push esi
push eax
push dword [ebp - 0x29c8]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x29b8], eax
push ebx
push 1
lea esi, [ebp - 0x2a68]
call fcn.00409047
push ebx
push 1
lea esi, [ebp - 0x2a4c]
call fcn.00409047
push ebx
push 1
lea ecx, [ebp - 0x2a30]
mov byte [ebp - 4], 0xb
call fcn.00408daf
cmp dword [ebp - 0x29b8], ebx
jne 0x42f888
cmp dword [edi + 0x18], 0x10
jb 0x42f80a
mov edi, dword [edi + 4]
jmp 0x42f80d
add edi, 4
mov eax, dword [ebp - 0x29c4]
cmp dword [eax + 0x18], 0x10
jb 0x42f81e
mov esi, dword [eax + 4]
jmp 0x42f821
lea esi, [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push dword [ebp - 0x29c0]
lea esi, [ebp - 0x2a10]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
call fcn.0042b5ba
add esp, 0x14
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x42f852
mov eax, dword [eax + 4]
jmp 0x42f855
add eax, 4
push eax
lea ecx, [ebp - 0x29e8]
call fcn.00407a73
lea eax, [ebp - 0x29e8]
push eax
lea eax, [ebp - 0x2a90]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2a90]
jmp 0x42f618
cmp dword [ebp - 0x29b4], ebx
je 0x42f938
push dword [ebp - 0x29b4]
lea esi, [ebp - 0x534]
push str.Content_Type:__s_r_n
call fcn.0042b5ba
pop ecx
pop ecx
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x29e8]
mov byte [ebp - 4], 0xe
call fcn.00407a73
mov edx, esi
lea ecx, [ebp - 0x2a10]
mov byte [ebp - 4], 0xf
call fcn.0042b3fc
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x18], 8
jb 0x42f8e0
mov eax, dword [eax + 4]
jmp 0x42f8e3
add eax, 4
push 0x20000000
push dword [ebp - 0x520]
push eax
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
cmp eax, ebx
jne 0x42f90a
lea eax, [ebp - 0x29e8]
call fcn.00428adf
push ebx
push 1
lea esi, [ebp - 0x2a10]
call fcn.00409047
push ebx
push 1
lea ecx, [ebp - 0x29e8]
call fcn.00408daf
push ebx
push 1
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.00408daf
mov eax, dword [ebp - 0x29cc]
lea esi, [ebp - 0x530]
call fcn.0042a89d
mov edi, dword [eax + 8]
mov esi, dword [ebp - 0x29cc]
add edi, dword [eax]
push 2
call fcn.0042a824
mov eax, dword [ebp - 0x29cc]
lea esi, [ebp - 0x530]
call fcn.0042a89d
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov esi, dword [ebp - 0x29cc]
sub ecx, edi
push ebx
mov dword [ebp - 0x29b4], ecx
call fcn.0042a824
cmp dword [ebp - 0x29b4], ebx
jne 0x42f9d7
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x29e8]
call fcn.00407a73
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0x11
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x42f9c0
lea eax, [ebp - 0x29e8]
call fcn.00428adf
push ebx
push 1
lea ecx, [ebp - 0x29e8]
mov byte [ebp - 4], 0xb
call fcn.00408daf
jmp 0x42fb52
mov esi, dword [ebp - 0x29b4]
push esi
call fcn.00446ea3
pop ecx
mov dword [ebp - 0x29b4], eax
push esi
push eax
push dword [ebp - 0x29cc]
mov byte [ebp - 4], 0x12
call fcn.0042a9d0
push 0xa
pop ecx
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x540]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x540]
push eax
push dword [ebp - 0x29b8]
mov dword [ebp - 0x540], 0x28
mov dword [ebp - 0x524], esi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x42fa69
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x2a10]
call fcn.00407a73
lea eax, [ebp - 0x2a10]
push eax
lea eax, [ebp - 0x2b80]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2b80]
jmp 0x42f618
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x29e8]
mov byte [ebp - 4], 0x14
call fcn.00407a73
lea eax, [ebp - 0x29c0]
push eax
push esi
mov byte [ebp - 4], 0x15
push dword [ebp - 0x29b4]
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, ebx
jne 0x42faaa
lea eax, [ebp - 0x29e8]
call fcn.00428adf
push ebx
push 1
lea ecx, [ebp - 0x29e8]
mov byte [ebp - 4], 0x14
call fcn.00408daf
cmp dword [ebp - 0x29c0], esi
je 0x42fafb
push str.Failed_to_upload_content
lea ecx, [ebp - 0x2a10]
call fcn.00407a73
lea eax, [ebp - 0x2a10]
push eax
lea eax, [ebp - 0x2b58]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2b58]
jmp 0x42f618
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x29e8]
mov dword [ebp - 4], 0x12
call fcn.00407a73
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0x18
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
cmp eax, ebx
jne 0x42fb34
lea eax, [ebp - 0x29e8]
call fcn.00428adf
push ebx
push 1
lea ecx, [ebp - 0x29e8]
call fcn.00408daf
mov byte [ebp - 4], 0xb
push dword [ebp - 0x29b4]
call fcn.00446825
pop ecx
push 4
pop esi
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x29e8]
mov dword [ebp - 0x29b4], esi
call fcn.00407a73
push ebx
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x29f4]
push eax
mov byte [ebp - 4], 0x19
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x20000013
push dword [ebp - 0x29b8]
call edi
cmp eax, ebx
jne 0x42fba0
lea eax, [ebp - 0x29e8]
call fcn.00428adf
push ebx
push 1
lea ecx, [ebp - 0x29e8]
mov byte [ebp - 4], 0xb
call fcn.00408daf
push ebx
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x29f0]
push eax
push 0x20000005
push dword [ebp - 0x29b8]
mov dword [ebp - 0x29f0], ebx
mov dword [ebp - 0x29b4], esi
call edi
push ebx
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x36
push dword [ebp - 0x29b8]
mov dword [ebp - 0x29b4], 0x100
call edi
test eax, eax
je 0x42fc4d
mov esi, dword [ebp - 0x29bc]
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00408cd2
mov eax, dword [esi + 0x14]
add eax, 0xfffffffe
push eax
push 1
push esi
lea esi, [ebp - 0x2a10]
call fcn.0042b94f
push 0xffffffffffffffff
push ebx
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x29bc]
push eax
call fcn.00408c40
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00408daf
jmp 0x42fc58
push dword [ebp - 0x29bc]
call fcn.0043138b
xor esi, esi
push ebx
push ebx
lea eax, [ebp - 0x29b4]
push eax
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x42fc79
mov dword [ebp - 0x29b4], ebx
cmp dword [ebp - 0x29b4], ebx
je 0x42fd10
push str.InternetReadFile_failed
lea ecx, [ebp - 0x29e8]
call fcn.00407a73
lea eax, [ebp - 0x29bc]
push eax
push 0x400
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 0x1b
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
jne 0x42fcc7
lea eax, [ebp - 0x29e8]
call fcn.00428adf
push ebx
push 1
lea ecx, [ebp - 0x29e8]
mov byte [ebp - 4], 0xb
call fcn.00408daf
push dword [ebp - 0x29bc]
lea eax, [ebp - 0x518]
push eax
push dword [ebp - 0x29ec]
call fcn.0042a6f2
push dword [ebp - 0x29f0]
add esi, dword [ebp - 0x29bc]
push dword [ebp - 0x29bc]
lea ecx, [ebp + 0x20]
call fcn.004317f7
jmp 0x42fc5a
cmp dword [ebp - 0x29f4], 0xc8
je 0x42fdec
push ebx
lea eax, [ebp - 0x29ec]
push eax
lea eax, [ebp - 0x518]
push eax
push 0x14
push dword [ebp - 0x29b8]
mov dword [ebp - 0x29ec], 0x200
call edi
test eax, eax
je 0x42fdb3
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x2a10]
call fcn.00407b1d
lea edx, [ebp - 0x2a10]
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0x1c
call fcn.0042b389
mov byte [ebp - 4], 0x1d
cmp dword [eax + 0x18], 0x10
jb 0x42fd7d
mov eax, dword [eax + 4]
jmp 0x42fd80
add eax, 4
push eax
lea ecx, [ebp - 0x29e8]
call fcn.00407a73
lea eax, [ebp - 0x29e8]
push eax
lea eax, [ebp - 0x2b08]
push eax
mov byte [ebp - 4], 0x1e
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2b08]
jmp 0x42f618
push dword [ebp - 0x29f4]
lea esi, [ebp - 0x2a10]
push str.statusCode___d
call fcn.0042b5ba
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2ab8]
push eax
mov byte [ebp - 4], 0x1f
call fcn.0040127e
push 0x47faa0
lea eax, [ebp - 0x2ab8]
jmp 0x42f618
push dword [ebp - 0x29b8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x29c8]
call esi
push dword [ebp - 0x2a14]
call esi
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x20]
call fcn.0041f709
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.004465ad
leave
ret