Function at 0x1029102
Capabilities:
Identify system language via api
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9d0]
sub esp, 0xa50
mov eax, dword [0x1067a40]
push ebx
mov dword [ebp + 0x9cc], eax
lea eax, [ebp - 0x48]
push eax
push 8
xor ebx, ebx
push ebx
push 0x10086f8
push 0x80000002
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1029425
cmp dword [ebp - 0x48], ebx
je 0x1029425
push esi
push edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
movzx eax, ax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x58], ebx
mov edi, 0x800
push ebx
jmp 0x102940a
lea eax, [ebp - 0x3c]
push eax
push 9
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10293f5
cmp dword [ebp - 0x3c], ebx
je 0x10293f5
lea eax, [ebp - 0x34]
push 0x10086e0
push eax
call fcn.01036dbd
test eax, eax
pop ecx
pop ecx
jne 0x10291d3
or dword [ebp - 0x6c], 0xffffffff
or dword [ebp - 0x68], 0xffffffff
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 0x10086d4
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102920b
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp + 0x7cb], bl
call fcn.010370cc
add esp, 0xc
mov dword [ebp - 0x5c], eax
jmp 0x102920e
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x50], ebx
push ebx
jmp 0x10293d9
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.010370cc
add esp, 0xc
cmp eax, dword [ebp - 0x5c]
jne 0x1029242
mov dword [ebp - 0x4c], 8
jmp 0x102925c
cmp eax, dword [ebp - 0x74]
jne 0x1029250
mov dword [ebp - 0x4c], 4
jmp 0x102925c
xor ecx, ecx
cmp eax, dword [ebp - 0x78]
sete cl
inc ecx
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x40]
push eax
push 9
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10293c4
cmp dword [ebp - 0x40], ebx
je 0x10293c4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x8cc]
push eax
push ebx
push ebx
push 0x10086c8
push dword [ebp - 0x40]
mov dword [ebp - 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10292af
mov byte [ebp + 0x9cb], bl
jmp 0x10292b5
mov byte [ebp + 0x8cc], bl
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x54], ebx
push ebx
jmp 0x10293a8
lea eax, [ebp - 0x44]
push eax
push 1
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1029393
cmp dword [ebp - 0x44], ebx
je 0x1029393
lea eax, [ebp + 0x8cc]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.01036dbd
test eax, eax
pop ecx
pop ecx
jne 0x1029310
or dword [ebp - 0x64], 0xffffffff
or dword [ebp - 0x60], 0xffffffff
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 0x10086bc
push dword [ebp - 0x44]
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1029387
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x7cc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x44]
mov byte [ebp + 0x7cb], bl
mov dword [ebp - 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102935f
mov byte [ebp + 0x8cb], bl
jmp 0x1029365
mov byte [ebp + 0x7cc], bl
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp + 0x7cc]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.01028ec0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], ebx
inc dword [ebp - 0x54]
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x40]
mov dword [ebp - 0x38], edi
call esi
test eax, eax
je 0x10292cd
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
inc dword [ebp - 0x50]
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], edi
call esi
test eax, eax
je 0x1029226
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], ebx
inc dword [ebp - 0x58]
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x48]
mov dword [ebp - 0x38], edi
call esi
test eax, eax
je 0x1029192
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp + 0x9cc]
pop ebx
call fcn.01032376
add ebp, 0x9d0
leave
ret