Function at 0x427ec2
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 0x6b8
mov eax, 0x45cc1d
call fcn.00442308
mov eax, dword [ebp + 8]
mov dword [ebp - 0x554], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x558], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x560], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x548], esi
mov edi, edx
mov dword [ebp - 0x55c], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x4659a4
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x580], eax
mov edx, esi
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 1
call fcn.0042502b
cmp dword [eax + 0x18], 8
jb 0x427f3e
mov eax, dword [eax + 4]
jmp 0x427f41
add eax, 4
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x580]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x58c], eax
push ebx
push 1
lea esi, [ebp - 0x57c]
mov byte [ebp - 4], 2
call fcn.00408971
push dword [ebp - 0x554]
lea ecx, [ebp - 0x5c4]
call fcn.004073fe
mov edx, edi
lea ecx, [ebp - 0x5fc]
mov byte [ebp - 4], 3
call fcn.0042502b
mov esi, eax
lea edx, [ebp - 0x5c4]
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 4
call fcn.0042502b
cmp dword [esi + 0x18], 8
jb 0x427fb3
mov esi, dword [esi + 4]
jmp 0x427fb6
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x427fc1
mov eax, dword [eax + 4]
jmp 0x427fc4
add eax, 4
push 1
push 0x20400010
push ebx
push ebx
push ebx
push esi
push eax
push dword [ebp - 0x58c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x54c], eax
push ebx
push 1
lea esi, [ebp - 0x5e0]
call fcn.00408971
push ebx
push 1
lea esi, [ebp - 0x5fc]
call fcn.00408971
push ebx
push 1
lea ecx, [ebp - 0x5c4]
mov byte [ebp - 4], 7
call fcn.00408639
cmp dword [ebp - 0x54c], ebx
jne 0x42809f
cmp dword [edi + 0x18], 0x10
jb 0x428027
mov edi, dword [edi + 4]
jmp 0x42802a
add edi, 4
mov eax, dword [ebp - 0x548]
cmp dword [eax + 0x18], 0x10
jb 0x42803b
mov eax, dword [eax + 4]
jmp 0x42803e
add eax, 4
push edi
push eax
push dword [ebp - 0x554]
lea esi, [ebp - 0x5a8]
push str.HttpOpenRequest_failed_for__s_http:___s_s
call fcn.004251e2
add esp, 0x10
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x428068
mov eax, dword [eax + 4]
jmp 0x42806b
add eax, 4
push eax
lea ecx, [ebp - 0x57c]
call fcn.004073fe
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x624]
push eax
mov byte [ebp - 4], 9
call fcn.0040128c
push 0x4732c0
lea eax, [ebp - 0x624]
push eax
call fcn.00442373
cmp dword [ebp - 0x550], ebx
je 0x42814f
push dword [ebp - 0x550]
lea esi, [ebp - 0x538]
push str.Content_Type:__s_r_n
call fcn.004251e2
pop ecx
pop ecx
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0xa
call fcn.004073fe
mov edx, esi
lea ecx, [ebp - 0x5a8]
mov byte [ebp - 4], 0xb
call fcn.0042502b
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x4280f7
mov eax, dword [eax + 4]
jmp 0x4280fa
add eax, 4
push 0x20000000
push dword [ebp - 0x524]
push eax
push dword [ebp - 0x54c]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
cmp eax, ebx
jne 0x428121
lea eax, [ebp - 0x57c]
call fcn.004215cd
push ebx
push 1
lea esi, [ebp - 0x5a8]
call fcn.00408971
push ebx
push 1
lea ecx, [ebp - 0x57c]
call fcn.00408639
push ebx
push 1
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 7
call fcn.00408639
mov eax, dword [ebp - 0x558]
lea esi, [ebp - 0x534]
call fcn.004232aa
mov edi, dword [eax + 8]
mov esi, dword [ebp - 0x558]
add edi, dword [eax]
push 2
call fcn.00419093
mov eax, dword [ebp - 0x558]
lea esi, [ebp - 0x534]
call fcn.004232aa
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov esi, dword [ebp - 0x558]
sub ecx, edi
mov edi, ecx
push ebx
mov dword [ebp - 0x548], edi
call fcn.00419093
cmp edi, ebx
jne 0x4281ec
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x57c]
call fcn.004073fe
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0xd
push dword [ebp - 0x54c]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x4281d5
lea eax, [ebp - 0x57c]
call fcn.004215cd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.00408639
jmp 0x428362
push edi
call fcn.0043fa35
pop ecx
mov dword [ebp - 0x550], eax
push edi
push eax
push esi
mov byte [ebp - 4], 0xe
call fcn.004233c2
push 0xa
pop ecx
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x544]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x548]
push ebx
lea eax, [ebp - 0x544]
push eax
push dword [ebp - 0x54c]
mov dword [ebp - 0x544], 0x28
mov dword [ebp - 0x528], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x428279
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x5a8]
call fcn.004073fe
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x674]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040128c
push 0x4732c0
lea eax, [ebp - 0x674]
jmp 0x428099
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0x10
call fcn.004073fe
lea eax, [ebp - 0x548]
push eax
push edi
mov byte [ebp - 4], 0x11
push dword [ebp - 0x550]
push dword [ebp - 0x54c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, ebx
jne 0x4282ba
lea eax, [ebp - 0x57c]
call fcn.004215cd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0x10
call fcn.00408639
cmp dword [ebp - 0x548], edi
je 0x42830b
push str.Failed_to_upload_content
lea ecx, [ebp - 0x5a8]
call fcn.004073fe
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x6c4]
push eax
mov byte [ebp - 4], 0x12
call fcn.0040128c
push 0x4732c0
lea eax, [ebp - 0x6c4]
jmp 0x428099
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x57c]
mov dword [ebp - 4], 0xe
call fcn.004073fe
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0x14
push dword [ebp - 0x54c]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
cmp eax, ebx
jne 0x428344
lea eax, [ebp - 0x57c]
call fcn.004215cd
push ebx
push 1
lea ecx, [ebp - 0x57c]
call fcn.00408639
mov byte [ebp - 4], 7
push dword [ebp - 0x550]
call fcn.0043e685
pop ecx
push 4
pop esi
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x548], esi
call fcn.004073fe
push ebx
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x584]
push eax
mov byte [ebp - 4], 0x15
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x20000013
push dword [ebp - 0x54c]
call edi
cmp eax, ebx
jne 0x4283b0
lea eax, [ebp - 0x57c]
call fcn.004215cd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.00408639
push ebx
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x588]
push eax
push 0x20000005
push dword [ebp - 0x54c]
mov dword [ebp - 0x588], ebx
mov dword [ebp - 0x548], esi
call edi
push ebx
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x36
push dword [ebp - 0x54c]
mov dword [ebp - 0x548], 0x100
call edi
test eax, eax
je 0x42845d
mov esi, dword [ebp - 0x560]
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.0040855c
mov eax, dword [esi + 0x14]
add eax, 0xfffffffe
push eax
push 1
push esi
lea esi, [ebp - 0x5a8]
call fcn.0040e48d
mov ecx, dword [ebp - 0x560]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 0x16
call fcn.004084ca
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00408639
jmp 0x428468
push dword [ebp - 0x560]
call fcn.004297ed
mov esi, dword [ebp - 0x54c]
push ebx
push ebx
lea eax, [ebp - 0x550]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x428488
mov dword [ebp - 0x550], ebx
cmp dword [ebp - 0x550], ebx
je 0x428514
push str.InternetReadFile_failed
lea ecx, [ebp - 0x57c]
call fcn.004073fe
lea eax, [ebp - 0x554]
push eax
push 0x400
lea eax, [ebp - 0x51c]
push eax
push esi
mov byte [ebp - 4], 0x17
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
jne 0x4284d1
lea eax, [ebp - 0x57c]
call fcn.004215cd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.00408639
push dword [ebp - 0x554]
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0x55c]
call fcn.00423178
push dword [ebp - 0x588]
lea ecx, [ebp + 0x1c]
push dword [ebp - 0x554]
call fcn.00429d43
jmp 0x42846e
cmp dword [ebp - 0x584], 0xc8
je 0x4285e1
push ebx
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x51c]
push eax
push 0x14
push esi
mov dword [ebp - 0x55c], 0x200
call edi
lea esi, [ebp - 0x5a8]
test eax, eax
je 0x4285ae
lea eax, [ebp - 0x51c]
push eax
call fcn.004074dc
mov edx, esi
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0x18
call fcn.00424fb8
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x18], 0x10
jb 0x428578
mov eax, dword [eax + 4]
jmp 0x42857b
add eax, 4
push eax
lea ecx, [ebp - 0x57c]
call fcn.004073fe
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x69c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.0040128c
push 0x4732c0
lea eax, [ebp - 0x69c]
jmp 0x428099
push dword [ebp - 0x584]
push str.statusCode___d
call fcn.004251e2
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x64c]
push eax
mov byte [ebp - 4], 0x1b
call fcn.0040128c
push 0x4732c0
lea eax, [ebp - 0x64c]
jmp 0x428099
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x58c]
call esi
push dword [ebp - 0x580]
call esi
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x1c]
call fcn.00419621
mov eax, 0xc8
call fcn.00442364
ret