Function at 0x4f5c20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cdd2
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5d3070]
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
mov ebx, ecx
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.00431180
mov eax, dword [ebx]
lea ecx, [ebp - 0x440]
add esp, 4
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
push 0x32
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
call fcn.00402b20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x47c]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push ecx
cmovae eax, dword [ebp - 0x440]
push 0x20019
push 0
push eax
push 0x80000002
mov dword [ebp - 0x47c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4f5cdc
xor bl, bl
jmp 0x4f5fa6
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.005481a0
add esp, 0xc
mov dword [ebp - 0x424], 0x104
lea eax, [ebp - 0x478]
mov dword [ebp - 0x41c], 0
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4f5fa4
xor esi, esi
test eax, eax
je 0x4f5fa4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [eax + eax]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x428], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x47c]
call edi
test eax, eax
jne 0x4f5f97
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push 0x5af260
push eax
call fcn.00497b50
xor eax, eax
mov dword [ebp - 0x444], 7
add esp, 0xc
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b0]
push 0xb
push str.Layout_Text
mov dword [ebp - 0x49c], 7
mov dword [ebp - 0x4a0], eax
mov word [ebp - 0x4b0], ax
call fcn.00402b20
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x494]
call fcn.00406ee0
add esp, 4
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x4b0]
mov edx, eax
push ecx
mov ecx, 1
call fcn.004f5870
mov eax, dword [ebp - 0x480]
add esp, 8
cmp eax, 8
jb 0x4f5e7e
inc eax
push 2
push eax
push dword [ebp - 0x494]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x494], ax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x480], 7
mov dword [ebp - 0x484], 0
cmp eax, 8
jb 0x4f5ebc
inc eax
push 2
push eax
push dword [ebp - 0x4b0]
call fcn.00403190
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x4b4]
call fcn.00431140
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x498], eax
xor eax, eax
push ecx
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x480], 7
mov dword [ebp - 0x484], 0
mov word [ebp - 0x494], ax
call fcn.00407260
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.00430e80
mov eax, dword [ebp - 0x480]
cmp eax, 8
jb 0x4f5f3c
inc eax
push 2
push eax
push dword [ebp - 0x494]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x480], 7
mov word [ebp - 0x494], ax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x484], 0
cmp eax, 8
jb 0x4f5f76
inc eax
push 2
push eax
push dword [ebp - 0x4b0]
call fcn.00403190
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x444]
cmp eax, 8
jb 0x4f5f97
push 2
inc eax
push eax
push dword [ebp - 0x458]
call fcn.00403190
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x41c]
jb 0x4f5d80
mov bl, 1
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x4f5fc3
push 2
inc ecx
push ecx
push dword [ebp - 0x440]
call fcn.00403190
add esp, 0xc
mov al, bl
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.0053f778
mov esp, ebp
pop ebp
ret