Function at 0x4271c5
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, 0x45bf9a
call fcn.004416e8
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 0x4649ac
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.00424316
cmp dword [eax + 0x18], 8
jb 0x427241
mov eax, dword [eax + 4]
jmp 0x427244
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.00408944
push dword [ebp - 0x554]
lea ecx, [ebp - 0x5c4]
call fcn.004073f1
mov edx, edi
lea ecx, [ebp - 0x5fc]
mov byte [ebp - 4], 3
call fcn.00424316
mov esi, eax
lea edx, [ebp - 0x5c4]
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 4
call fcn.00424316
cmp dword [esi + 0x18], 8
jb 0x4272b6
mov esi, dword [esi + 4]
jmp 0x4272b9
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x4272c4
mov eax, dword [eax + 4]
jmp 0x4272c7
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.00408944
push ebx
push 1
lea esi, [ebp - 0x5fc]
call fcn.00408944
push ebx
push 1
lea ecx, [ebp - 0x5c4]
mov byte [ebp - 4], 7
call fcn.0040860c
cmp dword [ebp - 0x54c], ebx
jne 0x4273a2
cmp dword [edi + 0x18], 0x10
jb 0x42732a
mov edi, dword [edi + 4]
jmp 0x42732d
add edi, 4
mov eax, dword [ebp - 0x548]
cmp dword [eax + 0x18], 0x10
jb 0x42733e
mov eax, dword [eax + 4]
jmp 0x427341
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.004244cd
add esp, 0x10
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x42736b
mov eax, dword [eax + 4]
jmp 0x42736e
add eax, 4
push eax
lea ecx, [ebp - 0x57c]
call fcn.004073f1
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x624]
push eax
mov byte [ebp - 4], 9
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x624]
push eax
call fcn.00441753
cmp dword [ebp - 0x550], ebx
je 0x427452
push dword [ebp - 0x550]
lea esi, [ebp - 0x538]
push str.Content_Type:__s_r_n
call fcn.004244cd
pop ecx
pop ecx
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0xa
call fcn.004073f1
mov edx, esi
lea ecx, [ebp - 0x5a8]
mov byte [ebp - 4], 0xb
call fcn.00424316
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x4273fa
mov eax, dword [eax + 4]
jmp 0x4273fd
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 0x427424
lea eax, [ebp - 0x57c]
call fcn.004208bd
push ebx
push 1
lea esi, [ebp - 0x5a8]
call fcn.00408944
push ebx
push 1
lea ecx, [ebp - 0x57c]
call fcn.0040860c
push ebx
push 1
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 7
call fcn.0040860c
mov eax, dword [ebp - 0x558]
lea esi, [ebp - 0x534]
call fcn.0042259a
mov edi, dword [eax + 8]
mov esi, dword [ebp - 0x558]
add edi, dword [eax]
push 2
call fcn.004183a8
mov eax, dword [ebp - 0x558]
lea esi, [ebp - 0x534]
call fcn.0042259a
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.004183a8
cmp edi, ebx
jne 0x4274ef
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x57c]
call fcn.004073f1
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 0x4274d8
lea eax, [ebp - 0x57c]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.0040860c
jmp 0x427665
push edi
call fcn.0043ee15
pop ecx
mov dword [ebp - 0x550], eax
push edi
push eax
push esi
mov byte [ebp - 4], 0xe
call fcn.004226b2
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 0x42757c
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x5a8]
call fcn.004073f1
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x674]
push eax
mov byte [ebp - 4], 0xf
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x674]
jmp 0x42739c
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0x10
call fcn.004073f1
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 0x4275bd
lea eax, [ebp - 0x57c]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0x10
call fcn.0040860c
cmp dword [ebp - 0x548], edi
je 0x42760e
push str.Failed_to_upload_content
lea ecx, [ebp - 0x5a8]
call fcn.004073f1
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x6c4]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x6c4]
jmp 0x42739c
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x57c]
mov dword [ebp - 4], 0xe
call fcn.004073f1
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 0x427647
lea eax, [ebp - 0x57c]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x57c]
call fcn.0040860c
mov byte [ebp - 4], 7
push dword [ebp - 0x550]
call fcn.0043da65
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.004073f1
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 0x4276b3
lea eax, [ebp - 0x57c]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.0040860c
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 0x427760
mov esi, dword [ebp - 0x560]
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.0040852f
mov eax, dword [esi + 0x14]
add eax, 0xfffffffe
push eax
push 1
push esi
lea esi, [ebp - 0x5a8]
call fcn.0040e43d
mov ecx, dword [ebp - 0x560]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 0x16
call fcn.0040849d
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040860c
jmp 0x42776b
push dword [ebp - 0x560]
call fcn.00428af0
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 0x42778b
mov dword [ebp - 0x550], ebx
cmp dword [ebp - 0x550], ebx
je 0x427817
push str.InternetReadFile_failed
lea ecx, [ebp - 0x57c]
call fcn.004073f1
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 0x4277d4
lea eax, [ebp - 0x57c]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.0040860c
push dword [ebp - 0x554]
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0x55c]
call fcn.00422468
push dword [ebp - 0x588]
lea ecx, [ebp + 0x1c]
push dword [ebp - 0x554]
call fcn.00429132
jmp 0x427771
cmp dword [ebp - 0x584], 0xc8
je 0x4278e4
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 0x4278b1
lea eax, [ebp - 0x51c]
push eax
call fcn.004074af
mov edx, esi
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0x18
call fcn.004242a3
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x18], 0x10
jb 0x42787b
mov eax, dword [eax + 4]
jmp 0x42787e
add eax, 4
push eax
lea ecx, [ebp - 0x57c]
call fcn.004073f1
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x69c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x69c]
jmp 0x42739c
push dword [ebp - 0x584]
push str.statusCode___d
call fcn.004244cd
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x64c]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x64c]
jmp 0x42739c
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.004188eb
mov eax, 0xc8
call fcn.00441744
ret