Function at 0x407e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov qword [rsp + 0x248], 0xfffffffffffffffe
mov rax, qword [0x006835c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov word [rsp + 0x50], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x1e8], 0
mov dword [rsp + 0x1d8], 0
mov dword [rsp + 0x48], 0
lea rcx, [0x0059b498]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x407e99
mov edx, 0x102
lea rcx, [0x0059b4a8]
call fcn.00422700
test eax, eax
je 0x407e99
int3
lea rdx, [0x0059b4e0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x1e0], rax
cmp qword [rsp + 0x1e0], 0
je 0x408019
call qword [rsp + 0x1e0]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x50]
sar eax, 0xa
mov dword [rsp + 0x1e8], eax
movzx eax, word [rsp + 0x1e8]
shl eax, 0xa
movzx ecx, word [rsp + 0x38]
or eax, ecx
movzx eax, ax
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
lea rdx, str.GetSystemDefaultUILanguage
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x408014
call qword [rsp + 0x30]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x50]
sar eax, 0xa
mov dword [rsp + 0x1e8], eax
movzx eax, word [rsp + 0x1e8]
shl eax, 0xa
movzx ecx, word [rsp + 0x38]
or eax, ecx
movzx eax, ax
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
jmp 0x4082a7
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
test eax, eax
je 0x4081b8
mov qword [rsp + 0x1f0], 0
lea rax, [rsp + 0x1f0]
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_RegOpenKeyExA]
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
jne 0x4081b3
mov dword [rsp + 0x200], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0x200]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1fc]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
jne 0x4081a5
cmp dword [rsp + 0x1fc], 1
jne 0x4081a5
lea r8, [rsp + 0x218]
lea rdx, [0x0059b424]
lea rcx, [rsp + 0x208]
call fcn.00556180
mov dword [rsp + 0x21c], eax
cmp dword [rsp + 0x21c], 1
jne 0x4081a5
movzx eax, word [rsp + 0x218]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x50]
sar eax, 0xa
mov dword [rsp + 0x1e8], eax
movzx eax, word [rsp + 0x1e8]
shl eax, 0xa
movzx ecx, word [rsp + 0x38]
or eax, ecx
movzx eax, ax
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4082a7
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x220], rax
cmp qword [rsp + 0x220], 0
je 0x4082a7
mov word [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x004085f0]
mov r8d, 1
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
movzx eax, word [rsp + 0x50]
test eax, eax
je 0x4082a7
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x50]
sar eax, 0xa
mov dword [rsp + 0x1e8], eax
movzx eax, word [rsp + 0x1e8]
shl eax, 0xa
movzx ecx, word [rsp + 0x38]
or eax, ecx
movzx eax, ax
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x1d8], eax
mov ecx, dword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x1b0], eax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
movsxd rax, dword [rsp + 0x48]
mov dword [rsp + rax*4 + 0x1b0], 0x800
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x1a5], 0
mov byte [rsp + reloc.OLEAUT32.dll_OleTranslateColor], 0
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
lea rcx, [0x00400000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x4082ff
xor eax, eax
jmp 0x408425
mov r8d, 0x38
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.00554fe0
mov dword [rsp + 0x58], 0x38
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], 0x3e8
lea rax, [0x00400000]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x5c], 0x88
mov rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x1c8]
call fcn.0040a710
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x1c8]
call fcn.0040a920
movzx eax, al
test eax, eax
je 0x408381
lea rcx, [rsp + 0x1c8]
call fcn.0040aa20
mov dword [rsp + 0x228], 0
jmp 0x40839f
mov eax, dword [rsp + 0x228]
add eax, 1
mov dword [rsp + 0x228], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x228], eax
jge 0x408404
movsxd rax, dword [rsp + 0x228]
mov edx, dword [rsp + rax*4 + 0x1b0]
mov rcx, qword [rsp + 0x270]
call fcn.00408470
mov qword [rsp + 0x230], rax
cmp qword [rsp + 0x230], 0
je 0x408402
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x238], rax
lea rcx, [rsp + 0x1c8]
call fcn.0040a900
mov rax, qword [rsp + 0x238]
jmp 0x408425
jmp 0x40838e
mov qword [rsp + 0x240], 0
lea rcx, [rsp + 0x1c8]
call fcn.0040a900
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.0054ec60
add rsp, 0x268
ret