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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x38], eax
je 0x4048fd
cmp dword [ebp + 0xc], 0
je 0x4048fd
cmp byte [0x443a59], 0
mov dword [ebp - 0x3c], 0
jne 0x40470d
call fcn.004060e0
mov byte [0x443a59], 1
mov ecx, dword [0x443b0c]
mov eax, dword [ecx + 0x8c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4048e9
push 0
push 0
push 3
push 0
push 0
push 0x50
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4048df
mov edx, dword [ebp - 0x38]
push 0
push 0x8468c200
push 0
push 0
push str.HTTP_1.0
push edi
push str.POST
push esi
mov dword [edx], 0x8468c200
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4048d8
mov ecx, 9
mov esi, str.___________________________uploader
lea edi, [ebp - 0x2c]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047a0
sub eax, edx
mov edx, eax
lea eax, [ebp - 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.0041fbf7
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push str.Host:__s_r_nContent_Type:_multipart_form_data__boundary_s
push eax
mov dword [ebp - 0x38], eax
call fcn.00420835
lea eax, [ebp - 0x2c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4047e3
sub eax, ecx
add eax, 0x423
push eax
call fcn.0041fbf7
push str.application_octet_stream
push str.upload_file
lea edx, [ebp - 0x2c]
push edx
mov ebx, eax
push str.___s_r_nContent_Disposition:_form_data__name__s___filename_file.raw__r_nContent_Type:__s_r_n_r_n
push ebx
call fcn.00420835
push 1
call fcn.00422399
mov dword [ebp - 0x34], eax
mov eax, ebx
add esp, 0x1c
mov dword [ebp - 0x30], 0
lea esi, [eax + 1]
jmp 0x404830
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404830
sub eax, esi
push ebx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00405050
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
call fcn.00405050
push str._r_n__
mov edi, 4
call fcn.00405050
lea eax, [ebp - 0x2c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404865
sub eax, esi
lea ecx, [ebp - 0x2c]
push ecx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00405050
push str.___r_n
mov edi, 4
call fcn.00405050
mov esi, dword [ebp - 0x38]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404893
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edx
push ecx
sub eax, edi
mov edi, dword [ebp - 0x44]
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebx
mov dword [ebp - 0x3c], eax
call fcn.004208b9
push esi
call fcn.004208b9
add esp, 8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x34]
push edx
call fcn.00421071
mov esi, dword [ebp - 0x40]
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00420826
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00420826
mov esp, ebp
pop ebp
ret