Function at 0x5f2824
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5f282c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5f2a7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x65a92c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x5f2a94
call fcn.00632564
test al, al
jne 0x5f2a58
mov eax, dword [0x65a92c]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x5f2a94
call fcn.00632ca4
push 0
call sub.user32.dll_GetForegroundWindow
call fcn.0063ab08
push eax
call sub.user32.dll_GetWindowThreadProcessId
push eax
call sub.user32.dll_GetKeyboardLayout
lea edx, [ebp - 0x1c]
call fcn.0063b544
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040ac64
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x5f2aac
call fcn.004059e0
lea edx, [ebp - 0x24]
mov eax, dword [0x65a970]
mov eax, dword [eax]
call fcn.0061cb98
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00639070
mov eax, dword [ebp - 0x20]
call fcn.0040c048
test al, al
jne 0x5f2a58
push 0
push 1
lea edx, [ebp - 0x2c]
mov eax, dword [0x65a970]
mov eax, dword [eax]
call fcn.0061cb98
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov edx, 0x5f2abc
call fcn.00639070
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x65a7a8]
mov eax, dword [eax]
mov edx, 0x5f2ad8
call fcn.00630e6c
test al, al
je 0x5f2a58
mov dl, 1
mov eax, dword [0x421ea8]
call fcn.00404718
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5f2a51
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [0x65a970]
mov eax, dword [eax]
call fcn.0061cb98
lea eax, [ebp - 0x30]
mov edx, 0x5f2abc
call fcn.00405994
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5f29bf
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 7
call fcn.0044f2d0
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov edx, 0x5f2b1c
call fcn.004059e0
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.00405af0
jne 0x5f29bb
mov dword [ebp - 0x10], ebx
jmp 0x5f29bf
inc ebx
dec esi
jne 0x5f297a
cmp dword [ebp - 0x10], 0xffffffff
jle 0x5f2a3b
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x5f25b4]
call fcn.00633488
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5f2a34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x65a3f4]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x5f2a03
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00485984
mov eax, dword [ebp - 0x14]
call fcn.006272f8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.005f2cf0
test al, al
je 0x5f2a1e
mov eax, dword [0x659af8]
mov eax, dword [eax]
call fcn.005eccf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2a3b
mov eax, dword [ebp - 0x14]
call fcn.00404748
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2a58
mov eax, dword [ebp - 0xc]
call fcn.00404748
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2a82
lea eax, [ebp - 0x3c]
mov edx, 0xa
call fcn.004056d0
lea eax, [ebp - 4]
call fcn.004056ac
ret