Function at 0x4060b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c988
mov eax, dword fs:[0]
push eax
mov eax, 0x2304
call fcn.00421ba0
mov eax, dword [0x466014]
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 - 0x22d0]
mov dword [ebp - 0x2308], connect
mov dword [ebp - 0x22c0], 0
mov dword [ebp - 0x22bc], 0xf
mov byte [ebp - 0x22d0], 0
call fcn.0041ba50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22b8]
push 8
push str.00000419
mov dword [ebp - 0x22a8], 0
mov dword [ebp - 0x22a4], 0xf
mov byte [ebp - 0x22b8], 0
call fcn.0041ba50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2258]
push 8
push str.00000422
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0xf
mov byte [ebp - 0x2258], 0
call fcn.0041ba50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22a0]
push 8
push str.00000423
mov dword [ebp - 0x2290], 0
mov dword [ebp - 0x228c], 0xf
mov byte [ebp - 0x22a0], 0
call fcn.0041ba50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2288]
push 8
push str.0000043f
mov dword [ebp - 0x2278], 0
mov dword [ebp - 0x2274], 0xf
mov byte [ebp - 0x2288], 0
call fcn.0041ba50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2308]
cmp dword [ebp - 0x22bc], 0x10
lea eax, [ebp - 0x22d0]
push ecx
cmovae eax, dword [ebp - 0x22d0]
push 0x20019
push 0
push eax
push dword [ebp - 0x2308]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [ebp - 0x22b8]
mov ebx, dword [ebp - 0x2258]
mov esi, dword [ebp - 0x22a0]
mov edx, dword [ebp - 0x2288]
test eax, eax
jne 0x4065f8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00437b40
add esp, 0xc
mov dword [ebp - 0x2240], 0x104
lea eax, [ebp - 0x2304]
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x221c], 0x1000
push eax
lea eax, [ebp - 0x22ec]
push eax
lea eax, [ebp - 0x22f0]
push eax
lea eax, [ebp - 0x22f4]
push eax
lea eax, [ebp - 0x2220]
push eax
lea eax, [ebp - 0x22f8]
push eax
lea eax, [ebp - 0x22fc]
push eax
lea eax, [ebp - 0x223c]
push eax
push 0
lea eax, [ebp - 0x2240]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2308]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x2220]
test eax, eax
je 0x4065e6
xor ebx, ebx
test eax, eax
je 0x4065e0
xor eax, eax
mov dword [ebp - 0x221c], 0x1000
push eax
push eax
push eax
push eax
mov word [ebp - 0x2218], ax
lea eax, [ebp - 0x221c]
push eax
lea eax, [ebp - 0x2218]
push eax
push ebx
push dword [ebp - 0x2308]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4065cd
mov dword [ebp - 0x2260], eax
mov word [ebp - 0x2270], ax
lea eax, [ebp - 0x2218]
mov dword [ebp - 0x225c], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406330
sub eax, edx
lea ecx, [ebp - 0x2270]
sar eax, 1
push eax
lea eax, [ebp - 0x2218]
push eax
call fcn.0041b770
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2270]
cmp dword [ebp - 0x225c], 8
mov eax, dword [ebp - 0x2260]
cmovae ecx, dword [ebp - 0x2270]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2270]
cmovae ecx, dword [ebp - 0x2270]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x22e8]
call fcn.0041bbb0
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x22e8]
mov dword [ebp - 0x230c], esp
mov ecx, esp
push eax
call fcn.0041b230
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x22d0]
mov ecx, esp
push eax
call fcn.0041b230
mov edx, connect
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2238]
call fcn.00405de0
cmp dword [ebp - 0x22a4], 0x10
lea eax, [ebp - 0x22b8]
push dword [ebp - 0x22a8]
mov esi, dword [ebp - 0x2238]
lea ecx, [ebp - 0x2238]
mov edx, dword [ebp - 0x2228]
cmovae eax, edi
mov edi, dword [ebp - 0x2224]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.0041cec0
add esp, 0x38
test al, al
jne 0x4064c2
cmp dword [ebp - 0x2244], 0x10
lea eax, [ebp - 0x2258]
push dword [ebp - 0x2248]
cmovae eax, dword [ebp - 0x2258]
lea ecx, [ebp - 0x2238]
mov edx, dword [ebp - 0x2228]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.0041cec0
add esp, 8
test al, al
jne 0x4064c2
cmp dword [ebp - 0x228c], 0x10
lea eax, [ebp - 0x22a0]
push dword [ebp - 0x2290]
cmovae eax, dword [ebp - 0x22a0]
lea ecx, [ebp - 0x2238]
mov edx, dword [ebp - 0x2228]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.0041cec0
add esp, 8
test al, al
jne 0x4064c2
cmp dword [ebp - 0x2274], 0x10
lea eax, [ebp - 0x2288]
push dword [ebp - 0x2278]
cmovae eax, dword [ebp - 0x2288]
lea ecx, [ebp - 0x2238]
mov edx, dword [ebp - 0x2228]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.0041cec0
add esp, 8
test al, al
je 0x4064e1
push dword [ebp - 0x2308]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2224]
mov esi, dword [ebp - 0x2238]
mov byte [0x46a46d], 1
cmp edi, 0x10
jb 0x40650f
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x406505
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push edi
push esi
call fcn.004210b3
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x22d4]
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0xf
mov byte [ebp - 0x2238], 0
cmp edx, 0x10
jb 0x406568
mov ecx, dword [ebp - 0x22e8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40655e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push edx
push ecx
call fcn.004210b3
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x225c]
mov dword [ebp - 0x22d8], 0
mov dword [ebp - 0x22d4], 0xf
mov byte [ebp - 0x22e8], 0
cmp edx, 8
jb 0x4065c7
mov ecx, dword [ebp - 0x2270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4065bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push edx
push ecx
call fcn.004210b3
add esp, 8
mov edi, dword [ebp - 0x22b8]
inc ebx
cmp ebx, dword [ebp - 0x2220]
jb 0x4062d3
mov esi, dword [ebp - 0x22a0]
mov ebx, dword [ebp - 0x2258]
push dword [ebp - 0x2308]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2288]
mov eax, dword [ebp - 0x2274]
cmp eax, 0x10
jb 0x40662e
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x406624
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push ecx
push edx
call fcn.004210b3
add esp, 8
mov eax, dword [ebp - 0x228c]
cmp eax, 0x10
jb 0x406664
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40665a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push ecx
push esi
call fcn.004210b3
add esp, 8
mov eax, dword [ebp - 0x2244]
cmp eax, 0x10
jb 0x40669a
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x406690
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push ecx
push ebx
call fcn.004210b3
add esp, 8
mov eax, dword [ebp - 0x22a4]
cmp eax, 0x10
jb 0x4066cc
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4066c2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push ecx
push edi
call fcn.004210b3
add esp, 8
mov edx, dword [ebp - 0x22bc]
cmp edx, 0x10
jb 0x406702
mov ecx, dword [ebp - 0x22d0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671e
push edx
push ecx
call fcn.004210b3
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.00420a41
mov esp, ebp
pop ebp
ret
call fcn.0043a6ba
int3