Function at 0x406720
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 0x44a5bc
mov eax, dword fs:[0]
push eax
mov eax, 0x20028
call fcn.0043d810
mov eax, dword [0x45d274]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x20028], edi
mov dword [ebp - 0x20024], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4067c1
call fcn.00407a40
cmp eax, edi
jl 0x406a4b
lea eax, [ebp - 0x20030]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x20034], ebx
cmp ebx, 0xffffffff
jne 0x4067d1
call fcn.00407a40
test eax, eax
jns 0x4067cb
call fcn.00407a40
mov esi, eax
jmp 0x406a3e
mov dword [ebp - 0x20028], eax
mov edi, eax
jmp 0x406791
mov ebx, dword [ebp - 0x20034]
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [ebp - 0x2001c], eax
mov byte [ebp - 4], 1
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [ebp - 0x20018], eax
push ebx
push str.PCKBoundary
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
lea edi, [ebp - 0x2001c]
mov byte [ebp - 4], 2
call fcn.00407a20
add esp, 0xc
push str.PCKBoundary
push str._r_n___s___r_n_r_n
lea edi, [ebp - 0x20018]
call fcn.00407a20
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [ebp - 0x20020], eax
push str.PCKBoundary
lea ecx, [ebp - 0x20020]
push str.Content_Type:_multipart_form_data__boundary_S
push ecx
mov byte [ebp - 4], 3
call fcn.004032e0
mov edi, dword [ebp - 0x20020]
add esp, 0xc
push 0x20000000
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ecx, dword [ebp - 0x20018]
mov ecx, dword [ecx - 0xc]
mov edx, dword [ebp - 0x2001c]
push 0
add ecx, ebx
add ecx, dword [edx - 0xc]
push ecx
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40693c
call fcn.00407a40
add edi, 0xfffffff0
mov esi, eax
mov byte [ebp - 4], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4068dc
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2001c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20028]
test eax, eax
je 0x406a49
push eax
jmp 0x406a43
mov ebx, dword [ebp - 0x2001c]
mov eax, dword [ebx - 0xc]
push 0
push eax
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4069b0
call fcn.00407a40
add edi, 0xfffffff0
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40697b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea eax, [ebx - 0x10]
jmp 0x40690f
mov edi, dword [ebp - 0x20028]
xor eax, eax
push eax
lea ecx, [ebp - 0x2002c]
push ecx
push 0x20000
lea edx, [ebp - 0x20014]
push edx
push edi
mov dword [ebp - 0x2002c], eax
mov dword [ebp - 0x20030], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4069ee
call fcn.00407a40
mov ebx, eax
test ebx, ebx
js 0x406a67
mov eax, dword [ebp - 0x2002c]
test eax, eax
je 0x406a97
lea ecx, [ebp - 0x20030]
push ecx
push eax
lea edx, [ebp - 0x20014]
push edx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4069b0
call fcn.00407a40
lea ecx, [ebp - 0x20020]
mov esi, eax
call fcn.00403740
lea eax, [ebp - 0x20018]
call fcn.004045a0
lea eax, [ebp - 0x2001c]
call fcn.004045a0
test edi, edi
je 0x406a49
push edi
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 - 0x14]
xor ecx, ebp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20020]
call fcn.00403740
lea eax, [ebp - 0x20018]
call fcn.004045a0
lea eax, [ebp - 0x2001c]
call fcn.004045a0
test edi, edi
je 0x406a93
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x406a4b
mov ecx, dword [ebp - 0x20018]
mov eax, dword [ecx - 0xc]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x406a16
lea ecx, [ebp - 0x20020]
call fcn.00403740
lea eax, [ebp - 0x20018]
call fcn.004045a0
lea eax, [ebp - 0x2001c]
call fcn.004045a0
test edi, edi
je 0x406adf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x406a4b