Function at 0x1400b2a9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x300
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r12, rdx
mov rbp, rcx
and word [rsp + 0x30], 0
xor ebx, ebx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
lea rdx, str.GetUserDefaultUILanguage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b2b96
call rax
mov word [rsp + 0x30], ax
movzx edx, ax
mov ecx, edx
mov edi, 0x3ff
and ecx, edi
movzx ebx, cx
and dx, 0xfc00
movzx ecx, dx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x60], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x64], eax
mov ebx, 2
lea rdx, str.GetSystemDefaultUILanguage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b2cfc
call rax
mov word [rsp + 0x30], ax
movzx ecx, ax
mov eax, ecx
and eax, edi
movzx ebx, ax
and cx, 0xfc00
movzx ecx, cx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x68], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x6c], eax
mov ebx, 4
jmp 0x1400b2cfc
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x1400b2c81
and qword [rsp + 0x50], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b2cfc
mov dword [rsp + 0x58], 0x20
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400b2c74
cmp dword [rsp + 0x78], 1
jne 0x1400b2c74
lea r8, [rsp + 0x48]
lea rdx, [0x1400f4b6c]
lea rcx, [rsp + 0xc0]
call fcn.1400d1530
cmp eax, 1
jne 0x1400b2c74
mov eax, dword [rsp + 0x48]
mov word [rsp + 0x30], ax
movzx ecx, ax
mov eax, ecx
mov edi, 0x3ff
and eax, edi
movzx ebx, ax
and cx, 0xfc00
movzx ecx, cx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x60], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x64], eax
mov ebx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400b2cfc
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b2cfc
and word [rsp + 0x30], bx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [0x1400b2088]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
movzx r11d, word [rsp + 0x30]
test r11w, r11w
je 0x1400b2cfc
movzx ecx, r11w
mov eax, ecx
mov edi, 0x3ff
and eax, edi
movzx ebx, ax
and cx, 0xfc00
movzx ecx, cx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x60], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x64], eax
mov ebx, 2
cmp dword [0x140135a64], 0
jne 0x1400b2d13
movsxd rax, ebx
mov dword [rsp + rax*4 + 0x60], 0x800
add ebx, 1
and word [rsp + 0x2ea], 0
and word [rsp + 0x2e8], 0
mov r8d, 0x105
lea rdx, [rsp + 0xe0]
lea rsi, [0x140000000]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400b2d4e
xor eax, eax
jmp 0x1400b2ed0
mov edi, 0x38
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.1400cfef0
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa8], 0x3e8
mov qword [rsp + 0xb8], rsi
mov dword [rsp + 0x8c], 0x88
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x38]
call fcn.1400b20a0
nop
mov rdx, qword [0x140135a40]
test rdx, rdx
je 0x1400b2ddd
mov rax, qword [rsp + 0x38]
cmp rax, 0xffffffffffffffff
jne 0x1400b2e0c
lea rcx, [rsp + 0x88]
call rdx
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
setne cl
test cl, cl
je 0x1400b2e0c
jmp 0x1400b2de2
mov rax, qword [rsp + 0x38]
mov r8, qword [0x140135a50]
test r8, r8
je 0x1400b2e0c
cmp rax, 0xffffffffffffffff
je 0x1400b2e0c
cmp qword [rsp + 0x40], 0
jne 0x1400b2e0c
lea rdx, [rsp + 0x40]
mov rcx, rax
call r8
mov rax, qword [rsp + 0x38]
xor edi, edi
movsxd rbx, ebx
test rbx, rbx
jle 0x1400b2e89
mov r8d, dword [rsp + rdi*4 + 0x60]
mov rdx, r12
mov rcx, rbp
call fcn.1400b2640
mov rsi, rax
test rax, rax
jne 0x1400b2e3e
add rdi, 1
cmp rdi, rbx
jl 0x1400b2e16
mov rax, qword [rsp + 0x38]
jmp 0x1400b2e89
mov rax, qword [0x140135a48]
test rax, rax
je 0x1400b2e84
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400b2e84
mov r8, qword [0x140135a58]
test r8, r8
je 0x1400b2e82
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400b2e82
and qword [rsp + 0x40], 0
xor ecx, ecx
call r8
mov rax, qword [0x140135a48]
mov rcx, qword [rsp + 0x38]
call rax
mov rax, rsi
jmp 0x1400b2ed0
mov r8, qword [0x140135a48]
test r8, r8
je 0x1400b2ece
cmp rax, 0xffffffffffffffff
je 0x1400b2ece
mov r9, qword [0x140135a58]
test r9, r9
je 0x1400b2ec8
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400b2ec8
and qword [rsp + 0x40], 0
xor ecx, ecx
call r9
mov r8, qword [0x140135a48]
mov rax, qword [rsp + 0x38]
mov rcx, rax
call r8
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400cd6e0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret