Function at 0x402150
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 [0x42a004]
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 0x402504
cmp dword [ebp + 0x14], edi
je 0x402504
cmp dword [ebp + 0x18], edi
je 0x402504
mov eax, dword [0x42bf94]
push edi
mov dword [ebp - 0x42c], edi
push edi
cmp eax, edi
je 0x4021d6
push eax
push 3
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x440], edi
jmp 0x4021e7
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 0x4024ed
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 0x4024e6
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 0x4024df
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 0x402268
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 0x402280
sub eax, esi
lea esi, [eax + edx + 0x100]
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x430], eax
test eax, eax
je 0x402290
lea edx, [ebp - 0x28]
push edx
push edi
push str.Host:__s_r_nContent_Type:_multipart_form_data__boundary_s
push eax
call fcn.00413fd6
lea eax, [ebp - 0x28]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022c0
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 0x4022d6
sub eax, esi
lea esi, [edx + eax + 0x418]
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x438], eax
test eax, eax
je 0x4022e6
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.00413fd6
add esp, 0x14
call fcn.00403b80
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402320
sub eax, edx
push esi
mov edi, eax
mov esi, ebx
call fcn.00403bd0
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push edx
call fcn.00403bd0
push str._r_n__
mov edi, 4
call fcn.00403bd0
lea eax, [ebp - 0x28]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402357
sub eax, esi
lea ecx, [ebp - 0x28]
push ecx
mov edi, eax
mov esi, ebx
call fcn.00403bd0
push str.___r_n
mov edi, 4
call fcn.00403bd0
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 0x402390
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 0x4024aa
call fcn.00403b80
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 0x40243d
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x40243d
mov esi, dword [ebp - 0x434]
lea ecx, [ebp - 0x428]
push ecx
mov byte [ebp + edi - 0x428], 0
call fcn.00403bd0
mov eax, dword [ebp - 0x448]
add esp, 4
test eax, eax
je 0x402419
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 0x4023e0
mov eax, dword [ebp - 0x434]
mov edi, dword [eax + 4]
test edi, edi
je 0x402482
lea esi, [edi + 1]
lea ecx, [ecx]
push esi
call fcn.00413e95
add esp, 4
test eax, eax
je 0x402450
xor ecx, ecx
mov dword [ebp - 0x42c], eax
test edi, edi
je 0x40247c
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 0x402471
mov byte [edi + eax], 0
jmp 0x402499
push 8
call fcn.00413e95
add esp, 4
test eax, eax
je 0x402482
mov dword [ebp - 0x42c], eax
mov byte [eax], 0
mov esi, dword [ebp - 0x434]
call fcn.00403bb0
mov edi, dword [ebp - 0x430]
mov esi, ebx
call fcn.00403bb0
mov eax, dword [ebp - 0x438]
push eax
call fcn.00413e5b
push edi
call fcn.00413e5b
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.00412e08
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.00412e08
mov esp, ebp
pop ebp
ret