Function at 0x1800149a0
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.18002c290
test eax, eax
je 0x180014a10
test edi, edi
je 0x180014a10
lea ecx, [rsi + 0x28]
call fcn.18003783c
mov qword [rbp - 0x29], rax
test rax, rax
je 0x180014a09
mov rcx, rax
call fcn.180007ee0
mov r14, rax
jmp 0x180014a0c
xor r14d, r14d
mov qword [rbp - 0x31], r14
test ebx, ebx
je 0x180014c50
add r12, 0x10
mov r13, rbx
mov r15d, dword [rbp + 0x7f]
mov r14d, dword [rbp + 0x77]
nop word [rax + rax]
lea rdx, [0x1800c4308]
lea rcx, [rbp - 0x39]
call fcn.180020a90
nop
lea rdx, [0x1800c4308]
lea rcx, [rbp - 0x41]
call fcn.180020a90
nop
mov rdx, qword [r12 - 0x10]
lea rcx, [rbp + 0xf]
call fcn.180020a90
mov r8, rax
mov edx, 5
lea rcx, [rbp - 0x11]
call fcn.180013be0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.18001d450
nop
lea rcx, [rbp - 0x11]
call fcn.18001d340
mov rdx, qword [r12 - 8]
lea rcx, [rbp + 0x17]
call fcn.180020a90
mov r8, rax
mov edx, dword [r12]
lea rcx, [rbp - 0x19]
call fcn.180013be0
nop
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.18001d450
nop
lea rcx, [rbp - 0x19]
call fcn.18001d340
cmp dword [0x1801161a0], 0
je 0x180014b37
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 1]
call fcn.1800215c0
mov rbx, rax
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.1800215c0
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, [0x1801160e8]
call fcn.180011c50
nop
lea rcx, [rbp - 0x21]
call fcn.18001eca0
nop
lea rcx, [rbp - 1]
call fcn.18001eca0
mov rax, qword [rbp - 0x39]
cmp dword [rax - 8], 0
jne 0x180014b59
lea rcx, [rbp - 0x41]
call fcn.18001d340
nop
lea rcx, [rbp - 0x39]
call fcn.18001d340
jmp 0x180014c3f
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180014b80
lea rcx, [rbp - 0x41]
call fcn.18001d340
nop
lea rcx, [rbp - 0x39]
call fcn.18001d340
jmp 0x180014c3f
xor r9d, r9d
test r14d, r14d
setne r9b
inc r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
call fcn.1800141c0
mov edi, eax
test eax, eax
je 0x180014bb2
test r15d, r15d
je 0x180014bb2
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
or esi, edi
cmp dword [0x1801161a0], 0
je 0x180014c29
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1800215c0
mov rbx, rax
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 9]
call fcn.1800215c0
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, [0x1801160e8]
call fcn.180011c50
nop
lea rcx, [rbp - 9]
call fcn.18001eca0
nop
lea rcx, [rbp - 0x29]
call fcn.18001eca0
nop
lea rcx, [rbp - 0x41]
call fcn.18001d340
nop
lea rcx, [rbp - 0x39]
call fcn.18001d340
mov edi, dword [rbp + 0x6f]
add r12, 0x18
dec r13
jne 0x180014a30
mov r14, qword [rbp - 0x31]
test r14, r14
je 0x180014c63
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