Function at 0x1400d6950
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
push r13
push r14
sub rsp, 0xb0
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r14, qword [rsp + 0x100]
mov rbp, r9
mov dword [rsp + 0x50], edx
mov rbx, r8
mov dword [rsp + 0x54], 0x800
mov r13, rcx
mov edi, 0xc000000d
test r9, r9
jne 0x1400d699f
mov eax, edi
jmp 0x1400d6b76
mov ecx, 0x800
mov qword [rsp + 0xe8], rsi
call fcn.14029981c
mov rsi, rax
test rax, rax
jne 0x1400d69c3
mov eax, 0xc000009a
jmp 0x1400d6b6e
mov qword [rsp + 0xa0], r15
call fcn.140024740
mov qword [rsp + 0x38], r13
lea rcx, str.SearchForCert_Looking_in__ws
mov qword [rsp + 0x30], rcx
lea r15, str.MbCommonSigVerify
mov qword [rsp + 0x28], r15
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_fileverify.cpp
mov r10, qword [rax]
lea rdx, str.SearchForCert
mov r9d, 0x6bd
mov dword [rsp + 0x20], 5
mov rcx, rax
call qword [r10 + 0x20]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400d6a88
call fcn.140024740
mov dword [rsp + 0x40], edi
lea rcx, str.Failed_to_open__ws____x
mov qword [rsp + 0x38], r13
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_fileverify.cpp
mov qword [rsp + 0x30], rcx
lea rdx, str.SearchForCert
mov r10, qword [rax]
mov r9d, 0x6c3
mov qword [rsp + 0x28], r15
mov rcx, rax
mov dword [rsp + 0x20], 5
call qword [r10 + 0x20]
mov rcx, rsi
call fcn.14028eb9c
jmp 0x1400d6b64
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, str.Blob
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x1400d6b06
mov rcx, rsi
call fcn.14028eb9c
mov ecx, dword [rsp + 0x54]
call fcn.14029981c
mov rcx, qword [rsp + 0x58]
mov rsi, rax
test rax, rax
jne 0x1400d6ae4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xc000009a
jmp 0x1400d6b66
lea rax, [rsp + 0x54]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.Blob
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d6b51
mov r8d, dword [rsp + 0x54]
mov rcx, rsi
xor edx, edx
mov qword [rsp + 0xa8], r12
nop dword [rax]
cmp dword [rcx], 0x20
je 0x1400d6b95
mov eax, dword [rcx + 8]
add rax, 0xc
add rcx, rax
lea rax, [rsi + r8]
cmp rcx, rax
ja 0x1400d6b49
cmp rcx, rsi
jb 0x1400d6b49
inc edx
cmp edx, 0xf
jl 0x1400d6b20
mov edi, 0xc000000d
mov r12, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.14028eb9c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov r15, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140282c10
add rsp, 0xb0
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
mov r12d, dword [rcx + 8]
lea rdi, [rcx + 0xc]
test r12d, r12d
je 0x1400d6b44
cmp rdi, rsi
jb 0x1400d6b44
mov eax, esi
sub eax, edi
add eax, r8d
cmp r12d, eax
ja 0x1400d6b44
mov ecx, 0x80
call fcn.14029981c
mov r15, rax
test rax, rax
je 0x1400d702b
xor edx, edx
mov r8d, 0x80
mov rcx, rax
call fcn.140286140
mov ecx, 0x568
call fcn.14029981c
mov rbx, rax
test rax, rax
je 0x1400d7019
call fcn.140024740
mov qword [rsp + 0x38], rbx
lea rcx, str.Allocate_Search_Certificate__p
mov qword [rsp + 0x30], rcx
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_fileverify.cpp
lea rcx, str.MbCommonSigVerify
mov r9d, 0x6fb
mov r10, qword [rax]
lea rdx, str.SearchForCert
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 5
call qword [r10 + 0x20]
xor eax, eax
xor edx, edx
mov r8d, 0x568
mov qword [rsp + 0x60], rax
mov rcx, rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
call fcn.140286140
lea rax, [rsp + 0x60]
mov dword [r15 + 0xc], r12d
mov qword [r15 + 0x40], rax
mov qword [r15], rdi
mov dword [r15 + 8], r12d
mov qword [r15 + 0x20], rbx
call fcn.140024740
mov qword [rsp + 0x38], r13
lea rcx, str.Parsing_cert_at__ws
mov qword [rsp + 0x30], rcx
lea r12, str.MbCommonSigVerify
mov qword [rsp + 0x28], r12
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_fileverify.cpp
mov r10, qword [rax]
lea rdx, str.SearchForCert
mov r9d, 0x703
mov dword [rsp + 0x20], 5
mov rcx, rax
call qword [r10 + 0x20]
lea rdx, [0x1400db9c0]
mov rcx, r15
call fcn.1400d95f0
mov edi, eax
call fcn.140024740
mov dword [rsp + 0x38], edi
lea rcx, str.Parser_returns__x
mov qword [rsp + 0x30], rcx
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_fileverify.cpp
mov qword [rsp + 0x28], r12
lea rdx, str.SearchForCert
mov r10, qword [rax]
mov r9d, 0x705
mov rcx, rax
mov dword [rsp + 0x20], 5
call qword [r10 + 0x20]
mov eax, dword [rsp + 0x50]
cmp eax, 1
jne 0x1400d6e8a
mov rdx, rbx
lea rcx, str.Searching_for_Root:
call fcn.1400e3c60
mov rdx, qword [rbx + 0x2e0]
mov rcx, qword [rbp + 0x2b0]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov r13, qword [rbx + 0x2b8]
mov rcx, qword [rbp + 0x288]
mov rdx, r13
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdi, qword [rbx + 0x2c0]
mov rcx, qword [rbp + 0x290]
mov rdx, rdi
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov r12, qword [rbx + 0x2c8]
mov rcx, qword [rbp + 0x298]
mov rdx, r12
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2d0]
mov rcx, qword [rbp + 0x2a0]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2d8]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2e0]
mov rcx, qword [rbx + 0x2b0]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rcx, qword [rbx + 0x288]
mov rdx, r13
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rcx, qword [rbx + 0x290]
mov rdx, rdi
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rcx, qword [rbx + 0x298]
mov rdx, r12
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2d0]
mov rcx, qword [rbx + 0x2a0]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2d8]
mov rcx, qword [rbx + 0x2a8]
call fcn.1400d9230
test al, al
jne 0x1400d7008
mov edi, 0xc000000d
test rbx, rbx
je 0x1400d701e
mov rcx, rbx
call fcn.1400d9360
mov rcx, r15
call fcn.14028eb9c
jmp 0x1400d6b49
cmp eax, 3
jne 0x1400d6fc0
test edi, edi
jne 0x1400d6e6c
mov rdi, qword [rbx + 0x2e0]
mov rcx, qword [rbp + 0x2b0]
mov rdx, rdi
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2b8]
mov rcx, qword [rbp + 0x288]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov r12, qword [rbx + 0x2c0]
mov rcx, qword [rbp + 0x290]
mov rdx, r12
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov r13, qword [rbx + 0x2c8]
mov rcx, qword [rbp + 0x298]
mov rdx, r13
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2d0]
mov rcx, qword [rbp + 0x2a0]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rdx, qword [rbx + 0x2d8]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400d9230
test al, al
je 0x1400d6e67
mov rcx, qword [rbx + 0x2b0]
mov rdx, rdi
call fcn.1400d9230
test al, al
je 0x1400d7008
mov rdx, qword [rbx + 0x2b8]
mov rcx, qword [rbx + 0x288]
call fcn.1400d9230
test al, al
je 0x1400d7008
mov rcx, qword [rbx + 0x290]
mov rdx, r12
call fcn.1400d9230
test al, al
je 0x1400d7008
mov rcx, qword [rbx + 0x298]
mov rdx, r13
call fcn.1400d9230
test al, al
je 0x1400d7008
mov rdx, qword [rbx + 0x2d0]
mov rcx, qword [rbx + 0x2a0]
call fcn.1400d9230
test al, al
je 0x1400d7008
mov rdx, qword [rbx + 0x2d8]
mov rcx, qword [rbx + 0x2a8]
call fcn.1400d9230
test al, al
jmp 0x1400d7002
test edi, edi
jne 0x1400d6e67
movzx eax, word [rbp + 0x250]
cmp word [rbx + 0x250], ax
jne 0x1400d6e67
movzx r8d, ax
lea rdx, [rbp + 0x252]
lea rcx, [rbx + 0x252]
movzx edi, ax
call fcn.140285fc0
test eax, eax
jne 0x1400d6ffe
mov eax, edi
jmp 0x1400d7000
xor eax, eax
cmp eax, edi
jne 0x1400d6e67
test r14, r14
je 0x1400d7012
mov qword [r14], rbx
xor ebx, ebx
xor edi, edi
jmp 0x1400d6e6c
mov edi, 0xc000009a
mov rcx, r15
call fcn.14028eb9c
jmp 0x1400d6b49
mov edi, 0xc000009a
jmp 0x1400d6b49