Function at 0x1400549b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov esi, edx
mov r14, rcx
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x104
call fcn.140093c00
lea rax, [rsp + 0x70]
xor r15d, r15d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x64], r15d
lea rdx, str.SOFTWAREMicrosoftWIMMountMounted_Images
mov dword [rsp + 0x60], r15d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140054a32
xor eax, eax
jmp 0x140054c67
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x318], rbx
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xd0]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x320], rdi
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov dword [rsp + 0x68], 0x104
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, r15d
lea rdi, [0x140157e50]
cmp dword [rsp + 0x60], ebx
jbe 0x140054c37
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x64]
mov qword [rsp + 0x30], r15
lea r8, [rbp - 0x68]
mov qword [rsp + 0x28], r15
mov edx, ebx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x64], 0x28
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140054c23
lea rax, [rbp - 0x68]
mov edx, 0x104
lea r9, str.SOFTWAREMicrosoftWIMMountMounted_Images_sWIM_Path
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp - 0x40]
call fcn.1400034e0
mov r9, rdi
mov byte [rbp + 0xc3], r15b
mov r8d, 1
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call fcn.140027c60
test eax, eax
je 0x140054b72
mov rdx, r14
mov rcx, rdi
call fcn.1400a5b5c
test eax, eax
jne 0x140054c23
lea rax, [rbp - 0x68]
mov edx, 0x104
lea r9, str.SOFTWAREMicrosoftWIMMountMounted_Images_sImage_Index
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp - 0x40]
call fcn.1400034e0
lea r9, [rsp + 0x6c]
mov byte [rbp + 0xc3], r15b
mov r8d, 4
mov dword [rsp + 0x20], 4
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call fcn.140027c60
test eax, eax
je 0x140054bcb
cmp dword [rsp + 0x6c], esi
jne 0x140054c23
lea rax, [rbp - 0x68]
mov byte [0x140157e50], r15b
lea r9, str.SOFTWAREMicrosoftWIMMountMounted_Images_sMount_Path
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp - 0x40]
mov r8, 0xffffffffffffffff
call fcn.1400034e0
mov r9, rdi
mov byte [rbp + 0xc3], r15b
mov r8d, 1
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call fcn.140027c60
test eax, eax
jne 0x140054c31
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140054ad0
jmp 0x140054c37
cmp ebx, dword [rsp + 0x60]
jb 0x140054c3e
mov byte [0x140157e50], r15b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x140157e50], r15b
mov rbx, qword [rsp + 0x318]
cmove rdi, r15
mov rax, rdi
mov rdi, qword [rsp + 0x320]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140092060
mov rsi, qword [rsp + 0x328]
add rsp, 0x2f0
pop r15
pop r14
pop rbp
ret