Function at 0x4087f0
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d41c
mov eax, dword fs:[0]
push eax
mov eax, 0x20028
call fcn.00459f60
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x20018], edi
xor ebx, ebx
mov dword [ebp - 0x20034], ebx
mov dword [ebp - 0x20030], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x408867
call fcn.00409a70
test eax, eax
jns 0x40886f
mov esi, eax
jmp 0x408adb
mov ebx, eax
mov dword [ebp - 0x20034], ebx
lea eax, [ebp - 0x20028]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x2002c], esi
cmp esi, 0xffffffff
jne 0x4088a5
call fcn.00409a70
test eax, eax
jns 0x40889f
call fcn.00409a70
mov esi, eax
jmp 0x408adb
mov esi, dword [ebp - 0x2002c]
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4088c1
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2001c], eax
mov byte [ebp - 4], 1
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4088f1
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20020], eax
push esi
push str.PCKBoundary
lea eax, [ebp - 0x2001c]
mov byte [ebp - 4], 2
push str.___s_r_nContent_Disposition:_form_data__name_logs___filename_logs.zip__r_nContent_Type:_application_octet_stream_r_nContent_Transfer_Encoding:_binary_r_nContent_Length:__lu_r_n_r_n
push eax
call fcn.00409a50
push str.PCKBoundary
lea eax, [ebp - 0x20020]
push str._r_n___s___r_n_r_n
push eax
call fcn.00409a50
add esp, 0x1c
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x408951
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20014], eax
push str.PCKBoundary
lea eax, [ebp - 0x20014]
mov byte [ebp - 4], 3
push str.Content_Type:_multipart_form_data__boundary_S
push eax
call fcn.004040a0
mov ebx, dword [ebp - 0x20014]
add esp, 0xc
push 0x20000000
push 0xffffffffffffffff
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov esi, dword [ebp - 0x20020]
mov edi, dword [ebp - 0x2001c]
push 0
mov eax, dword [esi - 0xc]
add eax, dword [ebp - 0x2002c]
add eax, dword [edi - 0xc]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x20018]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x408a43
push 0
push dword [edi - 0xc]
push edi
jmp 0x408a33
push 0
lea eax, [ebp - 0x20024]
mov dword [ebp - 0x20024], 0
push eax
push 0x20000
lea eax, [ebp - 0x20010]
mov dword [ebp - 0x20028], 0
push eax
push dword [ebp - 0x20034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408a1a
call fcn.00409a70
mov ecx, eax
mov dword [ebp - 0x20014], ecx
test ecx, ecx
js 0x408a7d
mov eax, dword [ebp - 0x20024]
test eax, eax
je 0x408a50
lea ecx, [ebp - 0x20028]
push ecx
push eax
lea eax, [ebp - 0x20010]
push eax
push dword [ebp - 0x20018]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4089d0
call fcn.00409a70
mov dword [ebp - 0x20014], eax
jmp 0x408a7d
push 0
push dword [esi - 0xc]
push esi
push dword [ebp - 0x20018]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x408a73
call fcn.00409a70
mov dword [ebp - 0x20014], eax
jmp 0x408a7d
mov dword [ebp - 0x20014], 0
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408a9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408ab6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x408acf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x20034]
mov esi, dword [ebp - 0x20014]
test ebx, ebx
je 0x408ae6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret