Function at 0x42d5cd
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, 0x462edf
call fcn.00447f48
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 0x46c014
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.0042a528
cmp dword [eax + 0x18], 8
jb 0x42d649
mov eax, dword [eax + 4]
jmp 0x42d64c
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.00409a53
push dword [ebp - 0x554]
lea ecx, [ebp - 0x5c4]
call fcn.004084cc
mov edx, edi
lea ecx, [ebp - 0x5fc]
mov byte [ebp - 4], 3
call fcn.0042a528
mov esi, eax
lea edx, [ebp - 0x5c4]
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 4
call fcn.0042a528
cmp dword [esi + 0x18], 8
jb 0x42d6be
mov esi, dword [esi + 4]
jmp 0x42d6c1
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x42d6cc
mov eax, dword [eax + 4]
jmp 0x42d6cf
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.00409a53
push ebx
push 1
lea esi, [ebp - 0x5fc]
call fcn.00409a53
push ebx
push 1
lea ecx, [ebp - 0x5c4]
mov byte [ebp - 4], 7
call fcn.004097af
cmp dword [ebp - 0x54c], ebx
jne 0x42d7aa
cmp dword [edi + 0x18], 0x10
jb 0x42d732
mov edi, dword [edi + 4]
jmp 0x42d735
add edi, 4
mov eax, dword [ebp - 0x548]
cmp dword [eax + 0x18], 0x10
jb 0x42d746
mov eax, dword [eax + 4]
jmp 0x42d749
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.0042a6df
add esp, 0x10
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x42d773
mov eax, dword [eax + 4]
jmp 0x42d776
add eax, 4
push eax
lea ecx, [ebp - 0x57c]
call fcn.004084cc
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x624]
push eax
mov byte [ebp - 4], 9
call fcn.00401281
push 0x47b878
lea eax, [ebp - 0x624]
push eax
call fcn.00447fb3
cmp dword [ebp - 0x550], ebx
je 0x42d85a
push dword [ebp - 0x550]
lea esi, [ebp - 0x538]
push str.Content_Type:__s_r_n
call fcn.0042a6df
pop ecx
pop ecx
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0xa
call fcn.004084cc
mov edx, esi
lea ecx, [ebp - 0x5a8]
mov byte [ebp - 4], 0xb
call fcn.0042a528
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x42d802
mov eax, dword [eax + 4]
jmp 0x42d805
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 0x42d82c
lea eax, [ebp - 0x57c]
call fcn.004270a1
push ebx
push 1
lea esi, [ebp - 0x5a8]
call fcn.00409a53
push ebx
push 1
lea ecx, [ebp - 0x57c]
call fcn.004097af
push ebx
push 1
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 7
call fcn.004097af
mov eax, dword [ebp - 0x558]
lea esi, [ebp - 0x534]
call fcn.00428efa
mov edi, dword [eax + 8]
mov esi, dword [ebp - 0x558]
add edi, dword [eax]
push 2
call fcn.0041c20e
mov eax, dword [ebp - 0x558]
lea esi, [ebp - 0x534]
call fcn.00428efa
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.0041c20e
cmp edi, ebx
jne 0x42d8f7
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x57c]
call fcn.004084cc
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 0x42d8e0
lea eax, [ebp - 0x57c]
call fcn.004270a1
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.004097af
jmp 0x42da6d
push edi
call fcn.00444663
pop ecx
mov dword [ebp - 0x550], eax
push edi
push eax
push esi
mov byte [ebp - 4], 0xe
call fcn.00428fb4
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 0x42d984
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x5a8]
call fcn.004084cc
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x674]
push eax
mov byte [ebp - 4], 0xf
call fcn.00401281
push 0x47b878
lea eax, [ebp - 0x674]
jmp 0x42d7a4
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0x10
call fcn.004084cc
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 0x42d9c5
lea eax, [ebp - 0x57c]
call fcn.004270a1
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0x10
call fcn.004097af
cmp dword [ebp - 0x548], edi
je 0x42da16
push str.Failed_to_upload_content
lea ecx, [ebp - 0x5a8]
call fcn.004084cc
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x6c4]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401281
push 0x47b878
lea eax, [ebp - 0x6c4]
jmp 0x42d7a4
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x57c]
mov dword [ebp - 4], 0xe
call fcn.004084cc
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 0x42da4f
lea eax, [ebp - 0x57c]
call fcn.004270a1
push ebx
push 1
lea ecx, [ebp - 0x57c]
call fcn.004097af
mov byte [ebp - 4], 7
push dword [ebp - 0x550]
call fcn.00443fe5
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.004084cc
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 0x42dabb
lea eax, [ebp - 0x57c]
call fcn.004270a1
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.004097af
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 0x42db68
mov esi, dword [ebp - 0x560]
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.004096d2
mov eax, dword [esi + 0x14]
add eax, 0xfffffffe
push eax
push 1
push esi
lea esi, [ebp - 0x5a8]
call fcn.0040ffe9
mov ecx, dword [ebp - 0x560]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 0x16
call fcn.00409640
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004097af
jmp 0x42db73
push dword [ebp - 0x560]
call fcn.0042ef96
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 0x42db93
mov dword [ebp - 0x550], ebx
cmp dword [ebp - 0x550], ebx
je 0x42dc1f
push str.InternetReadFile_failed
lea ecx, [ebp - 0x57c]
call fcn.004084cc
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 0x42dbdc
lea eax, [ebp - 0x57c]
call fcn.004270a1
push ebx
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.004097af
push dword [ebp - 0x554]
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0x55c]
call fcn.00428dc8
push dword [ebp - 0x588]
lea ecx, [ebp + 0x1c]
push dword [ebp - 0x554]
call fcn.0042f32f
jmp 0x42db79
cmp dword [ebp - 0x584], 0xc8
je 0x42dcec
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 0x42dcb9
lea eax, [ebp - 0x51c]
push eax
call fcn.0040858a
mov edx, esi
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0x18
call fcn.0042a4b5
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x18], 0x10
jb 0x42dc83
mov eax, dword [eax + 4]
jmp 0x42dc86
add eax, 4
push eax
lea ecx, [ebp - 0x57c]
call fcn.004084cc
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x69c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00401281
push 0x47b878
lea eax, [ebp - 0x69c]
jmp 0x42d7a4
push dword [ebp - 0x584]
push str.statusCode___d
call fcn.0042a6df
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x64c]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00401281
push 0x47b878
lea eax, [ebp - 0x64c]
jmp 0x42d7a4
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.0041ccfe
mov eax, 0xc8
call fcn.00447fa4
ret