Function at 0x1002b0ea
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100807d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002b121
push 0x2462
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x1002b5dd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x88], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x90], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xa48bbca6
mov dword [ebp - 0xac], 0x611bc38
mov dword [ebp - 0x28], 0
jmp 0x1002b16c
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jge 0x1002b182
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xa4], 0xdc4b4e12
jmp 0x1002b165
mov dword [ebp - 0x14], 0
jmp 0x1002b192
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffe3
jle 0x1002b33e
mov dword [ebp - 0x18], 0x24cdb8fa
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0x6c], 0x7ea4
mov dword [ebp - 0x8c], 0xf15cc7c4
mov dword [ebp - 0x18], 1
jmp 0x1002b1ec
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1002b339
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002b21e
push 0
push 0x31b6
call fcn.10027c66
pop ecx
pop ecx
mov dword [ebp - 0x24], 1
jmp 0x1002b22e
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1002b334
mov dword [ebp - 0x20], 0x8e418a52
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0xa4]
sub eax, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], 1
jmp 0x1002b25f
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x1002b32f
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0xa4]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0x24], 0
je 0x1002b308
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x6c], eax
jle 0x1002b294
mov dword [ebp - 0x58], 1
jmp 0x1002b298
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0xa4]
cmp dword [ebp - 0x58], eax
jl 0x1002b2b0
mov dword [ebp - 0x78], 1
jmp 0x1002b2b4
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x78], eax
jle 0x1002b2c5
mov dword [ebp - 0x4c], 1
jmp 0x1002b2c9
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x64]
mov dword [ebp + eax - 0xc8], ecx
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x64], eax
jg 0x1002b2f5
mov dword [ebp - 0x54], 1
jmp 0x1002b2f9
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0xfffffff6
jne 0x1002b308
mov dword [ebp - 0x74], 1
jmp 0x1002b30c
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0x74]
jl 0x1002b320
mov dword [ebp - 0x5c], 1
jmp 0x1002b324
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
jmp 0x1002b258
jmp 0x1002b227
jmp 0x1002b1e5
jmp 0x1002b18b
mov dword [ebp - 0x14], 0
jmp 0x1002b34e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x18
jg 0x1002b36a
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002b368
push 1
call fcn.10027bdb
pop ecx
jmp 0x1002b347
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0x90]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + 0x10087844]
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
push 2
lea ecx, [ebp - 0x3c]
call fcn.10016f28
and dword [ebp - 4], 0
mov dword [ebp - 0x68], 0xb15a
mov dword [ebp - 0x9c], 0xee1d459
push 1
lea ecx, [ebp - 0xb8]
call fcn.10016f28
mov byte [ebp - 4], 1
mov dword [ebp - 0x80], 0xcbedfa90
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x789d
push 0x8c4
call fcn.10027dc8
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x1002b3f7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1002b413
push dword [ebp - 0x10]
lea ecx, [ebp - 0xb8]
call fcn.10016fc6
mov dword [eax], 0xc099
jmp 0x1002b3f0
mov dword [ebp - 0x10], 0
jmp 0x1002b423
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x1002b439
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xe0], 0xb347d170
jmp 0x1002b41c
push 0
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
mov eax, 0x5b8
test eax, eax
je 0x1002b491
push 1
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
cmp dword [eax], 0
je 0x1002b473
push 0
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
cmp dword [eax], 0
je 0x1002b473
mov dword [ebp - 0x44], 1
jmp 0x1002b477
and dword [ebp - 0x44], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jge 0x1002b491
mov dword [ebp - 0x48], 1
jmp 0x1002b495
and dword [ebp - 0x48], 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
mov eax, dword [eax]
cmp eax, dword [ebp - 0x48]
jne 0x1002b4af
mov dword [ebp - 0x50], 1
jmp 0x1002b4b3
and dword [ebp - 0x50], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
mov ecx, dword [ebp - 0x50]
add ecx, 0x279a20b2
cmp dword [eax], ecx
jne 0x1002b4d3
mov dword [ebp - 0x40], 1
jmp 0x1002b4d7
and dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax]
jle 0x1002b4f4
mov dword [ebp - 0x94], 1
jmp 0x1002b4fb
and dword [ebp - 0x94], 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
cmp dword [eax], 0
ja 0x1002b516
mov dword [ebp - 0xa8], 1
jmp 0x1002b51d
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0x9c], 0
je 0x1002b53f
push 0xfffffffffffffff7
pop eax
test eax, eax
je 0x1002b53f
mov dword [ebp - 0x60], 1
jmp 0x1002b543
and dword [ebp - 0x60], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.10016fc6
mov esi, dword [ebp - 0x60]
imul esi, dword [eax]
push 0
lea ecx, [ebp - 0xb8]
call fcn.10016fc6
imul esi, dword [eax]
test esi, esi
jae 0x1002b570
mov dword [ebp - 0x2c], 1
jmp 0x1002b574
and dword [ebp - 0x2c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp + eax - 0xe0], ecx
cmp dword [ebp - 0x2c], 0
jne 0x1002b596
cmp dword [ebp - 0x68], 0
jne 0x1002b596
and dword [ebp - 0x70], 0
jmp 0x1002b59d
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.10016faa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10016faa
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x1002b5dd
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret