Function at 0x14004df10
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Move file
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x88
mov rdi, rcx
add rcx, 0xfffffffffffffee0
mov eax, dword [rdi - 0xb0]
dec eax
cmp eax, 0x1d
ja case.default.0x14004df67
mov qword [r11 + 0x20], rbx
lea r8, sym.imp.advapi32.dll_RegEnumKeyW
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
cdqe
mov qword [r11 - 0x38], r15
mov edx, dword [r8 + rax*4 + 0x4e738]
add rdx, r8
jmp rdx
call fcn.14004c5e0
jmp 0x14004e3f4
mov ecx, dword [rdi + 0x30]
cmp ecx, 0xffffffff
je 0x14004df94
xor esi, esi
cmp ecx, 2
jle 0x14004df89
call fcn.14019d818
jmp 0x14004df8b
mov eax, esi
cmp eax, 0xffffffff
jne 0x14004e3ed
mov rsi, 0xfffffffffffff00d
mov dword [rdi + 0x2c], 6
jmp 0x14004e3ed
mov ecx, dword [rdi + 0x30]
mov r14, qword [rdi + 0x60]
cmp ecx, 0xffffffff
jne 0x14004dfd0
mov rsi, 0xfffffffffffff00d
mov dword [rdi + 0x2c], 6
lea r8, [rdi - 0x98]
mov qword [r8], rsi
jmp 0x14004e3f4
xor esi, esi
mov dword [rbp + 0x67], esi
call fcn.14019c888
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14004e004
lea ecx, [rsi + 6]
mov dword [rdi + 0x2c], 6
call fcn.140053410
movsxd rsi, eax
lea r8, [rdi - 0x98]
mov qword [r8], rsi
jmp 0x14004e3f4
cmp r14, 0xffffffffffffffff
je 0x14004e041
xor eax, eax
lea r8, [rbp + 0x77]
mov rdx, rsi
mov qword [rbp + 7], rax
mov rcx, r12
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
lea r13, [rbp + 7]
lea r9d, [rax + 1]
mov qword [rbp + 0x1f], rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x14004e044
mov dword [rbp + 0x67], 1
jmp 0x14004e044
mov r13, rsi
mov ebx, esi
cmp r14, 0xffffffffffffffff
je 0x14004e05b
mov eax, ebx
add rax, r14
mov dword [rbp + 0x17], eax
shr rax, 0x20
mov dword [rbp + 0x1b], eax
mov rdx, qword [rdi + 0x58]
lea r9, [rbp + 0x6f]
mov eax, esi
mov rcx, r12
add rax, rax
mov qword [rsp + 0x20], r13
mov r8d, dword [rdx + rax*8]
mov rdx, qword [rdx + rax*8 + 8]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
add ebx, dword [rbp + 0x6f]
inc esi
mov r15d, eax
test eax, eax
je 0x14004e090
cmp esi, dword [rdi + 0x50]
jb 0x14004e046
cmp dword [rbp + 0x67], 0
je 0x14004e0a9
mov rdx, qword [rbp + 0x77]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test r15d, r15d
jne 0x14004e0e3
test ebx, ebx
jne 0x14004e0e3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r8, [rdi - 0x98]
cmp eax, 0x26
jne 0x14004e0ce
mov esi, ebx
mov qword [r8], rsi
jmp 0x14004e3f4
mov ecx, eax
mov dword [rdi + 0x2c], eax
call fcn.140053410
movsxd rsi, eax
mov qword [r8], rsi
jmp 0x14004e3f4
mov esi, ebx
lea r8, [rdi - 0x98]
mov qword [r8], rsi
jmp 0x14004e3f4
mov ecx, dword [rdi + 0x30]
mov r14, qword [rdi + 0x60]
cmp ecx, 0xffffffff
jne 0x14004e113
mov dword [rdi + 0x2c], 6
mov rsi, 0xfffffffffffff00d
jmp 0x14004e3ed
xor esi, esi
mov dword [rbp + 0x67], esi
call fcn.14019c888
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14004e13f
mov ecx, 6
mov dword [rdi + 0x2c], 6
call fcn.140053410
movsxd rsi, eax
jmp 0x14004e3ed
cmp r14, 0xffffffffffffffff
je 0x14004e17c
xor eax, eax
lea r8, [rbp + 0x77]
mov rdx, rsi
mov qword [rbp + 7], rax
mov rcx, r12
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
lea r13, [rbp + 7]
lea r9d, [rax + 1]
mov qword [rbp + 0x1f], rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x14004e17f
mov dword [rbp + 0x67], 1
jmp 0x14004e17f
mov r13, rsi
mov ebx, esi
cmp r14, 0xffffffffffffffff
je 0x14004e196
mov eax, ebx
add rax, r14
mov dword [rbp + 0x17], eax
shr rax, 0x20
mov dword [rbp + 0x1b], eax
mov rdx, qword [rdi + 0x58]
lea r9, [rbp + 0x6f]
mov eax, esi
mov rcx, r12
add rax, rax
mov qword [rsp + 0x20], r13
mov r8d, dword [rdx + rax*8]
mov rdx, qword [rdx + rax*8 + 8]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
add ebx, dword [rbp + 0x6f]
inc esi
mov r15d, eax
test eax, eax
je 0x14004e1cb
cmp esi, dword [rdi + 0x50]
jb 0x14004e181
cmp dword [rbp + 0x67], 0
je 0x14004e1e4
mov rdx, qword [rbp + 0x77]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test r15d, r15d
jne 0x14004e1ed
test ebx, ebx
je 0x14004e22b
mov esi, ebx
jmp 0x14004e3ed
mov r8d, dword [rdi + 0x48]
test r8b, 4
je 0x14004e211
mov dword [rdi + 0x2c], 0x32
mov rsi, 0xfffffffffffff02a
jmp 0x14004e3ed
mov rdx, qword [rdi + 0x40]
and r8d, 1
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne case.0x14004df67.26
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov dword [rdi + 0x2c], eax
call fcn.140053410
movsxd rsi, eax
jmp 0x14004e3ed
mov ebx, dword [rdi + 0x68]
mov r14d, 0x10000
mov eax, dword [rdi + 0x4c]
cmp rbx, r14
mov r13d, dword [rdi + 0x30]
mov r12, qword [rdi + 0x60]
cmovb r14d, ebx
mov ecx, r14d
mov dword [rbp + 0x67], eax
xor esi, esi
call qword [fcn.140192c64]
mov r15, rax
test rax, rax
je 0x14004e725
cmp r12, 0xffffffffffffffff
je 0x14004e292
xor r8d, r8d
mov rdx, r12
mov ecx, r13d
call fcn.14019cb90
cmp rax, 0xffffffffffffffff
je 0x14004e2e0
test rbx, rbx
je 0x14004e2e7
mov r12d, dword [rbp + 0x67]
nop dword [rax + rax]
mov r8d, r14d
cmp rbx, r14
mov rdx, r15
mov ecx, r13d
cmovb r8d, ebx
call fcn.14019d1d4
test eax, eax
je 0x14004e2e7
cmp eax, 0xffffffff
je 0x14004e2e0
movsxd rcx, eax
mov r8d, eax
sub rbx, rcx
mov rdx, r15
mov ecx, r12d
call fcn.14019df20
cmp eax, 0xffffffff
je 0x14004e2e0
add esi, eax
test rbx, rbx
jne 0x14004e2a0
jmp 0x14004e2e7
mov rsi, 0xffffffffffffffff
call fcn.140193ba0
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.140192488]
call fcn.140193ba0
mov dword [rax], ebx
movsxd rax, esi
mov qword [rdi - 0x98], rax
cmp rax, 0xffffffffffffffff
jmp 0x14004e602
mov rdx, qword [rdi + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004e320
cmp rax, 1
jbe 0x14004e353
cmp word [rdx + rax*2 - 4], 0x3a
je 0x14004e353
movzx r8d, word [rdx + rax*2 - 2]
cmp r8w, 0x5c
je 0x14004e34c
cmp r8w, 0x2f
jne 0x14004e353
xor esi, esi
mov word [rdx + rax*2 - 2], si
xor edx, edx
call fcn.14004d4a0
jmp 0x14004e3f4
mov rdx, qword [rdi + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004e370
cmp rax, 1
jbe 0x14004e3a3
cmp word [rdx + rax*2 - 4], 0x3a
je 0x14004e3a3
movzx r8d, word [rdx + rax*2 - 2]
cmp r8w, 0x5c
je 0x14004e39c
cmp r8w, 0x2f
jne 0x14004e3a3
xor esi, esi
mov word [rdx + rax*2 - 2], si
mov edx, 1
call fcn.14004d4a0
jmp 0x14004e3f4
mov ecx, dword [rdi + 0x30]
cmp ecx, 0xffffffff
je 0x14004e100
call fcn.14019c888
cmp rax, 0xffffffffffffffff
je 0x14004e126
lea rbx, [rdi - 0x80]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.14004d220
test eax, eax
jne 0x14004e22b
mov qword [rdi - 0x90], rbx
xor esi, esi
mov qword [rdi - 0x98], rsi
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x60]
add rsp, 0x88
pop rdi
pop rbp
ret
mov ecx, dword [rdi + 0x30]
cmp ecx, 0xffffffff
je 0x14004e100
call fcn.14019c888
mov rcx, qword [rdi + 0x60]
lea r8, [rbp + 0x67]
mov qword [rbp + 0x67], rcx
lea rdx, [rbp + 7]
mov rcx, rax
mov dword [rsp + 0x20], shutdown
mov r9d, 8
call qword [0x140296d70]
test eax, eax
jns case.0x14004df67.26
mov ecx, eax
call qword [0x140296d88]
mov ecx, eax
mov dword [rdi + 0x2c], eax
call fcn.140053410
movsxd rsi, eax
jmp 0x14004e3ed
mov rcx, qword [rdi + 0x30]
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
mov edx, 0x100
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 7]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004e6a5
movsd xmm2, qword [rdi + 0x40]
mov rcx, rax
movsd xmm1, qword [rdi + 0x38]
call fcn.14004d840
test eax, eax
jne 0x14004e6da
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14004e3ed
mov ecx, dword [rdi + 0x30]
cmp ecx, 0xffffffff
je 0x14004e100
call fcn.14019c888
cmp rax, 0xffffffffffffffff
je 0x14004e126
movsd xmm2, qword [rdi + 0x40]
mov rcx, rax
movsd xmm1, qword [rdi + 0x38]
call fcn.14004d840
test eax, eax
je case.0x14004df67.26
jmp 0x14004e22b
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004e22b
test byte [rdi + 0x38], 2
je case.0x14004df67.26
and al, 0x11
cmp al, 1
jne case.0x14004df67.26
mov ecx, 0xfffff030
mov dword [rdi + 0x2c], 0xfffff030
call fcn.140053410
movsxd rsi, eax
jmp 0x14004e3ed
mov edx, dword [rdi + 0x38]
mov rcx, qword [rdi + 0x30]
call fcn.14019e664
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
cmp rcx, 0xffffffffffffffff
jne 0x14004e3f4
call fcn.140193b80
mov ecx, dword [rax]
mov dword [rdi + 0x2c], ecx
call fcn.140053410
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
jmp 0x14004e3f4
call fcn.14004d640
jmp 0x14004e3f4
call fcn.14004d5c0
jmp 0x14004e3f4
call fcn.14004c8b0
jmp 0x14004e3f4
mov rcx, qword [rdi + 0x30]
call fcn.14019cbcc
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
cmp rcx, 0xffffffffffffffff
jne 0x14004e3f4
call fcn.140193b80
mov ecx, dword [rax]
mov dword [rdi + 0x2c], ecx
call fcn.140053410
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
jmp 0x14004e3f4
mov rcx, qword [rdi + 0x30]
call fcn.14019cba0
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
cmp rcx, 0xffffffffffffffff
jne 0x14004e3f4
call fcn.140193b80
mov ecx, dword [rax]
mov dword [rdi + 0x2c], ecx
call fcn.140053410
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
jmp 0x14004e3f4
call fcn.14004ca70
jmp 0x14004e3f4
mov rdx, qword [rdi + 0x40]
mov r8d, 1
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.DLL_MoveFileExW]
jmp 0x14004e223
call fcn.14004ce00
jmp 0x14004e3f4
mov rdx, qword [rdi + 0x30]
xor r8d, r8d
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x14004e223
call fcn.14004dc50
jmp 0x14004e3f4
mov rcx, qword [rdi + 0x30]
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004e6c4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov dword [rdi + 0x2c], eax
call fcn.140053410
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
jmp 0x14004e3f4
lea rdx, [rdi - 0x90]
xor r8d, r8d
mov rcx, rbx
call fcn.14004c3a0
test eax, eax
je 0x14004e702
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov dword [rdi + 0x2c], eax
call fcn.140053410
movsxd rcx, eax
mov qword [rdi - 0x98], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14004e3f4
or dword [rdi + 0x28], 8
mov rcx, rbx
mov qword [rdi - 0x98], rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14004e3f4
call fcn.14004dd20
jmp 0x14004e3f4
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.140053360
int3