Function at 0x140059390
Capabilities:
Download and write a file
Get file size
Read and send data from client to server
Read file on windows
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x47]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov r15, r9
mov r10, r8
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rbp - 0x31], r12
lea rax, [rbp - 0x31]
mov qword [r11 - 0x80], rax
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov ebx, dword [rbp + 0x77]
mov r8d, ebx
mov rdx, r10
call fcn.1400587b0
test eax, eax
je 0x140059670
lea rax, vtable.micro::files::QFile.0
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], r12
lea eax, [rbx - 1]
cmp eax, 1
jbe 0x1400594aa
cmp ebx, 4
je 0x1400594aa
cmp ebx, 6
jne 0x14005944b
mov r8d, 0x3001
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.1400e82c4
mov qword [rbp - 0x29], r12
lea r9, [rbp - 0x29]
xor edx, edx
lea r8d, [rbx - 4]
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x28]
jmp 0x1400594bc
cmp ebx, 5
jne 0x140059473
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.1400e82c4
lea rdx, [rbp - 0x29]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov r15, qword [rbp - 0x29]
jmp 0x1400594bc
cmp ebx, 7
jne 0x1400594bc
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.1400e82c4
mov rax, qword [r14 + 8]
mov qword [rbp - 0x29], r12
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rdx, qword [rax + 0x468]
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x28]
jmp 0x14005945f
mov r8d, 0x1001
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.1400e82c4
mov rsi, r12
mov edx, 0x4000
lea rcx, [rbp - 1]
call fcn.140024ca0
nop
lea eax, [rbx - 5]
mov rbx, qword [rbp - 0x31]
test eax, 0xfffffffd
je 0x140059598
cmp dword [rbx + 0x20], 1
jne 0x140059635
cmp qword [rbx + 0x30], r12
je 0x140059503
mov r8, rbx
mov edx, 0x4000
mov rcx, qword [rbp + 0x1f]
call fcn.140057e94
jmp 0x14005951a
xor r9d, r9d
mov r8d, 0x4000
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp eax, 0xffffffff
je 0x140059635
test eax, eax
jle 0x140059635
mov dword [rbp + 0x7f], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7f]
mov r8d, eax
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [rbp + 0x7f], r12d
jbe 0x140059635
movsxd rdi, edi
add rsi, rdi
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x1400594e0
mov rax, qword [rcx]
mov r8, r15
mov rdx, rsi
call qword [rax + 0x28]
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x40]
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
test al, al
je 0x1400594e0
jmp 0x140059635
mov dword [rbp + 0x7f], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7f]
mov r8d, 0x4000
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, dword [rbp + 0x7f]
test rdi, rdi
je 0x140059635
cmp dword [rbx + 0x20], 2
je 0x1400595cc
mov eax, r12d
jmp 0x1400595f7
mov r8d, edi
mov rdx, qword [rbp + 0x1f]
cmp qword [rbx + 0x30], r12
je 0x1400595e3
mov r9, rbx
call fcn.140057fdc
jmp 0x1400595f0
xor r9d, r9d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
cmove eax, r12d
cdqe
cmp rax, rdi
jb 0x140059635
add rsi, rdi
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140059598
mov rax, qword [rcx]
mov r8, r15
mov rdx, rsi
call qword [rax + 0x28]
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x40]
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
test al, al
je 0x140059598
mov rdx, rbx
call fcn.14005912c
mov ebx, eax
lea rax, vtable.micro::utils::QBaseArray.0
mov qword [rbp - 1], rax
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14005965a
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rax, vtable.micro::files::QFile.0
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
call fcn.1400e8500
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret