Function at 0x1400047a0
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 [0x14002e260]
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.140009910
lea rcx, str._____DIAS_data_folders___
call fcn.140015f90
mov qword [rsp + 0x150], rax
mov r8, qword [rsp + 0x150]
lea rdx, str._____DIAS_data_folders___
lea rcx, [rsp + 0x58]
call fcn.14000a940
nop
lea rcx, [rsp + 0x58]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.140009910
lea rcx, [0x14003fb50]
lea rax, [0x14003fb50]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
sub rax, rcx
cqo
mov ecx, 0x30
idiv rcx
test rax, rax
jne 0x140004864
mov dword [rsp + 0x2f0], 1
jmp 0x14000486f
mov dword [rsp + 0x2f0], 0
movzx eax, byte [rsp + 0x2f0]
test eax, eax
jne 0x140004b82
lea rax, [0x14003fb50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x168], rax
lea r8, [0x14003fb50]
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x158]
call fcn.14000cff0
lea rcx, [rsp + 0x158]
call fcn.140014280
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.140009910
mov rdx, qword [rsp + 0x170]
add rdx, 8
mov r9, qword [0x1400256b8]
xor r8d, r8d
mov rcx, qword [rsp + 0x178]
call fcn.140009120
nop
lea rax, [0x14003fb50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x180], rax
lea r8, [0x14003fb50]
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x90]
call fcn.14000cff0
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, [0x14003fb50]
call fcn.140008b30
cmp dword [rsp + 0x28], 1
jne 0x140004b5c
lea r8, [rsp + 0x30]
lea rdx, str.__del_dir_:
lea rcx, [rsp + 0xb0]
call fcn.14000d8b0
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.140009910
cmp qword [rsp + 0x50], 0x10
jb 0x140004a17
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x308], rax
jmp 0x140004a24
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 0x140004a3b
jmp 0x140004b5a
cmp qword [rsp + 0x50], 0x10
jb 0x140004a52
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x310], rax
jmp 0x140004a5f
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 0x140004ae7
lea rax, [rsp + 0x210]
mov qword [rsp + 0x218], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.140009910
lea rcx, str.____not_exist
call fcn.140015f90
mov qword [rsp + 0x240], rax
mov r8, qword [rsp + 0x240]
lea rdx, str.____not_exist
lea rcx, [rsp + 0xd8]
call fcn.14000a940
nop
lea rcx, [rsp + 0xd8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xd8]
call fcn.140009910
jmp 0x140004b5a
lea rax, [rsp + 0x268]
mov qword [rsp + 0x270], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140009910
lea rcx, str.____not_empty._skipped_deletion.
call fcn.140015f90
mov qword [rsp + 0x278], rax
mov r8, qword [rsp + 0x278]
lea rdx, str.____not_empty._skipped_deletion.
lea rcx, [rsp + 0x100]
call fcn.14000a940
nop
lea rcx, [rsp + 0x100]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x100]
call fcn.140009910
jmp 0x140004b6e
cmp dword [rsp + 0x28], 2
jne 0x140004b6e
lea rcx, [rsp + 0x30]
call fcn.1400065f0
nop
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov dl, 1
call fcn.140009910
jmp 0x14000482f
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140016740
add rsp, 0x328
pop rdi
pop rsi
ret