Function at 0x180038dd0
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 0x180038e2e
mov rax, qword [rcx]
jmp 0x180038e31
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, 0x68
lea rdx, str.U09GVFdBUkVcV09XNjQzMk5vZGVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cVW5pbnN0YWxsXOmHkeWxseWNqWjqw
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 0x180038e8b
mov rax, qword [rax]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
cmp byte [rax], 0
jne 0x180038ea5
mov r8, rbx
jmp 0x180038eba
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180038eb0
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 0x180038f2b
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x180038f26
test cl, 0x1f
je 0x180038ef9
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180038f08
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180038f17
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180038f23
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 0x180038f92
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x180038f8d
test cl, 0x1f
je 0x180038f60
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180038f6f
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180038f7e
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180038f8a
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 0x180038ff9
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x180038ff4
test cl, 0x1f
je 0x180038fc7
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180038fd6
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180038fe5
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180038ff1
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 0x1800392cb
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 0x1800392bf
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp word [rbp], ax
jne 0x1800390a9
mov r8, rbx
jmp 0x1800390bc
lea rax, [rbp]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800390b1
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call fcn.180008a90
nop
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180039204
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax], 0x22
jne 0x180039177
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 0x180039156
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180039135
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 0x180039172
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180003e80
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180039204
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax + r9*2 - 2], 0x22
jne 0x180039204
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 0x1800391fa
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800391d9
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 0x1800392a2
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 0x1800392a2
cmp word [rbp + 0x210], ax
je 0x18003928f
lea rax, [rbp + 0x210]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180039285
mov r8, rbx
lea rdx, [rbp + 0x210]
mov rcx, rdi
call fcn.180008a90
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800392bf
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 0x1800392e5
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