Function at 0x4046c0
Capabilities:
Connect to http server
Create http request
Send data
Send http request
Send http request with host header

Disassembly:
push ebx
mov ebx, esp
add esp, 0xffffffb8
mov eax, dword [0x441480]
xor eax, ebx
mov dword [ebx - 8], eax
cmp dword [ebx + 8], 0
mov eax, dword [ebx + 0x10]
push ebp
push esi
push edi
mov ebp, ecx
mov esi, edx
mov dword [ebx - 0x38], eax
je 0x4048fd
cmp dword [ebx + 0xc], 0
je 0x4048fd
cmp byte [0x444a85], 0
mov dword [ebx - 0x3c], 0
jne 0x40470d
call fcn.004060f0
mov byte [0x444a85], 1
mov ecx, dword [0x444b3c]
mov eax, dword [ecx + 0x8c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
or eax, eax
mov dword [ebx - 0x48], eax
je 0x4048e9
push 0
push 0
push 3
push 0
push 0
push 0x50
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
or edi, edi
mov dword [ebx - 0x40], edi
je 0x4048df
mov edx, dword [ebx - 0x38]
push 0
push 0x8468c200
push 0
push 0
push str.HTTP_1.0
push esi
push str.POST
push edi
mov dword [edx], 0x8468c200
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
or eax, eax
mov dword [ebx - 0x44], eax
je 0x4048d8
mov ecx, 9
mov esi, str.___________________________uploader
lea edi, [ebx - 0x2c]
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047a0
sub eax, esi
mov edx, eax
lea eax, [ebx - 0x2c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047b1
sub eax, esi
lea eax, [eax + edx + 0x100]
push eax
call fcn.0041ff97
lea ecx, [ebx - 0x2c]
push ecx
push ebp
push str.Host:__s_r_nContent_Type:_multipart_form_data__boundary_s
push eax
mov dword [ebx - 0x38], eax
call fcn.00420bd5
add esp, 0x14
lea eax, [ebx - 0x2c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
or dl, dl
jne 0x4047e3
sub eax, ecx
add eax, 0x423
push eax
call fcn.0041ff97
push str.application_octet_stream
push str.upload_file
lea edx, [ebx - 0x2c]
push edx
mov ebp, eax
push str.___s_r_nContent_Disposition:_form_data__name__s___filename_file.raw__r_nContent_Type:__s_r_n_r_n
push ebp
call fcn.00420bd5
push 1
call fcn.00422819
mov dword [ebx - 0x34], eax
mov eax, ebp
sub esp, 0xffffffe4
mov dword [ebx - 0x30], 0
lea esi, [eax + 1]
jmp 0x404830
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x404830
sub eax, esi
push ebp
mov edi, eax
lea esi, [ebx - 0x34]
call fcn.00405060
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
push eax
call fcn.00405060
push str._r_n__
mov edi, 4
call fcn.00405060
lea eax, [ebx - 0x2c]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404865
sub eax, edi
lea ecx, [ebx - 0x2c]
push ecx
mov edi, eax
lea esi, [ebx - 0x34]
call fcn.00405060
push str.___r_n
mov edi, 4
call fcn.00405060
mov esi, dword [ebx - 0x38]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404893
mov ecx, dword [ebx - 0x34]
sub eax, edi
mov edx, dword [ebx - 0x30]
push edx
push ecx
mov edi, dword [ebx - 0x44]
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebp
mov dword [ebx - 0x3c], eax
call fcn.00420c59
push esi
call fcn.00420c59
sub esp, 0xfffffff8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebx - 0x34]
push edx
call fcn.004214f1
sub esp, 0xfffffffc
mov edi, dword [ebx - 0x40]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx - 0x48]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov ecx, dword [ebx - 8]
xor ecx, ebx
mov eax, dword [ebx - 0x3c]
pop esi
pop ebp
call fcn.00420bc6
mov esp, ebx
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, dword [ebx - 8]
xor ecx, ebx
xor eax, eax
call fcn.00420bc6
mov esp, ebx
pop ebx
ret