Function at 0x1400491f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push r13
push r14
push r15
sub rsp, 0x500
mov qword [r11 - 0x2e8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
lea rsi, [0x1400031a0]
mov qword [rsp + 0x58], rsi
lea r15, [0x1400033b0]
mov qword [rsp + 0x60], r15
lea r12, [0x140003180]
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], 0x3e4
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
xor ebx, ebx
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rbx + 0x78]
lea rcx, [r11 - 0x498]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.140052e50
nop
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
cmp qword [0x140154b00], rbx
jne 0x140049496
lea ecx, [rbx + 0x20]
call fcn.14005d6dc
test rax, rax
je 0x140049509
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov dword [rax + 0x18], ebx
lea rcx, [0x140001b70]
mov qword [rax], rcx
mov qword [0x140154b00], rax
test rax, rax
je 0x1400627fc
lea r14, [0x140003588]
mov qword [rsp + 0x20], r14
lea r13, [0x1400035a0]
mov r9, r13
lea r8, [0x140002e98]
mov edx, 0x100
lea rcx, [rsp + 0x2f0]
call fcn.14004af20
mov edi, eax
mov dword [rsp + 0x118], eax
test eax, eax
js 0x140062860
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x2f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1400628c1
xor r14b, r14b
mov r13d, ebx
test r14b, r14b
jne 0x140049496
mov dword [rsp + 0x50], 0x100
lea rax, [rsp + 0x240]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x2f0]
mov edx, r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
jne 0x140049486
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x48]
call fcn.140049530
mov edi, eax
mov dword [rsp + 0x118], eax
test eax, eax
js 0x1400629d1
mov rsi, qword [0x140154b00]
movsxd rdi, dword [rsi + 0x10]
lea r12d, [rdi + 1]
mov ecx, dword [rsi + 0x14]
test r12d, r12d
jle 0x140062a63
cmp edi, ecx
jne 0x140049452
cmp edi, 0x3fffffff
jg 0x140062a63
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x140062a63
test ecx, ecx
mov r15d, 1
je 0x140049429
lea r15d, [rdi + rdi]
movsxd rdx, r15d
shl rdx, 3
mov rcx, qword [rsi + 8]
call qword [sym.imp.msvcrt.dll_realloc]
test rax, rax
je 0x140062a5c
mov dword [rsi + 0x14], r15d
mov qword [rsi + 8], rax
lea r15, [0x1400033b0]
mov dword [rsi + 0x10], r12d
mov rax, qword [rsi + 8]
lea rdx, [rax + rdi*8]
test rdx, rdx
je 0x14004946b
mov rax, qword [rsp + 0x40]
mov qword [rdx], rax
mov qword [rsp + 0x40], rbx
lea rsi, [0x1400031a0]
lea r12, [0x140003180]
inc r13d
jmp 0x140049363
cmp eax, 0x103
jne 0x140062939
mov r14b, 1
jmp 0x14004947e
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400494ae
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x140062b05
cmp dword [rsp + 0x118], 0
jl 0x140062b87
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140062c0d
lea rcx, [rsp + 0x110]
call fcn.140050f50
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
mov rax, rbx
jmp 0x1400492db
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], 0x3f7
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [0x140014718]
mov r8d, 0x8007000e
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.140101d5c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], 0x3fd
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [0x140010120]
mov r8d, edi
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.1401027cc
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], 0x406
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
test edi, edi
jle 0x140062913
movzx edi, di
or edi, 0x80070000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
lea r9, [0x1400152d0]
mov r8d, edi
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.1401027cc
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], 0x443
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
test edi, edi
jle 0x14006298b
movzx edi, di
or edi, 0x80070000
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x30], rax
lea rax, [0x140003588]
mov qword [rsp + 0x28], rax
lea rax, [0x1400035a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400153a0]
mov r8d, edi
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.1401027cc
mov qword [rsp + 0x248], rsi
mov qword [rsp + 0x250], r15
mov qword [rsp + 0x258], r12
mov dword [rsp + 0x260], 0x427
mov dword [rsp + 0x264], 1
mov dword [rsp + 0x268], 0xff
mov dword [rsp + 0x2e8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x270]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x2f0]
lea r8, [0x140015330]
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x110]
call fcn.1400510b0
mov dword [rsp + 0x118], ebx
jmp 0x14004947e
lea r15, [0x1400033b0]
lea rax, [0x1400031a0]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], r15
lea rax, [0x140003180]
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x198], 0x434
mov dword [rsp + 0x19c], 1
mov dword [rsp + 0x1a0], 0xff
mov dword [rsp + 0x220], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x1a8]
call sub.msvcrt.dll_memset
lea r9, [0x140014ea0]
mov r8d, 0x8007000e
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x110]
call fcn.140101d5c
nop
lea r12, [0x140003180]
lea r15, [0x1400033b0]
lea rsi, [0x1400031a0]
jmp 0x140049496
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x188], r15
mov qword [rsp + 0x190], r12
mov dword [rsp + 0x198], 0x450
mov dword [rsp + 0x19c], 1
mov dword [rsp + 0x1a0], 0xff
mov dword [rsp + 0x220], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x1a8]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, [0x1400153f0]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x110]
call fcn.1400510b0
nop
jmp 0x1400494ae
call fcn.140056800
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x188], r15
mov qword [rsp + 0x190], r12
mov dword [rsp + 0x198], 0x457
mov dword [rsp + 0x19c], 1
mov dword [rsp + 0x1a0], 0xff
mov dword [rsp + 0x220], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x1a8]
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x118]
mov dword [rsp + 0x20], r8d
lea r9, [0x140015450]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x110]
call fcn.140101d5c
nop
mov rcx, rbx
call fcn.140056cd0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
nop
jmp 0x1400494ca