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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xb0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov edi, r8d
mov ebx, edx
mov r12, rcx
xor esi, esi
xor r14d, r14d
mov qword [rbp - 0x31], r14
call fcn.180036c90
test eax, eax
je 0x18001d010
test edi, edi
je 0x18001d010
lea ecx, [rsi + 0x28]
call fcn.180045488
mov qword [rbp - 0x29], rax
test rax, rax
je 0x18001d009
mov rcx, rax
call fcn.180009bc0
mov r14, rax
jmp 0x18001d00c
xor r14d, r14d
mov qword [rbp - 0x31], r14
test ebx, ebx
je 0x18001d258
add r12, 0x10
mov r13, rbx
mov r15d, dword [rbp + 0x7f]
mov r14d, dword [rbp + 0x77]
nop word [rax + rax]
lea rdx, [0x1800d51b0]
lea rcx, [rbp - 0x39]
call fcn.18002b2f0
nop
lea rdx, [0x1800d51b0]
lea rcx, [rbp - 0x41]
call fcn.18002b2f0
nop
mov rdx, qword [r12 - 0x10]
lea rcx, [rbp + 0xf]
call fcn.18002b2f0
mov r8, rax
mov edx, 5
lea rcx, [rbp - 0x11]
call fcn.18001c9a0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.180027ce0
nop
lea rcx, [rbp - 0x11]
call fcn.180027bd0
mov rdx, qword [r12 - 8]
lea rcx, [rbp + 0x17]
call fcn.18002b2f0
mov r8, rax
mov edx, dword [r12]
lea rcx, [rbp - 0x19]
call fcn.18001c9a0
nop
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.180027ce0
nop
lea rcx, [rbp - 0x19]
call fcn.180027bd0
cmp dword [0x1801340b0], 0
je 0x18001d137
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 1]
call fcn.18002be20
mov rbx, rax
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.18002be20
mov r11, rax
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], edi
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov rax, qword [r11]
mov qword [rsp + 0x20], rax
lea r9, str.CUpAgentFileMgr::DORestoreMSGHookBakFiles_1___s____s____d____d____d_
lea r8, str.Update
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
nop
lea rcx, [rbp - 0x21]
call fcn.180029530
nop
lea rcx, [rbp - 1]
call fcn.180029530
mov rax, qword [rbp - 0x39]
cmp dword [rax - 8], 0
jne 0x18001d159
lea rcx, [rbp - 0x41]
call fcn.180027bd0
nop
lea rcx, [rbp - 0x39]
call fcn.180027bd0
jmp 0x18001d247
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18001d180
lea rcx, [rbp - 0x41]
call fcn.180027bd0
nop
lea rcx, [rbp - 0x39]
call fcn.180027bd0
jmp 0x18001d247
xor r9d, r9d
test r14d, r14d
setne r9b
inc r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rdx, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
call fcn.18001ce50
mov edi, eax
test eax, eax
je 0x18001d1ba
test r15d, r15d
je 0x18001d1ba
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
or esi, edi
cmp dword [0x1801340b0], 0
je 0x18001d231
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.18002be20
mov rbx, rax
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 9]
call fcn.18002be20
mov r11, rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], edi
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov rax, qword [r11]
mov qword [rsp + 0x20], rax
lea r9, str.CUpAgentFileMgr::DORestoreMSGHookBakFiles_2___s____s____d____d_
lea r8, str.Update
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
nop
lea rcx, [rbp - 9]
call fcn.180029530
nop
lea rcx, [rbp - 0x29]
call fcn.180029530
nop
lea rcx, [rbp - 0x41]
call fcn.180027bd0
nop
lea rcx, [rbp - 0x39]
call fcn.180027bd0
mov edi, dword [rbp + 0x6f]
add r12, 0x18
dec r13
jne 0x18001d030
mov r14, qword [rbp - 0x31]
test r14, r14
je 0x18001d26b
mov r8, qword [r14]
mov edx, 1
mov rcx, r14
call qword [r8]
mov eax, esi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret