Function at 0x1800361e0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x438]
sub rsp, 0x530
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbx
cmp qword [rcx + 0x18], 8
jb 0x18003623e
mov rax, qword [rcx]
jmp 0x180036241
mov rax, rdi
mov word [rax], bx
xor r8d, r8d
lea rdx, [0x18008e0a0]
call fcn.180008a90
mov dword [rsp + 0x30], 1
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], rbx
mov byte [rbp - 0x48], 0
mov r8d, 0x64
lea rdx, str.U09GVFdBUkVcV09XNjQzMk5vZGVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cVW5pbnN0YWxsXDIzNDVQQ1NhZmU
lea rcx, [rbp - 0x48]
call fcn.18000e1e0
nop
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.18000e3e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x18003629b
mov rax, qword [rax]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
cmp byte [rax], 0
jne 0x1800362b5
mov r8, rbx
jmp 0x1800362ca
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800362c0
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.18000e1e0
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x28]
call fcn.18003c7e0
nop
mov rax, qword [rbp - 0x50]
cmp rax, 0x10
jb 0x18003633b
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x180036336
test cl, 0x1f
je 0x180036309
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180036318
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180036327
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180036333
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
mov rax, qword [rbp - 0x70]
cmp rax, 0x10
jb 0x1800363a2
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x18003639d
test cl, 0x1f
je 0x180036370
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003637f
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003638e
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x18003639a
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], rbx
mov byte [rsp + 0x78], 0
mov rax, qword [rbp - 0x30]
cmp rax, 0x10
jb 0x180036409
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x180036404
test cl, 0x1f
je 0x1800363d7
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800363e6
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800363f5
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180036401
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], rbx
mov byte [rbp - 0x48], 0
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800366db
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.18005f7c0
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DisplayIcon
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800366cf
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp word [rbp], ax
jne 0x1800364b9
mov r8, rbx
jmp 0x1800364cc
lea rax, [rbp]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800364c1
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call fcn.180008a90
nop
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180036614
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax], 0x22
jne 0x180036587
or r9, 0xffffffffffffffff
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.180008990
mov rsi, rax
lea rax, [rsp + 0x58]
cmp rax, rsi
je 0x180036566
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180036545
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180003e80
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180013e10
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x180036582
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180003e80
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180036614
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax + r9*2 - 2], 0x22
jne 0x180036614
dec r9
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.180008990
mov rsi, rax
lea rax, [rsp + 0x58]
cmp rax, rsi
je 0x18003660a
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800365e9
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180003e80
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180013e10
nop
lea rcx, [rsp + 0x78]
call fcn.1800038f0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800366b2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call fcn.18005f7c0
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DisplayVersion
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800366b2
cmp word [rbp + 0x210], ax
je 0x18003669f
lea rax, [rbp + 0x210]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180036695
mov r8, rbx
lea rdx, [rbp + 0x210]
mov rcx, rdi
call fcn.180008a90
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800366cf
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180003e80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1800366f5
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.180003e80
mov rax, rdi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.18003ff90
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret