Function at 0x4018c0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x430], eax
push edi
lea eax, [ebp - 0x444]
push eax
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x448], edx
mov dword [ebp - 0x444], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x401c74
cmp dword [ebp + 0x14], edi
je 0x401c74
cmp dword [ebp + 0x18], edi
je 0x401c74
mov eax, dword [0x429f4c]
push edi
mov dword [ebp - 0x42c], edi
push edi
cmp eax, edi
je 0x401946
push eax
push 3
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x440], edi
jmp 0x401957
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x440], eax
mov edi, eax
test edi, edi
je 0x401c5d
mov ecx, dword [ebp - 0x430]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x44c], esi
test esi, esi
je 0x401c56
push 0
push 0x8468c200
push 0
push 0
push str.HTTP_1.0
push ebx
push str.POST
push esi
mov dword [ebp - 0x444], 0x8468c200
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x401c4f
mov ecx, 9
mov esi, str.___________________________uploader
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x430]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019d8
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x28]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f0
sub eax, esi
lea esi, [eax + edx + 0x100]
push esi
call fcn.00412765
add esp, 4
mov dword [ebp - 0x430], eax
test eax, eax
je 0x401a00
lea edx, [ebp - 0x28]
push edx
push edi
push str.Host:__s_r_nContent_Type:_multipart_form_data__boundary_s
push eax
call fcn.004128a6
lea eax, [ebp - 0x28]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a30
mov edi, dword [ebp - 0x438]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a46
sub eax, esi
lea esi, [edx + eax + 0x418]
push esi
call fcn.00412765
add esp, 4
mov dword [ebp - 0x438], eax
test eax, eax
je 0x401a56
push str.application_octet_stream
push edi
lea ecx, [ebp - 0x28]
push ecx
mov esi, eax
push str.___s_r_nContent_Disposition:_form_data__name__s___filename_file.raw__r_nContent_Type:__s_r_n_r_n
push esi
call fcn.004128a6
add esp, 0x14
call fcn.00403120
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a90
sub eax, edx
push esi
mov edi, eax
mov esi, ebx
call fcn.00403170
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push edx
call fcn.00403170
push str._r_n__
mov edi, 4
call fcn.00403170
lea eax, [ebp - 0x28]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac7
sub eax, esi
lea ecx, [ebp - 0x28]
push ecx
mov edi, eax
mov esi, ebx
call fcn.00403170
push str.___r_n
mov edi, 4
call fcn.00403170
mov edi, dword [ebp - 0x430]
mov eax, edi
add esp, 8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b00
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x43c]
sub eax, edx
mov edx, dword [ebx + 4]
push edx
push ecx
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401c1a
call fcn.00403120
lea edx, [ebp - 0x42c]
push edx
mov dword [ebp - 0x434], eax
push 0x3ff
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401bad
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x401bad
mov esi, dword [ebp - 0x434]
lea ecx, [ebp - 0x428]
push ecx
mov byte [ebp + edi - 0x428], 0
call fcn.00403170
mov eax, dword [ebp - 0x448]
add esp, 4
test eax, eax
je 0x401b89
mov edx, dword [ebp - 0x42c]
add dword [eax], edx
mov edx, dword [ebp - 0x43c]
lea eax, [ebp - 0x42c]
push eax
push 0x3ff
lea ecx, [ebp - 0x428]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401b50
mov eax, dword [ebp - 0x434]
mov edi, dword [eax + 4]
test edi, edi
je 0x401bf2
lea esi, [edi + 1]
lea ecx, [ecx]
push esi
call fcn.00412765
add esp, 4
test eax, eax
je 0x401bc0
xor ecx, ecx
mov dword [ebp - 0x42c], eax
test edi, edi
je 0x401bec
mov edx, dword [ebp - 0x434]
mov esi, dword [edx]
mov dl, byte [esi + ecx]
mov byte [eax + ecx], dl
inc ecx
cmp ecx, edi
jb 0x401be1
mov byte [edi + eax], 0
jmp 0x401c09
push 8
call fcn.00412765
add esp, 4
test eax, eax
je 0x401bf2
mov dword [ebp - 0x42c], eax
mov byte [eax], 0
mov esi, dword [ebp - 0x434]
call fcn.00403150
mov edi, dword [ebp - 0x430]
mov esi, ebx
call fcn.00403150
mov eax, dword [ebp - 0x438]
push eax
call fcn.0041272b
push edi
call fcn.0041272b
mov ecx, dword [ebp - 0x43c]
add esp, 8
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x440]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x42c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret