Function at 0x140020040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [0x140110980]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
call fcn.140022a1c
mov qword [r14], rax
lea rbx, [r14 + 0x10]
mov qword [rsp + 0x140], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
call fcn.140022a1c
mov qword [rbx], rax
lea rsi, [r14 + 0x28]
lea r12d, [rdi + 7]
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x10], rdi
mov word [rsi], di
mov qword [r14 + 0x48], rdi
call fcn.140020f24
lea rcx, [rax + 0x34b0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.1400221d8
mov eax, dword [rsp + 0x30]
mov dword [r14 + 0x20], eax
mov dword [rsp + 0x140], edi
lea rax, str._unknown_log_level_
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
mov dword [rsp + 0x140], 1
lea rax, str.ERROR
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
mov dword [rsp + 0x140], 2
lea rax, str.WARNING
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
mov dword [rsp + 0x140], 4
lea rax, str.INFO
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
mov dword [rsp + 0x140], 8
lea rax, str.DEBUG
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
mov dword [rsp + 0x140], 0x20
lea rax, str.SCOPE
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
mov dword [rsp + 0x140], 0x10
lea rax, str.PERFORMANCE
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022c2c
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.140022ca0
lea rax, str.Default
mov qword [rsp + 0x140], rax
lea rax, [0x1400dab50]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.AppAgent
mov qword [rsp + 0x140], rax
lea rax, [0x1400daba0]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.AgentService
mov qword [rsp + 0x140], rax
lea rax, [0x1400dac60]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.AppAgentCommon
mov qword [rsp + 0x140], rax
lea rax, [0x1400daa70]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.UevCommon
mov qword [rsp + 0x140], rax
lea rax, [0x1400dada8]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.ChangeManager
mov qword [rsp + 0x140], rax
lea rax, [0x1400dad78]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, [0x1400e1d60]
mov qword [rsp + 0x140], rax
lea rax, [0x1400daa88]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.CscChangeManager
mov qword [rsp + 0x140], rax
lea rax, [0x1400dadb8]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.CscTool
mov qword [rsp + 0x140], rax
lea rax, [0x1400dad38]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.LocalStore
mov qword [rsp + 0x140], rax
lea rax, [0x1400dadc8]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.Orchestrator
mov qword [rsp + 0x140], rax
lea rax, [0x1400dac00]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.Packager
mov qword [rsp + 0x140], rax
lea rax, [0x1400dace0]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
lea rax, str.TemplateService
mov qword [rsp + 0x140], rax
lea rax, [0x1400dabb0]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022df8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140022e78
mov qword [rsp + 0x1d8], r12
mov qword [rsp + 0x1d0], rdi
mov word [rsp + 0x1c0], di
call fcn.140020f24
lea rcx, [rax + 0x3f60]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x1c0]
call fcn.140021fc4
test al, al
je 0x140020980
cmp qword [rsp + 0x1d0], rdi
je 0x140020980
mov qword [rsp + 0x178], r12
mov qword [rsp + 0x170], rdi
mov word [rsp + 0x160], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x160]
call fcn.140003c44
nop
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x160]
call fcn.140094584
cmp qword [rax + 0x18], 8
jb 0x1400206e8
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140020703
mov bl, dil
jmp 0x140020709
shr bl, 4
and bl, 1
cmp qword [rsp + 0x1b8], 8
jb 0x140020728
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
test bl, bl
je 0x140020959
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x160]
call fcn.140094834
mov rbx, rax
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x160]
call fcn.140094584
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.14001ff80
nop
cmp qword [rsp + 0x158], 8
jb 0x140020791
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x158], r12
mov qword [rsp + 0x150], rdi
mov word [rsp + 0x140], di
cmp qword [rsp + 0x198], 8
jb 0x1400207c8
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x198], r12
mov qword [rsp + 0x190], rdi
mov word [rsp + 0x180], di
lea rcx, [rsp + 0x50]
call fcn.14000bfd0
nop
lea rdx, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 8
cmovae rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x50]
call fcn.140011534
lea rdx, [0x1400e1e28]
mov rcx, rax
call fcn.140011534
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [rax + rax]
mov edx, eax
mov rcx, rbx
call fcn.14001bdf4
mov rbx, rax
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x160]
call fcn.1400949f8
nop
cmp qword [rax + 0x18], 8
jb 0x14002085a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140011534
nop
cmp qword [rsp + 0x198], 8
jb 0x140020885
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x58]
call fcn.14000eb24
nop
lea rax, [rsp + 0x180]
cmp rsi, rax
je 0x1400208bd
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x180]
mov rcx, rsi
call fcn.140003c44
nop
cmp qword [rsp + 0x198], 8
jb 0x1400208dc
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov ecx, 0x108
call fcn.1400a2ea8
mov qword [rsp + 0x140], rax
test rax, rax
je 0x140020901
mov rdx, rsi
mov rcx, rax
call fcn.140021d48
mov rdi, rax
mov rdx, rdi
lea rcx, [r14 + 0x48]
call fcn.140020fc4
nop
lea rcx, [rsp + 0xd8]
call fcn.14000bf4c
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0xd8]
call fcn.1400a41a8
nop
cmp qword [rsp + 0x1b8], 8
jb 0x140020959
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
cmp qword [rsp + 0x178], 8
jb 0x140020979
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
jmp 0x140020980
cmp qword [rsp + 0x1d8], 8
jb 0x1400209a0
mov rcx, qword [rsp + 0x1c0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
mov rax, r14
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400c2d60
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret