Function at 0x140034570
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x168], rax
lea rax, str.DeleteFile.Recursive
lea r15, str.DeleteFile.NonRecursive
test dl, dl
cmovne r15, rax
mov eax, edx
xor al, 1
movzx eax, al
lea r12, [rax + rax*2]
add r12, 0x14
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14003485a
mov edi, 0xa1
cmp rax, 0x103
jbe 0x140034624
test edi, edi
sete bl
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x1400345f1
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003478c
mov ebp, 7
test al, 0x10
je 0x1400348f6
mov rcx, rsi
call fcn.140032ef0
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x1400348f6
lea rbp, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.140030190
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 7
jbe 0x140034646
mov rbp, qword [rsp + 0x40]
test rax, rax
je 0x140034720
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x150], xmm0
movdqa xmmword [rsp + 0x140], xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x8a], 1
mov byte [rsp + 0x9f], 1
test rax, rax
jle 0x140034720
lea rax, [rax*2]
add rax, rbp
mov rdi, rbp
movzx ecx, word [rdi]
cmp rcx, 0xff
ja 0x140034717
cmp byte [rsp + rcx + 0x60], 0
jne 0x140034870
add rdi, 2
cmp rdi, rax
jb 0x140034700
lea rcx, [rsp + 0x40]
call fcn.14002ee30
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140034737
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x14003484a
test dil, 1
je 0x14003476e
mov edx, edi
and edx, 0xfffffffe
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140034760
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14003484a
test dil, 0x10
jne 0x1400347b7
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140034781
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140034846
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400348ea
cmp eax, 5
je 0x1400348e3
cmp eax, 3
jne 0x1400348f1
mov ebp, 2
jmp 0x1400348f6
test bl, bl
je 0x140034833
movdqa xmm0, xmmword [0x140149b40]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 0x2a
lea rdx, [rsp + 0x60]
mov r8b, 1
mov rcx, rsi
call fcn.140036490
mov edi, eax
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x14003482b
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140034826
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140034a4d
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14011a568
test edi, edi
jne 0x1400345d5
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140034840
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003485a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or eax, 1
cmp eax, 3
jne 0x1400348c7
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
xor r14d, r14d
mov bl, 1
xor ebp, ebp
jmp 0x1400348f9
sub rdi, rbp
lea rcx, [rsp + 0x40]
call fcn.14002ee30
cmp rdi, 0xfffffffffffffffe
je 0x14003472a
lea r14, [rsp + 0x60]
mov rcx, rsi
mov rdx, r14
call fcn.140030190
lea rbp, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.14002fcd0
mov rcx, rbp
mov rdx, r14
mov r8d, ebx
call fcn.140036490
mov edi, eax
mov rcx, rbp
call fcn.14002ee30
mov rcx, r14
call fcn.14002ee30
xor r14d, r14d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov ebx, 0
test edi, edi
jne 0x1400345e4
jmp 0x140034867
mov ebp, 3
jmp 0x1400348f6
mov ebp, 1
jmp 0x1400348f6
mov ebp, 4
mov r14d, edi
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea r9, str.Windows.PostOperationState.
lea rsi, [rsp + 0x60]
mov edx, 0x1b
mov rcx, rsi
call fcn.14000699c
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140074240
mov r8d, 8
mov rcx, rsi
mov edx, ebp
call fcn.1400675a0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x14003498a
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140034985
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140034a4d
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14011a568
mov sil, 1
test bl, bl
jne 0x140034a29
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r12
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea r9, str.Windows.FilesystemError.
lea rsi, [rsp + 0x60]
mov edx, 0x18
mov rcx, rsi
call fcn.14000699c
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140074240
mov rcx, rsi
mov edx, r14d
call fcn.1400675e0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140034a27
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140034a22
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140034a4d
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14011a568
xor esi, esi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14011a890
mov eax, esi
add rsp, 0x170
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140128920
ud2