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

Disassembly:
push rsi
push rdi
sub rsp, 0x328
mov qword [rsp + 0x2e8], 0xfffffffffffffffe
mov rax, qword [0x1400472d0]
xor rax, rsp
mov qword [rsp + 0x318], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x148], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400099b0
lea rcx, str._____DIAS_data_folders___
call fcn.140018050
mov qword [rsp + 0x150], rax
mov r8, qword [rsp + 0x150]
lea rdx, str._____DIAS_data_folders___
lea rcx, [rsp + 0x58]
call fcn.14000aae0
nop
lea rcx, [rsp + 0x58]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.1400099b0
lea rcx, [0x140058c30]
lea rax, [0x140058c30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
sub rax, rcx
cqo
mov ecx, 0x30
idiv rcx
test rax, rax
jne 0x140004874
mov dword [rsp + 0x2f0], 1
jmp 0x14000487f
mov dword [rsp + 0x2f0], 0
movzx eax, byte [rsp + 0x2f0]
test eax, eax
jne 0x140004b92
lea rax, [0x140058c30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x168], rax
lea r8, [0x140058c30]
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x158]
call fcn.14000d320
lea rcx, [rsp + 0x158]
call fcn.14000d3a0
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x178], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.1400099b0
mov rdx, qword [rsp + 0x170]
add rdx, 8
mov r9, qword [0x14003a848]
xor r8d, r8d
mov rcx, qword [rsp + 0x178]
call fcn.1400091c0
nop
lea rax, [0x140058c30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x180], rax
lea r8, [0x140058c30]
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x90]
call fcn.14000d320
lea rdi, [rsp + 0x2d8]
lea rsi, [rsp + 0x90]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x80]
lea rsi, [rsp + 0x2d8]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x130]
lea rsi, [rsp + 0x80]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0xa0]
lea rcx, [0x140058c30]
call fcn.140008b70
cmp dword [rsp + 0x28], 1
jne 0x140004b6c
lea r8, [rsp + 0x30]
lea rdx, str.__del_dir_:
lea rcx, [rsp + 0xb0]
call fcn.14000dd40
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x300], rax
mov rcx, qword [rsp + 0x300]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb0]
call fcn.1400099b0
cmp qword [rsp + 0x50], 0x10
jb 0x140004a27
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x308], rax
jmp 0x140004a34
lea rax, [rsp + 0x38]
mov qword [rsp + 0x308], rax
mov rcx, qword [rsp + 0x308]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x140004a4b
jmp 0x140004b6a
cmp qword [rsp + 0x50], 0x10
jb 0x140004a62
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x310], rax
jmp 0x140004a6f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x310], rax
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140004af7
lea rax, [rsp + 0x210]
mov qword [rsp + 0x218], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.1400099b0
lea rcx, str.____not_exist
call fcn.140018050
mov qword [rsp + 0x240], rax
mov r8, qword [rsp + 0x240]
lea rdx, str.____not_exist
lea rcx, [rsp + 0xd8]
call fcn.14000aae0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xd8]
call fcn.1400099b0
jmp 0x140004b6a
lea rax, [rsp + 0x268]
mov qword [rsp + 0x270], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.1400099b0
lea rcx, str.____not_empty._skipped_deletion.
call fcn.140018050
mov qword [rsp + 0x278], rax
mov r8, qword [rsp + 0x278]
lea rdx, str.____not_empty._skipped_deletion.
lea rcx, [rsp + 0x100]
call fcn.14000aae0
nop
lea rcx, [rsp + 0x100]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x100]
call fcn.1400099b0
jmp 0x140004b7e
cmp dword [rsp + 0x28], 2
jne 0x140004b7e
lea rcx, [rsp + 0x30]
call fcn.140006600
nop
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov dl, 1
call fcn.1400099b0
jmp 0x14000483f
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.1400189a0
add rsp, 0x328
pop rdi
pop rsi
ret