Function at 0x1400505b0
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov r8d, dword [rcx + 8]
sub r8d, 1
je 0x1400508b5
sub r8d, 1
je 0x14005081d
sub r8d, 1
je 0x140050734
cmp r8d, 1
je 0x14005066a
mov ebx, 0x2712
mov dword [rdx], ebx
or r8d, 0xffffffff
lea rdx, [0x1400956f4]
lea rcx, [rsp + 0x50]
call fcn.14002b8e4
nop
or r8d, 0xffffffff
lea rdx, str.Unknown_ShortCut_op_type
lea rcx, [rbp + 0x60]
call fcn.14002b8e4
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x60]
lea edx, [r9 + 0xa]
mov ecx, ebx
call fcn.1400469e8
nop
lea rcx, [rbp + 0x60]
call fcn.14002b9e0
nop
jmp 0x14005097f
add rdi, 0x10
mov rcx, rdi
call fcn.14002bbf4
test al, al
je 0x1400506dd
mov ebx, 0x2712
mov dword [rdx], ebx
or r8d, 0xffffffff
lea rdx, [0x1400956f4]
lea rcx, [rbp + 0x60]
call fcn.14002b8e4
nop
or r8d, 0xffffffff
lea rdx, str.To_remove_dir_for_ShortCut__the_dest_cannot_be_empty
lea rcx, [rsp + 0x50]
call fcn.14002b8e4
nop
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xb]
mov ecx, ebx
call fcn.1400469e8
nop
lea rcx, [rsp + 0x50]
call fcn.14002b9e0
nop
lea rcx, [rbp + 0x60]
jmp 0x140050984
call fcn.14002ba70
mov rcx, rax
call fcn.140003a54
test eax, eax
jne 0x140050989
mov ebx, 0x2719
mov dword [rsi], ebx
or r8d, 0xffffffff
lea rdx, str.RemoveDirectory_Failed
lea rcx, [rsp + 0x50]
call fcn.14002b8e4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
mov edx, 6
mov ecx, ebx
call fcn.1400469e8
nop
jmp 0x14005097f
add rdi, 0x10
mov rcx, rdi
call fcn.14002bbf4
test al, al
je 0x1400507a3
mov ebx, 0x2712
mov dword [rdx], ebx
or r8d, 0xffffffff
lea rdx, [0x1400956f4]
lea rcx, [rbp + 0x60]
call fcn.14002b8e4
nop
or r8d, 0xffffffff
lea rdx, str.To_add_dir_for_ShortCut__the_dest_cannot_be_empty
lea rcx, [rsp + 0x50]
call fcn.14002b8e4
nop
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xa]
mov ecx, ebx
call fcn.1400469e8
nop
lea rcx, [rsp + 0x50]
call fcn.14002b9e0
nop
jmp 0x1400506d4
call fcn.14002ba70
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140050989
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140050989
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140050989
mov ebx, 0x2718
mov dword [rsi], ebx
or r8d, 0xffffffff
lea rdx, str.CreateDirectory_Failed
lea rcx, [rsp + 0x50]
call fcn.14002b8e4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
mov edx, 0xa
mov ecx, ebx
call fcn.1400469e8
nop
jmp 0x14005097f
lea r14, [rcx + 0x230]
mov rcx, r14
call fcn.14002ba70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
jne 0x140050989
cmp eax, 2
je 0x140050989
or r8d, 0xffffffff
lea rdx, str.DeleteFile_failed
lea rcx, [rsp + 0x50]
cmp eax, 5
jne 0x140050889
mov dword [rsi], 0x2724
call fcn.14002b8e4
nop
mov qword [rsp + 0x20], r14
mov r9d, edi
lea r8, [rsp + 0x50]
call fcn.140046cf8
nop
jmp 0x14005097f
mov ebx, 0x2717
mov dword [rsi], ebx
call fcn.14002b8e4
nop
mov qword [rsp + 0x20], r14
mov r9d, edi
lea r8, [rsp + 0x50]
mov edx, VariantTimeToDosDateTime
mov ecx, ebx
call fcn.1400469e8
nop
jmp 0x14005097f
lea r14, [rcx + 0x230]
add rcx, 0x568
call fcn.14002ba70
mov rbx, rax
lea rcx, [rdi + 0x458]
call fcn.14002ba70
mov r11, rax
lea rcx, [rdi + 0x340]
call fcn.14002ba70
mov r9, rax
mov rcx, r14
call fcn.14002ba70
mov r8, rax
lea rcx, [rdi + 0x120]
call fcn.14002ba70
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.14002ba70
mov rcx, rax
mov r10b, byte [rdi + 0x67c]
mov byte [rsp + 0x40], r10b
mov eax, dword [rdi + 0x678]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r11
mov eax, dword [rdi + 0x450]
mov dword [rsp + 0x20], eax
call fcn.140017e18
test eax, eax
jns 0x140050989
mov ebx, 0x271f
mov dword [rsi], ebx
or r8d, 0xffffffff
lea rdx, str.CreateShortCut_failed
lea rcx, [rsp + 0x50]
call fcn.14002b8e4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x50]
mov edx, 0xa
mov ecx, ebx
call fcn.1400469e8
nop
lea rcx, [rsp + 0x50]
call fcn.14002b9e0
cmp dword [rsi], 0
sete al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140072030
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret