Function at 0x106b270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10da06b
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x115e76c]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x1c], 0
push 0x111d40c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x106b2eb
push 0x102
push 0x111d41c
call fcn.0100a6d0
test eax, eax
je 0x106b2eb
int3
push 0x111d454
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x106b439
call dword [ebp - 0x178]
mov word [ebp - 0x24], ax
movzx edx, word [ebp - 0x24]
and edx, 0x3ff
mov dword [ebp - 0x14], edx
movzx eax, word [ebp - 0x24]
sar eax, 0xa
mov dword [ebp - 0x17c], eax
movzx ecx, word [ebp - 0x17c]
shl ecx, 0xa
movzx edx, word [ebp - 0x14]
or ecx, edx
movzx eax, cx
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x168], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp - 0x14]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x168], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
push str.GetSystemDefaultUILanguage
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x106b434
call dword [ebp - 0x10]
mov word [ebp - 0x24], ax
movzx ecx, word [ebp - 0x24]
and ecx, 0x3ff
mov dword [ebp - 0x14], ecx
movzx edx, word [ebp - 0x24]
sar edx, 0xa
mov dword [ebp - 0x17c], edx
movzx eax, word [ebp - 0x17c]
shl eax, 0xa
movzx ecx, word [ebp - 0x14]
or eax, ecx
movzx edx, ax
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x168], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x168], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x106b65f
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
je 0x106b59c
mov dword [ebp - 0x180], 0
lea ecx, [ebp - 0x180]
push ecx
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push reloc.oledlg.dll_OleUIAddVerbMenuA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x106b597
mov dword [ebp - 0x18c], 0x10
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x188]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x106b58a
cmp dword [ebp - 0x188], 1
jne 0x106b58a
lea eax, [ebp - 0x1a0]
push eax
push 0x111d4b4
lea ecx, [ebp - 0x19c]
push ecx
call fcn.010a8b60
add esp, 0xc
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 1
jne 0x106b58a
mov dx, word [ebp - 0x1a0]
mov word [ebp - 0x24], dx
movzx eax, word [ebp - 0x24]
and eax, 0x3ff
mov dword [ebp - 0x14], eax
movzx ecx, word [ebp - 0x24]
sar ecx, 0xa
mov dword [ebp - 0x17c], ecx
movzx edx, word [ebp - 0x17c]
shl edx, 0xa
movzx eax, word [ebp - 0x14]
or edx, eax
movzx ecx, dx
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x168], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x168], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x106b65f
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
je 0x106b65f
mov word [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0x106b900
push 1
push 0x10
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
movzx ecx, word [ebp - 0x24]
test ecx, ecx
je 0x106b65f
movzx edx, word [ebp - 0x24]
and edx, 0x3ff
mov dword [ebp - 0x14], edx
movzx eax, word [ebp - 0x24]
sar eax, 0xa
mov dword [ebp - 0x17c], eax
movzx ecx, word [ebp - 0x17c]
shl ecx, 0xa
movzx edx, word [ebp - 0x14]
or ecx, edx
movzx eax, cx
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x168], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp - 0x14]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x168], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x168], 0x800
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x4f], 0
mov byte [ebp - 0x50], 0
push 0x105
lea edx, [ebp - 0x154]
push edx
push 0x1000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x106b6a5
xor eax, eax
jmp 0x106b7a8
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.010a0510
add esp, 0xc
mov dword [ebp - 0x44], 0x20
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], 0x3e8
mov dword [ebp - 0x28], 0x1000000
mov dword [ebp - 0x40], 0x88
push 0xffffffffffffffff
lea ecx, [ebp - 0x170]
call fcn.0106d200
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x170]
call fcn.0106d3b0
movzx eax, al
test eax, eax
je 0x106b70f
lea ecx, [ebp - 0x170]
call fcn.0106d480
mov dword [ebp - 0x1ac], 0
jmp 0x106b72a
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1c]
jge 0x106b786
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp + eax*4 - 0x168]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0106b7d0
add esp, 8
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
je 0x106b784
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.0106d390
mov eax, dword [ebp - 0x1b4]
jmp 0x106b7a8
jmp 0x106b71b
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.0106d390
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0109d5d0
mov esp, ebp
pop ebp
ret 4