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

Disassembly:
xor edx, edx
jmp 0x140047190
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.DoDeleteFile
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x105
call fcn.140054de0
lea rcx, [rsp + 0x60]
mov rdx, r14
xor r8d, r8d
call fcn.140069250
cmp byte [rsi + 0x17], 0
js 0x140047214
jne 0x140047232
jmp 0x1400473a9
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400473a9
mov edi, 0xa1
cmp rax, 0x103
ja 0x140047377
mov rcx, rsi
mov rdx, r14
call fcn.140055d30
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x140047252
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
test rax, rax
je 0x1400472d4
add rax, rax
xor edi, edi
movzx ecx, word [r14 + rdi]
cmp ecx, 0x2a
je 0x14004727a
cmp ecx, 0x3f
je 0x14004727a
add rdi, 2
cmp rax, rdi
jne 0x140047260
jmp 0x1400472d4
cmp rax, rdi
je 0x1400472d4
lea rcx, [rsp + 0x40]
call fcn.140055000
cmp rdi, 0xfffffffffffffffe
je 0x1400472de
lea r14, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
call fcn.140055d30
lea r15, [rsp + 0x28]
mov rcx, rsi
mov rdx, r15
call fcn.140055920
mov rcx, r15
mov rdx, r14
mov r8d, ebx
call fcn.140048920
mov edi, eax
mov rcx, r15
call fcn.140055000
mov rcx, r14
call fcn.140055000
jmp 0x1400473d8
lea rcx, [rsp + 0x40]
call fcn.140055000
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400472ea
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047399
mov edi, eax
test dil, 1
je 0x14004731c
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140047312
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140047399
test dil, 0x10
jne 0x14004733a
cmp byte [rsi + 0x17], 0
jns 0x14004732b
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400473a9
jmp 0x140047399
test bl, bl
je 0x140047383
lea rdx, [0x14011df80]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140001850
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
call fcn.140048920
mov edi, eax
cmp byte [rsp + 0x57], 0
jns 0x140047373
mov rcx, qword [rsp + 0x40]
call fcn.1400dffa0
test edi, edi
je 0x140047383
lea rcx, [rsp + 0x60]
call fcn.1400692f0
jmp 0x1400473e6
cmp byte [rsi + 0x17], 0
jns 0x14004738c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400473a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x1400473d8
lea rcx, [rsp + 0x60]
call fcn.1400692f0
mov al, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x140047404
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x60]
call fcn.1400692f0
test edi, edi
je 0x1400473b3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
je 0x1400473c9
call fcn.1400e0180
int3