Function at 0x140041e60
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x678]
sub rsp, 0x750
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400b1030]
xor rax, rsp
mov qword [rbp + 0x640], rax
mov r15, r8
mov rdi, rdx
mov rcx, rdx
call fcn.1400431d0
mov rbx, rax
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140036580
nop
mov r9, qword [rdi + 0x10]
inc r9
lea r8, [rbx + 1]
lea rdx, [rbp + 0x168]
mov rcx, rdi
call fcn.140036580
nop
lea rsi, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rsi, qword [rbp - 0x18]
mov ecx, 0x18
call fcn.1400562a4
mov rdi, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
test rax, rax
je 0x140041f18
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140055f90
mov qword [rdi], rax
jmp 0x140041f1b
mov rdi, rbx
test rdi, rdi
jne 0x140041f2b
mov ecx, 0x8007000e
call fcn.140055db0
int3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140041f91
mov rcx, qword [rdi]
test rcx, rcx
je 0x140041f72
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140041f84
call fcn.1400565a0
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.1400565a0
test sil, sil
je 0x1400420af
lea rsi, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rsi, qword [rbp - 0x18]
mov ecx, 0x18
call fcn.1400562a4
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140041fd7
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140055f90
mov qword [rdi], rax
jmp 0x140041fda
mov rdi, rbx
test rdi, rdi
jne 0x140041fea
mov ecx, 0x8007000e
call fcn.140055db0
int3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140042050
mov rcx, qword [rdi]
test rcx, rcx
je 0x140042031
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140042043
call fcn.1400565a0
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.1400565a0
test sil, sil
je 0x1400420af
lea rdx, str.iusl::WindowsRegistry::FindKeyWithUnknownPath
lea rcx, [rbp + 0x190]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 3
lea rdx, str.Couldnt_find__
mov rcx, rax
call fcn.140024590
mov rbx, rax
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.140024750
lea rdx, str.__in_registry.
mov rcx, rbx
call fcn.140024590
nop
lea rcx, [rbp + 0x190]
call fcn.140024130
jmp 0x140042826
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x430]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 0x104
mov dword [rsp + 0x60], ebx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x430]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140042826
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14004280e
mov r14d, ebx
lea r12, [0x1400b74d0]
mov dword [rsp + 0x7c], 0xff
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x230]
mov edx, r14d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140042676
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
cmp word [rbp + 0x230], ax
jne 0x1400421b0
mov r8, rbx
jmp 0x1400421cb
lea rax, [rbp + 0x230]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400421c0
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x60]
call fcn.1400225f0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x48]
call fcn.140023830
nop
mov r8, rax
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.140043320
nop
lea r8, [rbp + 0x168]
mov rdx, rax
lea rcx, [rbp + 0x108]
call fcn.140043380
nop
mov rax, qword [rbp + 0x40]
cmp rax, 0x10
jb 0x14004225f
inc rax
mov rcx, qword [rbp + 0x28]
cmp rax, 0x1000
jb 0x14004225a
test cl, 0x1f
jne 0x14004269e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042697
sub rcx, rax
cmp rcx, 8
jb 0x140042690
cmp rcx, 0x27
ja 0x140042689
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x38], rbx
mov byte [rbp + 0x28], 0
mov rax, qword [rbp + 0x60]
cmp rax, 0x10
jb 0x1400422bd
inc rax
mov rcx, qword [rbp + 0x48]
cmp rax, 0x1000
jb 0x1400422b8
test cl, 0x1f
jne 0x1400426ba
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400426b3
sub rcx, rax
cmp rcx, 8
jb 0x1400426ac
cmp rcx, 0x27
ja 0x1400426a5
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rbx
mov byte [rbp + 0x48], 0
lea rdx, [rbp + 0x108]
call fcn.140041ce0
test al, al
je 0x14004266a
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], rbx
mov byte [rbp + 8], 0
lea rcx, [rbp + 0x148]
call fcn.140041ca0
nop
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
cmp word [rbp + 0x230], 0
jne 0x14004231d
mov r8, rbx
jmp 0x14004233b
lea rax, [rbp + 0x230]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140042330
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x40]
call fcn.1400225f0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xe8]
call fcn.140023830
mov rdi, rax
lea r8, [0x140095880]
lea rdx, [rbp + 0x148]
lea rcx, [rbp + 0xc8]
call fcn.14002bbc0
nop
lea r8, [rbp - 0x18]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140043380
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.1400433d0
nop
lea r8, [0x140095880]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.1400345b0
nop
lea r8, [0x1400b7450]
mov rdx, rax
lea rcx, [rbp + 0x128]
call fcn.140043380
nop
mov rax, qword [rbp + 0x80]
cmp rax, 0x10
jb 0x14004241c
inc rax
mov rcx, qword [rbp + 0x68]
cmp rax, 0x1000
jb 0x140042417
test cl, 0x1f
jne 0x1400426d6
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400426cf
sub rcx, rax
cmp rcx, 8
jb 0x1400426c8
cmp rcx, 0x27
ja 0x1400426c1
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0x80], 0xf
mov qword [rbp + 0x78], rbx
mov byte [rbp + 0x68], 0
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x140042483
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x14004247e
test cl, 0x1f
jne 0x1400426f2
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400426eb
sub rcx, rax
cmp rcx, 8
jb 0x1400426e4
cmp rcx, 0x27
ja 0x1400426dd
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0xa0], 0xf
mov qword [rbp + 0x98], rbx
mov byte [rbp + 0x88], 0
mov rax, qword [rbp + 0xc0]
cmp rax, 0x10
jb 0x1400424f0
inc rax
mov rcx, qword [rbp + 0xa8]
cmp rax, 0x1000
jb 0x1400424eb
test cl, 0x1f
jne 0x14004270e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042707
sub rcx, rax
cmp rcx, 8
jb 0x140042700
cmp rcx, 0x27
ja 0x1400426f9
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0xc0], 0xf
mov qword [rbp + 0xb8], rbx
mov byte [rbp + 0xa8], 0
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14004255d
inc rax
mov rcx, qword [rbp + 0xc8]
cmp rax, 0x1000
jb 0x140042558
test cl, 0x1f
jne 0x14004272a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042723
sub rcx, rax
cmp rcx, 8
jb 0x14004271c
cmp rcx, 0x27
ja 0x140042715
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], rbx
mov byte [rbp + 0xc8], 0
mov rax, qword [rbp + 0x100]
cmp rax, 0x10
jb 0x1400425ca
inc rax
mov rcx, qword [rbp + 0xe8]
cmp rax, 0x1000
jb 0x1400425c5
test cl, 0x1f
jne 0x140042746
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004273f
sub rcx, rax
cmp rcx, 8
jb 0x140042738
cmp rcx, 0x27
ja 0x140042731
mov rcx, rax
call fcn.140056588
mov qword [rbp + 0x100], 0xf
mov qword [rbp + 0xf8], rbx
mov byte [rbp + 0xe8], 0
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x128]
call fcn.140042870
test eax, eax
jne 0x140042646
mov rdx, r12
cmp qword [0x1400b74e8], 0x10
cmovae rdx, qword [0x1400b74d0]
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rcx, qword [rbp + 8]
mov rdi, qword [0x1400b74e0]
mov r8, rdi
mov rsi, qword [rbp + 0x18]
cmp rsi, rdi
cmovb r8, rsi
test r8, r8
je 0x14004263b
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140042646
cmp rsi, rdi
jb 0x140042646
jbe 0x14004274d
lea rcx, [rbp + 0x128]
call fcn.140022470
nop
lea rcx, [rbp + 0x148]
call fcn.140022470
nop
lea rcx, [rbp + 8]
call fcn.140022470
nop
lea rcx, [rbp + 0x108]
call fcn.140022470
inc r14d
cmp r14d, dword [rsp + 0x60]
jae 0x14004280e
jmp 0x140042150
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rbp + 0x108]
cmp r15, rax
je 0x14004276f
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x108]
mov rcx, r15
call fcn.140022a60
lea rdx, str.iusl::WindowsRegistry::FindKeyWithUnknownPath
lea rcx, [rbp + 0x1e0]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 1
lea rdx, str.Found_matching_key:__
mov rcx, rax
call fcn.140024590
mov rdi, rax
mov rdx, r15
mov rcx, rax
call fcn.140024750
lea rdx, [0x140099938]
mov rcx, rdi
call fcn.140024590
nop
lea rcx, [rbp + 0x1e0]
call fcn.140024130
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x128]
call fcn.140022470
nop
lea rcx, [rbp + 0x148]
call fcn.140022470
nop
lea rcx, [rbp + 8]
call fcn.140022470
nop
lea rcx, [rbp + 0x108]
call fcn.140022470
jmp 0x14004282b
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 5
lea rcx, [rbp + 0x168]
call fcn.140022470
nop
lea rcx, [rbp - 0x18]
call fcn.140022470
mov eax, ebx
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.140056280
lea r11, [rsp + 0x750]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret