Function at 0x40cf7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.00533090
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov esi, 0x206
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x104c], ebx
mov dword [ebp - 0x1058], ebx
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push ebx
push eax
call fcn.00531ed0
add esp, 0x18
call fcn.0041ab0f
push eax
lea ecx, [ebp - 0x106c]
call fcn.00404ccb
call fcn.0041ab0f
push eax
lea ecx, [ebp - 0x105c]
call fcn.00404ccb
push str.Keyboard_LayoutPreload
mov esi, 0x560274
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00532980
push str.SystemCurrentControlSetControlKeyboard_Layouts_
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.00532980
add esp, 0x18
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x61c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40d2ca
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00531ed0
lea eax, [ebp - 0x824]
push str.znyWBSrf.ime
push eax
call fcn.005325d3
lea eax, [ebp - 0x824]
push eax
call fcn.005328b2
mov dword [ebp - 0x1060], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
xor esi, esi
call fcn.00531ed0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x1048], 1
mov dword [ebp - 0x1054], 0x104
call fcn.00531ed0
add esp, 0x30
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1048]
push eax
push esi
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
jmp 0x40d297
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xe3c], ax
lea eax, [ebp - 0xe3a]
push eax
inc ebx
call fcn.00531ed0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xe3c]
push str._s_s
push eax
call fcn.00532980
add esp, 0x1c
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0xe3c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.00531ed0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call fcn.00531ed0
add esp, 0x18
mov eax, 0x104
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x1068], eax
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x1048]
push eax
push 0
push str.Ime_File
push dword [ebp - 0x1058]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1048]
push eax
push 0
push str.Layout_text
push dword [ebp - 0x1058]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc34]
push eax
call fcn.005328b2
push dword [ebp - 0x1060]
push eax
call fcn.005351bb
add esp, 0xc
test eax, eax
je 0x40d2b7
cmp esi, 0x2710
jge 0x40d2be
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
inc esi
call fcn.00531ed0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x1048], 1
mov dword [ebp - 0x1054], 0x104
call fcn.00531ed0
add esp, 0x18
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1048]
push eax
push 0
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0x104c]
mov dword [ebp - 0x1050], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40d103
jmp 0x40d2be
mov dword [edi + 0xc], 1
push dword [ebp - 0x104c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x105c]
lea ecx, [ecx - 0x10]
call fcn.004058df
mov ecx, dword [ebp - 0x106c]
lea ecx, [ecx - 0x10]
call fcn.004058df
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret