Function at 0x140048090
Capabilities:
Check if file exists
Clear file content
Delete file
Get file attributes
Move file
Set file attributes
Set socket configuration
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rbx, rcx
cmp byte [rcx + 0x80d], 0
je 0x1400484fd
mov byte [rcx + 0x80d], 0
mov rax, qword [0x14022a710]
imul ecx, dword [rax + 0x758], 0x3e8
mov rdi, qword [rbx + 0x3b0]
cmp byte [0x14026aca8], 2
jb 0x140048147
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140048147
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x7f0]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rbx + 0x7f0]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rbx + 0x7cc]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140048172
xor r12d, r12d
test rax, rax
je 0x14004820c
mov word [rsp + 0x3c], r12w
call fcn.14015a3b0
mov word [rsp + 0x3a], ax
lea rcx, [rbx + 0x7cf]
call fcn.14015a3b0
mov word [rsp + 0x3e], ax
lea rcx, [rbx + 0x7d2]
call fcn.14015a3b0
mov word [rsp + 0x38], ax
lea rcx, [rbx + 0x7d7]
call fcn.14015a3b0
mov word [rsp + 0x40], ax
lea rcx, [rbx + 0x7da]
call fcn.14015a3b0
mov word [rsp + 0x42], ax
mov dword [rsp + 0x44], r12d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x7f0]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, qword [rbx + 0x7f0]
cmp rcx, rdi
je 0x140048225
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x7f0], rdi
lea rsi, [rbx + 0x688]
mov r15d, 9
cmp byte [rbx + 0x80c], r12b
jne 0x1400482fd
lea edx, [r15 + 0x53]
mov rcx, rsi
call fcn.14015bac8
lea rcx, [rax + 1]
mov r8d, r15d
lea rdx, str._UVNCDIR_
call fcn.14015a010
test eax, eax
jne 0x1400482fd
mov r8, rsi
mov edx, 0x208
lea rcx, [rbp + 0x90]
call fcn.140150800
lea edx, [r15 + 0x53]
lea rcx, [rbp + 0x90]
call fcn.14015bac8
lea r14, [rax + 1]
lea edx, [r15 + 0x24]
mov rcx, r14
call fcn.14015bb8c
lea r8, [rax + 1]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.140150800
lea edx, [r15 + 0x25]
lea rcx, [rbp - 0x80]
call fcn.14015bac8
mov byte [rax], r12b
test r14, r14
je 0x1400482c4
mov byte [r14], r12b
lea r8, [rbp - 0x80]
mov edx, 0x208
lea rcx, [rbp + 0x90]
call fcn.140150860
mov r8, rsi
lea rdx, [rbp + 0x90]
mov rcx, qword [rbx + 0x680]
call fcn.14008f2b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r14b, 1
jmp 0x140048300
xor r14b, r14b
cmp byte [rbx + 0x80c], r12b
je 0x140048335
cmp byte [rbx + 0x80f], r12b
je 0x140048335
mov edx, 0x2c
mov rcx, rsi
call fcn.14015bac8
test rax, rax
je 0x140048327
mov byte [rax], r12b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1400484b5
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], recvfrom
nop dword [rax + rax]
inc rdi
cmp byte [rsi + rdi], r12b
jne 0x140048350
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140017150
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.140021bc0
mov rdx, rax
cmp rax, 0xffffffffffffffff
je 0x1400483cd
mov r8, qword [rsp + 0x48]
cmp r8, rax
jb 0x14004852e
mov rax, r8
sub rax, rdx
cmp rax, 9
cmovb r15, rax
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
add rcx, rdx
sub r8, r15
mov qword [rsp + 0x48], r8
sub r8, rdx
inc r8
lea rdx, [rcx + r15]
call fcn.140149f10
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x68], xmm1
cmp byte [rbx + 0x80c], 0
jne 0x14004847c
test r14b, r14b
jne 0x14004847c
lea rdi, [rsp + 0x58]
cmp qword [rsp + 0x50], 0x10
cmovae rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r14d, eax
cmp eax, 0xffffffff
je 0x140048447
test r14b, 1
je 0x140048447
mov edx, eax
and edx, 0xfffffffe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
setne sil
jmp 0x140048465
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
setne sil
cmp r14d, 0xffffffff
je 0x140048471
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor sil, 1
mov byte [rbx + 0x80c], sil
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400484b5
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400484b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048528
call fcn.140147b54
mov rcx, qword [rbx + 0x7e8]
test rcx, rcx
je 0x1400484cd
call fcn.140147b10
mov qword [rbx + 0x7e8], r12
mov rcx, qword [rbx + 0x7e0]
test rcx, rcx
je 0x1400484e5
call fcn.140147b10
mov qword [rbx + 0x7e0], r12
mov rcx, qword [rbx + 0x830]
test rcx, rcx
je 0x1400484fd
call fcn.140147b10
mov qword [rbx + 0x830], r12
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14014e6c8
nop
call fcn.14004a3a0
nop
int3