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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rbx, rcx
mov qword [rsp + 0xd0], rcx
lea r12, [rcx + 0xc0]
mov qword [rsp + 0x98], r12
mov rdi, 0xffffffffffffffff
mov dword [r12], edi
lea r13, [rcx + 0xc4]
mov qword [rsp + 0xa0], r13
mov dword [r13], edi
lea rsi, [rcx + 0xe0]
mov qword [rsp + 0x40], rsi
mov rax, rsi
cmp qword [rsi + 0x18], 7
jbe 0x164ee4dc2
mov rax, qword [rsi]
xor ecx, ecx
mov qword [rsi + 0x10], rcx
mov word [rax], cx
lea r15, [rbx + 0x100]
mov qword [rsp + 0xa8], r15
mov byte [r15], cl
lea rax, [rbx + 0x101]
mov qword [rsp + 0x80], rax
mov byte [rax], cl
lea rax, [rbx + 0x102]
mov qword [rsp + 0x88], rax
mov byte [rax], cl
lea rax, [rbx + 0x103]
mov qword [rsp + 0x90], rax
mov byte [rax], cl
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x490], xmm1
movups xmmword [rsp + 0x4a0], xmm1
lea r8, [rsp + 0x490]
lea rdx, [rsp + 0x70]
call fcn.164f92c30
test eax, eax
jne 0x164ee4e8e
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rcx + 0x20]
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x50]
call fcn.164e71600
mov rdx, rax
lea rcx, [rbx + 0x80]
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
xor r14d, r14d
jmp 0x164ee4eb6
lea rax, [rbx + 0x80]
cmp qword [rbx + 0x98], 7
jbe 0x164ee4ea6
mov rax, qword [rbx + 0x80]
xor ecx, ecx
mov qword [rbx + 0x90], rcx
xor r14d, r14d
mov word [rax], r14w
call fcn.164f79400
cmp byte [rax + 0x48], 0
je 0x164ee512a
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.164f753b0
mov rdx, rax
mov rcx, rbx
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
xorps xmm0, xmm0
movups xmmword [rsp + 0x490], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x4a0], xmm1
xor r8d, r8d
lea rdx, [0x1650a825c]
lea rcx, [rsp + 0x490]
call fcn.164e485e0
nop
call fcn.164f79400
lea r8, [rsp + 0x490]
mov rdx, rax
call fcn.164f78a20
mov byte [r15], al
lea rcx, [rsp + 0x490]
call fcn.164e54bf0
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.164f76c80
lea rcx, [rbx + 0x40]
mov rdx, rax
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.164f76de0
lea rcx, [rbx + 0xa0]
mov rdx, rax
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
call fcn.164f79400
mov rcx, rax
call fcn.164f77030
mov dword [r12], eax
mov dword [r13], eax
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.164e539c0
nop
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.164f771d0
mov rdx, rax
mov rcx, rsi
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
lea rcx, [rbx + 0x60]
mov r8d, 0xe
lea rdx, str.persistentGuid
call fcn.164e54c60
lea rcx, [rbx + 0x20]
cmp rcx, rbx
je 0x164ee501a
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x164ee5011
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.164e54c60
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.164f77390
lea rcx, [rbx + 0x108]
mov rdx, rax
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
call fcn.164f79400
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.164f774e0
lea rcx, [rbx + 0x128]
mov rdx, rax
call fcn.164e53820
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], r14
add rbx, 0xc8
lea rax, [rsp + 0xb0]
cmp rbx, rax
je 0x164ee50e8
mov rcx, qword [rbx]
test rcx, rcx
je 0x164ee50dd
mov rax, qword [rbx + 0x10]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
cmp rdx, 0x1000
jb 0x164ee50d8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x164ee5845
mov rcx, r8
call fcn.1650010a0
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
lea rcx, [rsp + 0xb0]
call fcn.164ee62b0
mov rax, qword [rsp + 0x80]
mov byte [rax], 0
mov rcx, qword [rsp + 0x88]
mov byte [rcx], 0
mov rcx, qword [rsp + 0x90]
mov byte [rcx], 0
lea rcx, [rsp + 0xd0]
call fcn.164e54bf0
mov al, 1
jmp 0x164ee5818
xor edx, edx
mov r8d, 0x398
lea rcx, [rsp + 0xf0]
call fcn.165040130
lea rcx, [rsp + 0xf0]
call fcn.164eee4a0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x490], xmm0
mov qword [rsp + 0x4a0], r14
mov qword [rsp + 0x4a8], 7
mov word [rsp + 0x490], r14w
lea rcx, [rsp + 0xf0]
call fcn.164eefe40
movzx r14d, al
mov edx, dword [0x1651baba0]
mov rcx, qword gs:[0x58]
mov eax, 4
mov rcx, qword [rcx + rdx*8]
mov edx, dword [rax + rcx]
cmp dword [0x1651bea60], edx
jle 0x164ee5204
lea rcx, [0x1651bea60]
call fcn.165001160
cmp dword [0x1651bea60], 0xffffffff
jne 0x164ee5204
call fcn.164f7a0a0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
call fcn.164ee1dd0
nop
mov r9, qword [rsp + 0x70]
mov rdx, rax
call fcn.164ee31a0
nop
lea rcx, [rsp + 0x50]
call fcn.164e54bf0
lea rcx, [0x165070340]
call fcn.165001aa0
nop
lea rcx, [0x1651bea60]
call fcn.1650010f0
lea rdx, [0x1651bea68]
cmp qword [0x1651bea80], 7
cmova rdx, qword [0x1651bea68]
mov r8, qword [0x1651bea78]
lea rcx, [rsp + 0x490]
call fcn.164e54c60
nop
jmp 0x164ee5264
lea rcx, [rbx + 0x60]
lea rax, [rsp + 0x248]
cmp rcx, rax
je 0x164ee529c
lea rdx, [rsp + 0x248]
cmp qword [rsp + 0x260], 7
cmova rdx, qword [rsp + 0x248]
mov r8, qword [rsp + 0x258]
call fcn.164e54c60
lea rcx, str.Reboot.txt
mov qword [rsp + 0xd0], rcx
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x164ee52b0
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x490]
cmp qword [rsp + 0x4a8], 7
cmova rax, qword [rsp + 0x490]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x4a0]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0xd0], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x490]
call fcn.164f9f270
lea rcx, [rsp + 0x490]
cmp qword [rsp + 0x4a8], 7
cmova rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164ee5351
test al, 0x10
jne 0x164ee5351
mov al, 1
jmp 0x164ee5353
xor al, al
mov byte [r15], al
test r14b, r14b
je 0x164ee578f
lea rax, [rsp + 0xf8]
cmp rbx, rax
je 0x164ee5396
lea rdx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 7
cmova rdx, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x108]
mov rcx, rbx
call fcn.164e54c60
lea rcx, [rbx + 0x20]
lea rax, [rsp + 0x138]
cmp rcx, rax
je 0x164ee53ce
lea rdx, [rsp + 0x138]
cmp qword [rsp + 0x150], 7
cmova rdx, qword [rsp + 0x138]
mov r8, qword [rsp + 0x148]
call fcn.164e54c60
lea rcx, [rbx + 0x40]
lea rax, [rsp + 0x220]
cmp rcx, rax
je 0x164ee5406
lea rdx, [rsp + 0x220]
cmp qword [rsp + 0x238], 7
cmova rdx, qword [rsp + 0x220]
mov r8, qword [rsp + 0x230]
call fcn.164e54c60
lea rcx, [rbx + 0xa0]
lea rax, [rsp + 0x320]
cmp rcx, rax
je 0x164ee5441
lea rdx, [rsp + 0x320]
cmp qword [rsp + 0x338], 7
cmova rdx, qword [rsp + 0x320]
mov r8, qword [rsp + 0x330]
call fcn.164e54c60
lea rcx, [rbx + 0x108]
lea rax, [rsp + 0x3a0]
cmp rcx, rax
je 0x164ee547c
lea rdx, [rsp + 0x3a0]
cmp qword [rsp + 0x3b8], 7
cmova rdx, qword [rsp + 0x3a0]
mov r8, qword [rsp + 0x3b0]
call fcn.164e54c60
lea rcx, [rbx + 0x128]
lea rax, [rsp + 0x400]
cmp rcx, rax
je 0x164ee54b7
lea rdx, [rsp + 0x400]
cmp qword [rsp + 0x418], 7
cmova rdx, qword [rsp + 0x400]
mov r8, qword [rsp + 0x410]
call fcn.164e54c60
lea rcx, [rbx + 0xc8]
lea rax, [rsp + 0x2a8]
cmp rcx, rax
je 0x164ee54e7
mov r8, qword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2a8]
sub r8, rdx
sar r8, 2
call fcn.164ee67f0
mov edx, dword [rsp + 0x298]
mov dword [r12], edx
cmp dword [rsp + 0x2a0], 0xffffffff
cmovne edx, dword [rsp + 0x2a0]
mov dword [r13], edx
lea rax, [rsp + 0x2c0]
cmp rsi, rax
je 0x164ee553d
lea rdx, [rsp + 0x2c0]
cmp qword [rsp + 0x2d8], 7
cmova rdx, qword [rsp + 0x2c0]
mov r8, qword [rsp + 0x2d0]
mov rcx, rsi
call fcn.164e54c60
lea rcx, str.Reboot.txt
mov qword [rsp + 0xd0], rcx
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x164ee5550
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x150], 7
cmova rax, qword [rsp + 0x138]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0xd0], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x490]
call fcn.164f9f270
lea rcx, [rsp + 0x490]
cmp qword [rsp + 0x4a8], 7
cmova rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164ee55f1
test al, 0x10
jne 0x164ee55f1
mov al, 1
jmp 0x164ee55f3
xor al, al
mov byte [r15], al
lea rcx, str.SnxReboot.txt
mov qword [rsp + 0xd0], rcx
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x164ee5610
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x150], 7
cmova rax, qword [rsp + 0x138]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0xd0], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x490]
call fcn.164f9f270
lea rcx, [rsp + 0x490]
cmp qword [rsp + 0x4a8], 7
cmova rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164ee56b1
test al, 0x10
jne 0x164ee56b1
mov cl, 1
jmp 0x164ee56b3
xor cl, cl
mov rax, qword [rsp + 0x80]
mov byte [rax], cl
lea rax, str.FwReboot.txt
mov qword [rsp + 0xd0], rax
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x164ee56d0
mov qword [rsp + 0xd8], rdi
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x150], 7
cmova rax, qword [rsp + 0x138]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0xd0], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x490]
call fcn.164f9f270
lea rcx, [rsp + 0x490]
cmp qword [rsp + 0x4a8], 7
cmova rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x164ee5771
test al, 0x10
jne 0x164ee5771
mov al, 1
jmp 0x164ee5773
xor al, al
mov rcx, qword [rsp + 0x88]
mov byte [rcx], al
movzx eax, byte [rsp + 0x420]
mov rcx, qword [rsp + 0x90]
mov byte [rcx], al
lea rcx, [rsp + 0x490]
call fcn.164e54bf0
nop
lea rax, vtable.asw::instup::State.0
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x1d8]
call fcn.164ee3eb0
lea rcx, [rsp + 0x1b8]
call fcn.164e54bf0
lea rcx, [rsp + 0x198]
call fcn.164e54bf0
lea rcx, [rsp + 0x178]
call fcn.164e54bf0
lea rcx, [rsp + 0x158]
call fcn.164e54bf0
lea rcx, [rsp + 0x138]
call fcn.164e54bf0
lea rcx, [rsp + 0x118]
call fcn.164e54bf0
lea rcx, [rsp + 0xf8]
call fcn.164e54bf0
movzx eax, r14b
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.165016420
nop
int3