Function at 0x406a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f4fd
mov eax, dword fs:[0]
push eax
mov eax, 0x12ec
call fcn.0042b620
mov eax, dword [0x482024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x17
push str.Keyboard_LayoutPreload
lea ecx, [ebp - 0x12b8]
mov dword [ebp - 0x12f0], connect
mov dword [ebp - 0x12a8], 0
mov dword [ebp - 0x12a4], 0xf
mov byte [ebp - 0x12b8], 0
call fcn.00424030
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12a0]
push 8
push str.00000419
mov dword [ebp - 0x1290], 0
mov dword [ebp - 0x128c], 0xf
mov byte [ebp - 0x12a0], 0
call fcn.00424030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1258]
push 8
push str.00000422
mov dword [ebp - 0x1248], 0
mov dword [ebp - 0x1244], 0xf
mov byte [ebp - 0x1258], 0
call fcn.00424030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1288]
push 8
push str.00000423
mov dword [ebp - 0x1278], 0
mov dword [ebp - 0x1274], 0xf
mov byte [ebp - 0x1288], 0
call fcn.00424030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1270]
push 8
push str.0000043f
mov dword [ebp - 0x1260], 0
mov dword [ebp - 0x125c], 0xf
mov byte [ebp - 0x1270], 0
call fcn.00424030
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x12f0]
cmp dword [ebp - 0x12a4], 0x10
lea eax, [ebp - 0x12b8]
push ecx
cmovae eax, dword [ebp - 0x12b8]
push 0x20019
push 0
push eax
push dword [ebp - 0x12f0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [ebp - 0x12a0]
mov ebx, dword [ebp - 0x1258]
mov esi, dword [ebp - 0x1288]
mov edx, dword [ebp - 0x1270]
test eax, eax
jne 0x406ea1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004415a0
add esp, 0xc
mov dword [ebp - 0x1240], 0x104
lea eax, [ebp - 0x12ec]
mov dword [ebp - 0x123c], 0
mov dword [ebp - 0x121c], 0x1000
push eax
lea eax, [ebp - 0x12d4]
push eax
lea eax, [ebp - 0x12d8]
push eax
lea eax, [ebp - 0x12dc]
push eax
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x12e0]
push eax
lea eax, [ebp - 0x12e4]
push eax
lea eax, [ebp - 0x123c]
push eax
push 0
lea eax, [ebp - 0x1240]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x12f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x1220]
test eax, eax
je 0x406e8f
xor ebx, ebx
test eax, eax
je 0x406e89
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x121c]
mov dword [ebp - 0x121c], 0x1000
push eax
lea eax, [ebp - 0x1218]
mov byte [ebp - 0x1218], 0
push eax
push ebx
push dword [ebp - 0x12f0]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x406e76
mov dword [ebp - 0x12c0], eax
mov byte [ebp - 0x12d0], al
lea eax, [ebp - 0x1218]
mov dword [ebp - 0x12bc], 0xf
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c90
sub eax, edx
lea ecx, [ebp - 0x12d0]
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.00424030
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x12d0]
mov dword [ebp - 0x12f4], esp
mov ecx, esp
push eax
call fcn.00423100
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x12b8]
mov ecx, esp
push eax
call fcn.00423100
mov edx, connect
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1238]
call fcn.004065f0
cmp dword [ebp - 0x128c], 0x10
lea eax, [ebp - 0x12a0]
push dword [ebp - 0x1290]
mov esi, dword [ebp - 0x1238]
lea ecx, [ebp - 0x1238]
mov edx, dword [ebp - 0x1228]
cmovae eax, edi
mov edi, dword [ebp - 0x1224]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.00425cb0
add esp, 0x38
test al, al
jne 0x406de0
cmp dword [ebp - 0x1244], 0x10
lea eax, [ebp - 0x1258]
push dword [ebp - 0x1248]
cmovae eax, dword [ebp - 0x1258]
lea ecx, [ebp - 0x1238]
mov edx, dword [ebp - 0x1228]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.00425cb0
add esp, 8
test al, al
jne 0x406de0
cmp dword [ebp - 0x1274], 0x10
lea eax, [ebp - 0x1288]
push dword [ebp - 0x1278]
cmovae eax, dword [ebp - 0x1288]
lea ecx, [ebp - 0x1238]
mov edx, dword [ebp - 0x1228]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.00425cb0
add esp, 8
test al, al
jne 0x406de0
cmp dword [ebp - 0x125c], 0x10
lea eax, [ebp - 0x1270]
push dword [ebp - 0x1260]
cmovae eax, dword [ebp - 0x1270]
lea ecx, [ebp - 0x1238]
mov edx, dword [ebp - 0x1228]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.00425cb0
add esp, 8
test al, al
je 0x406de7
mov byte [0x486a05], 1
cmp edi, 0x10
jb 0x406e17
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x406e0d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push ecx
push esi
call fcn.0042aa8a
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x12bc]
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x1224], 0xf
mov byte [ebp - 0x1238], 0
cmp edx, 0x10
jb 0x406e70
mov ecx, dword [ebp - 0x12d0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406e66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push edx
push ecx
call fcn.0042aa8a
add esp, 8
mov edi, dword [ebp - 0x12a0]
inc ebx
cmp ebx, dword [ebp - 0x1220]
jb 0x406c33
mov esi, dword [ebp - 0x1288]
mov ebx, dword [ebp - 0x1258]
push dword [ebp - 0x12f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1270]
mov eax, dword [ebp - 0x125c]
cmp eax, 0x10
jb 0x406ed7
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x406ecd
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push ecx
push edx
call fcn.0042aa8a
add esp, 8
mov eax, dword [ebp - 0x1274]
cmp eax, 0x10
jb 0x406f0d
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x406f03
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push ecx
push esi
call fcn.0042aa8a
add esp, 8
mov eax, dword [ebp - 0x1244]
cmp eax, 0x10
jb 0x406f43
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x406f39
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push ecx
push ebx
call fcn.0042aa8a
add esp, 8
mov eax, dword [ebp - 0x128c]
cmp eax, 0x10
jb 0x406f75
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x406f6b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push ecx
push edi
call fcn.0042aa8a
add esp, 8
mov edx, dword [ebp - 0x12a4]
cmp edx, 0x10
jb 0x406fab
mov ecx, dword [ebp - 0x12b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406fa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fc7
push edx
push ecx
call fcn.0042aa8a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a413
mov esp, ebp
pop ebp
ret
call fcn.004458bc
int3