Function at 0x18003a310
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 0x18003a36e
mov rax, qword [rcx]
jmp 0x18003a371
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, 0x90
lea rdx, str.U09GVFdBUkVcV09XNjQzMk5vZGVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cVW5pbnN0YWxsXHtBOTg2MTg4My0zMUM1LTQzMjQtQkQ5QS1EQzk1MjdFRUI2NzV9X2lzMQ
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 0x18003a3cb
mov rax, qword [rax]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
cmp byte [rax], 0
jne 0x18003a3e5
mov r8, rbx
jmp 0x18003a3fa
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18003a3f0
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 0x18003a46b
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x18003a466
test cl, 0x1f
je 0x18003a439
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003a448
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003a457
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x18003a463
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 0x18003a4d2
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x18003a4cd
test cl, 0x1f
je 0x18003a4a0
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003a4af
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003a4be
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x18003a4ca
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 0x18003a539
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x18003a534
test cl, 0x1f
je 0x18003a507
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003a516
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003a525
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x18003a531
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 0x18003a80b
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 0x18003a7ff
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp word [rbp], ax
jne 0x18003a5e9
mov r8, rbx
jmp 0x18003a5fc
lea rax, [rbp]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18003a5f1
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call fcn.180008a90
nop
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x18003a744
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax], 0x22
jne 0x18003a6b7
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 0x18003a696
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x18003a675
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 0x18003a6b2
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180003e80
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x18003a744
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax + r9*2 - 2], 0x22
jne 0x18003a744
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 0x18003a73a
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x18003a719
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 0x18003a7e2
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 0x18003a7e2
cmp word [rbp + 0x210], ax
je 0x18003a7cf
lea rax, [rbp + 0x210]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18003a7c5
mov r8, rbx
lea rdx, [rbp + 0x210]
mov rcx, rdi
call fcn.180008a90
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x18003a7ff
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 0x18003a825
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