Function at 0x140073d80
Capabilities:
Delete file
Download and write a file
Get common file path
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:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x520], rbx
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov qword [rsp + 0x50], rdx
mov r15, rcx
mov byte [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0x61], rax
mov byte [rsp + 0x69], al
mov qword [rbp - 0x78], 7
xor r12d, r12d
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov dword [rbp + 0x1b0], r12d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x1b4]
call fcn.1400dd9f0
mov rax, qword [0x140190150]
mov qword [rsp + 0x60], rax
movzx eax, word [0x140190158]
mov word [rsp + 0x68], ax
mov rdx, qword [0x140183698]
mov r14d, dword [rdx + 0x1686]
mov r8d, dword [rdx + 0x1682]
add rdx, 0x168a
lea rcx, [rbp + 0x1b0]
call fcn.1400d5d30
mov dword [rsp + 0x66], r12d
mov word [rsp + 0x60], 0x24
cmp r14d, 0xffffffff
je 0x140073e64
test r14d, r14d
mov dword [rsp + 0x62], 0x55aa0000
jne 0x140073e69
mov dword [rsp + 0x62], r12d
mov rax, qword [rsp + 0x60]
mov qword [0x140191550], rax
movzx eax, word [rsp + 0x68]
mov word [0x140191558], ax
xor r9d, r9d
lea r8d, [r9 + 0xa]
lea rdx, [0x140191550]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140073ea2
jmp 0x14007424a
cmp r14d, 0xffffffff
je 0x14007424a
test r14d, r14d
je 0x14007424a
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140073f1a
movzx edi, cx
mov ecx, edi
call fcn.140002830
test rax, rax
je 0x140074013
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400029f0
jmp 0x140074013
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140073f92
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140074013
cmp dword [rdx + 0x10], eax
jge 0x140073f65
cmp dword [rbx - 0xc], eax
jge 0x140073f58
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140074013
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140073f7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x140074013
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x60]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140073faf
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140073fd1
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400020c0
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140073ff5
lea r8, [rbx + r12*2]
call fcn.1400d4ebc
jmp 0x140073ffe
lea r8, [rbp - 0x60]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x14007423f
mov dword [rbx - 0x10], edi
xor r12d, r12d
mov word [r13 + rbx], r12w
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
xor r9d, r9d
mov rcx, r15
cmp rax, 0xffffffffffffffff
jne 0x1400740b1
mov word [rsp + 0x60], 0x24
mov qword [rsp + 0x62], r9
lea r8d, [rax + 0xb]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_send]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400740ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
jmp 0x14007424a
mov dword [rsp + 0x48], 0
mov r8d, 0x1000
lea rdx, [0x140190150]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140074206
nop word [rax + rax]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
lea rdx, [0x140190150]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
add r12d, ebx
cmp r12d, r14d
jae 0x140074132
test ebx, ebx
je 0x140074132
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [0x140190150]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400740e0
jmp 0x140074206
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov word [rsp + 0x60], 0x24
mov qword [rsp + 0x62], 0x55aa0000
mov rax, qword [rsp + 0x60]
mov qword [0x140191550], rax
movzx eax, word [rsp + 0x68]
mov word [0x140191558], ax
xor r9d, r9d
lea r8d, [rbx + 0xa]
lea rdx, [0x140191550]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400741b2
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400741a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
jmp 0x140074254
cmp dword [rdi - 8], 1
jle 0x1400741ca
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140001fb0
mov rdi, qword [rsp + 0x40]
mov r8, rdi
mov edx, 0x104
mov rcx, qword [rsp + 0x50]
call fcn.1400d7f70
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400741f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
mov eax, 1
jmp 0x140074256
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140074232
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
xor eax, eax
mov qword [rbp - 0x80], rax
mov word [rsp + 0x70], ax
jmp 0x140074256
mov ecx, 0x80070057
call fcn.1400022b0
nop
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
xor eax, eax
mov qword [rbp - 0x78], 7
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret