Function at 0x180039320
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 0x18003937e
mov rax, qword [rcx]
jmp 0x180039381
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.U09GVFdBUkVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cVW5pbnN0YWxsXEtpbmdzb2Z0IEludGVybmV0IFNlY3VyaXR5
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 0x1800393db
mov rax, qword [rax]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
cmp byte [rax], 0
jne 0x1800393f5
mov r8, rbx
jmp 0x18003940a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180039400
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 0x18003947b
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x180039476
test cl, 0x1f
je 0x180039449
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180039458
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180039467
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180039473
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 0x1800394e2
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x1800394dd
test cl, 0x1f
je 0x1800394b0
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800394bf
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800394ce
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x1800394da
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 0x180039549
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x180039544
test cl, 0x1f
je 0x180039517
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180039526
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180039535
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180039541
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 0x18003981b
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 0x18003980f
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp word [rbp], ax
jne 0x1800395f9
mov r8, rbx
jmp 0x18003960c
lea rax, [rbp]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180039601
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call fcn.180008a90
nop
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180039754
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax], 0x22
jne 0x1800396c7
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 0x1800396a6
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180039685
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 0x1800396c2
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180003e80
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180039754
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp word [rax + r9*2 - 2], 0x22
jne 0x180039754
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 0x18003974a
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180039729
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 0x1800397f2
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 0x1800397f2
cmp word [rbp + 0x210], ax
je 0x1800397df
lea rax, [rbp + 0x210]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800397d5
mov r8, rbx
lea rdx, [rbp + 0x210]
mov rcx, rdi
call fcn.180008a90
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x18003980f
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 0x180039835
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