Function at 0x180037720
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 0x18003777e
mov rax, qword [rcx]
jmp 0x180037781
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, 0x5c
lea rdx, str.U09GVFdBUkVcV09XNjQzMk5vZGVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cVW5pbnN0YWxsXDM2MFNE
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 0x1800377db
mov rax, qword [rax]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
cmp byte [rax], 0
jne 0x1800377f5
mov r8, rbx
jmp 0x18003780a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180037800
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 0x18003787b
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x180037876
test cl, 0x1f
je 0x180037849
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180037858
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180037867
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180037873
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 0x1800378e2
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x1800378dd
test cl, 0x1f
je 0x1800378b0
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800378bf
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800378ce
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x1800378da
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 0x180037949
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x180037944
test cl, 0x1f
je 0x180037917
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180037926
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180037935
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180037941
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, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180037c1b
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 0x180037c0f
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp word [rbp], ax
jne 0x1800379f9
mov r8, rbx
jmp 0x180037a0c
lea rax, [rbp]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180037a01
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call fcn.180008a90
nop
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180037b54
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax], 0x22
jne 0x180037ac7
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 0x180037aa6
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180037a85
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 0x180037ac2
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180003e80
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180037b54
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax + r9*2 - 2], 0x22
jne 0x180037b54
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 0x180037b4a
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180037b29
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 0x180037bf2
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 0x180037bf2
cmp word [rbp + 0x210], ax
je 0x180037bdf
lea rax, [rbp + 0x210]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180037bd5
mov r8, rbx
lea rdx, [rbp + 0x210]
mov rcx, rdi
call fcn.180008a90
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180037c0f
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 0x180037c35
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