Function at 0x404990
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 0x404bcd
cmp dword [ebp + 0xc], 0
je 0x404bcd
cmp byte [0x443b40], 0
mov dword [ebp - 0x3c], 0
jne 0x4049dd
call fcn.00401040
mov byte [0x443b40], 1
mov ecx, dword [0x443b78]
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 0x404bb9
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 0x404baf
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 0x404ba8
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 0x404a70
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x2c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a81
sub eax, esi
lea eax, [eax + edx + 0x100]
push eax
call fcn.0041f974
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.00420bc7
lea eax, [ebp - 0x2c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404ab3
sub eax, ecx
add eax, 0x423
push eax
call fcn.0041f974
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.00420bc7
push 1
call fcn.00422173
mov dword [ebp - 0x34], eax
mov eax, ebx
add esp, 0x1c
mov dword [ebp - 0x30], 0
lea esi, [eax + 1]
jmp 0x404b00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b00
sub eax, esi
push ebx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00405320
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
call fcn.00405320
push str._r_n__
mov edi, 4
call fcn.00405320
lea eax, [ebp - 0x2c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b35
sub eax, esi
lea ecx, [ebp - 0x2c]
push ecx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00405320
push str.___r_n
mov edi, 4
call fcn.00405320
mov esi, dword [ebp - 0x38]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b63
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.00420c4b
push esi
call fcn.00420c4b
add esp, 8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x34]
push edx
call fcn.00420f27
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.004204c6
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.004204c6
mov esp, ebp
pop ebp
ret