Function at 0x404990
Capabilities:
Check if file exists
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, 0x4c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov ebx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4049cd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420799
mov esp, ebp
pop ebp
ret
cmp byte [0x443b44], 0
mov dword [ebp - 0x2c], 0
jne 0x4049e9
call fcn.00401040
mov byte [0x443b44], 1
mov edx, dword [0x443b7c]
mov eax, dword [edx + 0x8c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x404be8
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 - 0x44], esi
test esi, esi
je 0x404bde
mov eax, 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 [eax], 0x8468c200
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404bd7
mov ecx, 9
mov esi, str.___________________________uploader
lea edi, [ebp - 0x28]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a75
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x28]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404a86
sub eax, esi
lea ecx, [eax + ecx + 0x100]
push ecx
call fcn.0041fc44
add esp, 4
lea edx, [ebp - 0x28]
push edx
push ebx
push str.Host:__s_r_nContent_Type:_multipart_form_data__boundary_s
push eax
mov dword [ebp - 0x3c], eax
call fcn.00420e97
mov eax, dword [ebp - 0x30]
push eax
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.00402300
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404ad1
sub eax, ecx
add eax, 0x423
push eax
call fcn.0041fc44
add esp, 4
push str.application_octet_stream
push str.upload_file
lea ecx, [ebp - 0x28]
push ecx
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.00420e97
add esp, 0x14
push 1
call fcn.00422443
mov dword [ebp - 0x34], eax
mov eax, ebx
add esp, 4
mov dword [ebp - 0x30], 0
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b20
sub eax, esi
push ebx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.004052a0
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
push edx
call fcn.004052a0
push str._r_n__
mov edi, 4
call fcn.004052a0
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b55
sub eax, edx
lea ecx, [ebp - 0x28]
push ecx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.004052a0
push str.___r_n
mov edi, 4
call fcn.004052a0
mov esi, dword [ebp - 0x3c]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b83
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edx
push ecx
sub eax, edi
mov edi, dword [ebp - 0x48]
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x38]
push edx
mov dword [ebp - 0x2c], eax
call fcn.00420f1b
add esp, 4
push ebx
call fcn.00420f1b
add esp, 4
push esi
call fcn.00420f1b
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x34]
push eax
call fcn.004211f7
mov esi, dword [ebp - 0x44]
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
mov esp, ebp
pop ebp
ret