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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov byte [rsp + 8], cl
push rdi
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.164f79400
cmp byte [rax + 0x48], 0
jne 0x164e493a0
mov dword [rsp + 0x30], 0x39393031
mov dword [rsp + 0x34], 0x36373534
movsd xmm0, qword [str.policy_reg]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x1650a3900]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x55
lea rcx, [rsp + 0x40]
call fcn.164e57b30
jmp 0x164e49827
movzx eax, byte [0x1651bb878]
test al, al
je 0x164e49493
mov dword [rsp + 0x30], 0x39393031
mov dword [rsp + 0x34], 0x36373534
movsd xmm0, qword [str.policy_reg]
movsd qword [rsp + 0x58], xmm0
mov eax, dword [0x1650a3900]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x6c], 0x5b
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
lea rcx, [rsp + 0x180]
call fcn.164e47a70
nop
mov rcx, qword [rsp + 0x180]
test rcx, rcx
je 0x164e49447
mov rax, qword [rcx]
lea rdx, str.License_policy_already_regsitered
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], 0x21
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x58]
xor edx, edx
mov rax, qword [rax + 0x18]
call qword [case.0x164e9d7b8.0]
nop
mov rdi, qword [rsp + 0x188]
test rdi, rdi
je 0x164e4948e
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x164e4948e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x164e9d7b8.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x164e4948e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x164e9d7b8.0]
jmp 0x164e49827
movzx r8d, byte [rsp + 0x1f0]
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x160]
call fcn.164e48720
nop
mov dword [rsp + 0x30], 0x39393031
mov dword [rsp + 0x34], 0x36373534
movsd xmm0, qword [str.policy_reg]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x1650a3900]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x7c], rax
mov dword [rsp + 0x84], 0x60
lea rax, str.License_policy_file_location_:
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x20
lea r9, [rsp + 0x160]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call fcn.164e59f50
lea rcx, [rsp + 0x160]
cmp qword [rsp + 0x178], 7
cmova rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164e49554
test al, 0x10
jne 0x164e49554
movzx eax, sil
jmp 0x164e49556
xor al, al
test al, al
je 0x164e497cb
lea r14, [0x1650a9d10]
mov qword [rsp + 0x1a0], r14
lea r15, vtable.std::exception.0
mov qword [rsp + 0x1a8], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x1b0], xmm0
call fcn.164e52320
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x208]
mov rcx, rdx
call qword [case.0x164e9d7b8.0]
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
lea rcx, [rsp + 0x160]
cmp qword [rsp + 0x178], 7
cmova rcx, qword [rsp + 0x160]
mov qword [rsp + 0xc0], rcx
mov rcx, qword [rsp + 0x170]
mov qword [rsp + 0xc8], rcx
lea rcx, str.license_policy
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], 0xe
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x100], xmm0
movaps xmm1, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0x110], xmm1
lea r9, [rsp + 0x100]
lea r8, [rsp + 0x110]
mov edx, 2
mov rcx, r10
call qword [case.0x164e9d7b8.0]
call fcn.164e52320
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x208]
mov rcx, rdx
call qword [case.0x164e9d7b8.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x50]
lea rcx, [0x1650a8188]
mov qword [rsp + 0x120], rcx
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x158], rcx
lea rdx, [rsp + 0x120]
mov rcx, r8
call qword [case.0x164e9d7b8.0]
nop
mov rcx, qword [rsp + 0x158]
test rcx, rcx
je 0x164e496b7
mov rax, qword [rcx]
lea rdx, [rsp + 0x120]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
mov dword [rsp + 0x30], 0x39393031
mov dword [rsp + 0x34], 0x36373534
movsd xmm0, qword [str.policy_reg]
movsd qword [rsp + 0x88], xmm0
mov eax, dword [0x1650a3900]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x94], rax
mov dword [rsp + 0x9c], 0x6b
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
lea rcx, [rsp + 0x190]
call fcn.164e47a70
nop
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x164e4975e
mov rax, qword [rcx]
lea rdx, str.License_policy_file_registered_to_settings
mov qword [rsp + 0xe0], rdx
mov qword [rsp + 0xe8], 0x2a
lea r9, [rsp + 0xe0]
lea r8, [rsp + 0x88]
xor edx, edx
mov rax, qword [rax + 0x18]
call qword [case.0x164e9d7b8.0]
nop
mov rdi, qword [rsp + 0x198]
test rdi, rdi
je 0x164e497a5
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x164e497a5
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x164e9d7b8.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x164e497a5
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x164e9d7b8.0]
xchg byte [0x1651bb878], sil
mov qword [rsp + 0x1a0], r14
mov qword [rsp + 0x1a8], r15
lea rcx, [rsp + 0x1b0]
call fcn.165002ff0
jmp 0x164e49819
mov dword [rsp + 0x30], 0x39393031
mov dword [rsp + 0x34], 0x36373534
movsd xmm0, qword [str.policy_reg]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x1650a3900]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x70
lea r8, str.License_policy_file_doesnt_exists
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.164e5a650
nop
lea rcx, [rsp + 0x160]
call fcn.164e54bf0
nop
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret