Function at 0x140005150
Capabilities:
Check if file exists
Delete directory
Get file attributes
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rbp - 0x39], r15d
movdqa xmm0, xmmword [0x14006ce90]
movdqu xmmword [rbp + 7], xmm0
mov byte [rbp - 9], r14b
lea r8d, [r15 + 0x1a]
lea rdx, str._____DIAS_data_folders___
lea rcx, [rbp - 9]
call fcn.14000a5a0
nop
cmp byte [0x140078a81], r15b
je 0x140005231
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.140009d00
nop
lea r8d, [r15 + 1]
lea rdx, [0x14006bbcc]
lea rcx, [rbp - 0x29]
call fcn.14000a720
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140005231
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000522b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005658
call fcn.140013ee4
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x14000526c
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005267
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000565e
call fcn.140013ee4
mov rcx, qword [0x140078b58]
cmp rcx, qword [0x140078b60]
je 0x140005623
mov eax, dword [rcx]
mov dword [rbp + 0x17], eax
lea rdx, [rcx + 8]
lea rcx, [rbp + 0x1f]
call fcn.140009d00
nop
mov rsi, qword [0x140078b60]
mov rdi, qword [0x140078b58]
lea rbx, [rdi + 0x28]
cmp rbx, rsi
je 0x1400052d5
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rdi], eax
lea rdx, [rbx + 8]
lea rcx, [rdi + 8]
call fcn.140009be0
lea rdi, [rdi + 0x28]
add rbx, 0x28
cmp rbx, rsi
jne 0x1400052b0
mov rsi, qword [0x140078b60]
mov rdx, qword [rsi - 8]
cmp rdx, 0x10
jb 0x140005310
mov rcx, qword [rsi - 0x20]
inc rdx
cmp rdx, 0x1000
jb 0x14000530b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005664
mov rcx, r8
call fcn.140013ee4
mov qword [rsi - 0x10], r15
mov qword [rsi - 8], 0xf
mov byte [rsi - 0x20], 0
sub qword [0x140078b60], 0x28
mov eax, dword [rbp + 0x17]
cmp eax, 1
jne 0x1400055d5
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
or r14d, eax
mov dword [rbp - 0x39], r14d
mov rdx, qword [rbp + 0x2f]
add rdx, 0xc
lea rcx, [rbp - 0x29]
call fcn.14000ce70
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.__del_dir_:
lea rcx, [rbp - 0x29]
call fcn.14000a720
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rdx, qword [rbp + 0x1f]
mov r8, qword [rbp + 0x2f]
lea rcx, [rbp - 0x29]
call fcn.14000a720
lea rcx, [rbp - 0x29]
call fcn.140001ec0
and r14d, 0xfffffffe
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1400053d5
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000566a
call fcn.140013ee4
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1400055e4
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400054f7
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], 0
mov r8d, 0xd
lea rdx, str.____not_exist
lea rcx, [rbp - 9]
call fcn.14000a5a0
nop
cmp byte [0x140078a81], 0
je 0x1400054b3
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.140009d00
nop
mov r8d, 1
lea rdx, [0x14006bbcc]
lea rcx, [rbp - 0x29]
call fcn.14000a720
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1400054b3
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005670
call fcn.140013ee4
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400055e4
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005676
call fcn.140013ee4
jmp 0x1400055e4
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
mov r8d, 0x21
lea rdx, str.____not_empty._skipped_deletion.
lea rcx, [rbp - 0x29]
call fcn.14000a5a0
nop
cmp byte [0x140078a81], 0
je 0x14000559c
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.140009d00
nop
mov r8d, 1
lea rdx, [0x14006bbcc]
lea rcx, [rbp - 9]
call fcn.14000a720
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x14000559c
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005596
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000567c
call fcn.140013ee4
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1400055e4
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000564c
call fcn.140013ee4
jmp 0x1400055e4
cmp eax, 2
jne 0x1400055e4
lea rcx, [rbp + 0x1f]
call fcn.140007780
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x14000526c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005267
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005652
jmp 0x140005267
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140013980
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140022b6c
nop
call fcn.140022b6c
nop
call fcn.140022b6c
nop
call fcn.140022b6c
nop
call fcn.140022b6c
int3
call fcn.140022b6c
nop
call fcn.140022b6c
nop
call fcn.140022b6c
nop
call fcn.140022b6c
int3