Function at 0x1002a2a7
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008856b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002ad99
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x34], 0x5cd53bc6
mov dword [ebp - 0x14], 0
jmp 0x1002a2fb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x1002a311
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x8c], 0xfff8
jmp 0x1002a2f4
mov dword [ebp - 0x14], 0
jmp 0x1002a321
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x1002a334
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x7c], 0x14a02569
jmp 0x1002a31a
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x7c], 0
jmp 0x1002a359
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x7c]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x7c], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x7c], 1
jge 0x1002a37d
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x7c]
mov dword [ebp + eax*4 - 0x8c], 0x51ad
jmp 0x1002a344
mov dword [ebp - 0x34], 0
jmp 0x1002a38d
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jg 0x1002a44d
mov dword [ebp - 0x44], 0
jmp 0x1002a3a7
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
jge 0x1002a3bd
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x118], 0x6b87d0fa
jmp 0x1002a3a0
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x7c], 0x1328f6c7
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x118], 0
jmp 0x1002a3f9
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x118]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x118], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x118], 0
jg 0x1002a448
mov dword [ebp - 0x11c], 0x6ce4a6f4
push 1
push 0x419e
push 0x52b
push 0x6f08
push 0x31ab
push 0x3751
call fcn.10029fe1
add esp, 0x18
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp + eax*4 - 0x8c]
mov dword [ebp - 0x11c], eax
jmp 0x1002a3de
jmp 0x1002a386
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe4], eax
push 2
lea ecx, [ebp - 0x70]
call fcn.10017f97
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0xfffffff6
mov dword [ebp - 0xfc], 3
mov dword [ebp - 0x134], 0xaa23
mov dword [ebp - 0xd0], 0xffffffff
mov dword [ebp - 0x18], 0
jmp 0x1002a49f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1002a4b5
push dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
call fcn.10018004
and dword [eax], 0
jmp 0x1002a498
mov dword [ebp - 0x18], 0
jmp 0x1002a4c5
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x1002a4db
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x190], 0
jmp 0x1002a4be
mov dword [ebp - 0x1c], 0
jmp 0x1002a4eb
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jg 0x1002a694
mov dword [ebp - 0x14c], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x70]
call fcn.10018004
cmp dword [eax], 8
jb 0x1002a51b
mov dword [ebp - 0x104], 1
jmp 0x1002a522
and dword [ebp - 0x104], 0
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x190], 0x7f37c04c
mov dword [ebp - 0xfc], 0x7f37c04c
mov eax, dword [ebp - 0xfc]
cmp dword [ebp - 0x104], eax
jl 0x1002a557
mov dword [ebp - 0xec], 1
jmp 0x1002a55e
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x168], eax
mov eax, 0x8ea2c39d
test eax, eax
jne 0x1002a58b
mov eax, 0x11fb8eb5
test eax, eax
jne 0x1002a58b
cmp dword [ebp - 0x134], 0
jne 0x1002a58b
and dword [ebp - 0x13c], 0
jmp 0x1002a595
mov dword [ebp - 0x13c], 1
push 1
lea ecx, [ebp - 0x70]
call fcn.10018004
cmp dword [eax], 5
jle 0x1002a5b0
mov dword [ebp - 0x144], 1
jmp 0x1002a5b7
and dword [ebp - 0x144], 0
push 1
lea ecx, [ebp - 0x70]
call fcn.10018004
push 0
lea ecx, [ebp - 0x70]
call fcn.10018004
push 1
lea ecx, [ebp - 0x70]
call fcn.10018004
push 0
lea ecx, [ebp - 0x70]
call fcn.10018004
cmp dword [eax], 0x5f992db7
je 0x1002a5f7
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x70]
call fcn.10018004
cmp dword [eax], 0
je 0x1002a5fb
cmp dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x1002a61c
push 1
lea ecx, [ebp - 0x70]
call fcn.10018004
cmp dword [eax], 0
je 0x1002a61c
mov dword [ebp - 0x10c], 1
jmp 0x1002a623
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xd0], eax
mov esi, dword [ebp - 0xd0]
push 1
lea ecx, [ebp - 0x70]
call fcn.10018004
cmp esi, dword [eax]
je 0x1002a64f
mov dword [ebp - 0xf4], 1
jmp 0x1002a656
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0xec]
imul eax, dword [ebp - 0xf4]
test eax, eax
je 0x1002a67c
mov eax, 0xed14
test eax, eax
je 0x1002a67c
mov dword [ebp - 0x90], 1
jmp 0x1002a683
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14c], eax
jmp 0x1002a4e4
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x1002a6a8
push 1
call fcn.1002a1e5
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10017fff
mov eax, dword [ebp - 0x110]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x58], 0x2aa61fc2
mov dword [ebp - 0x17c], 0xc1da7bc9
mov dword [ebp - 0x54], 0xfdb696
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x80], 0xfffffff8
mov dword [ebp - 0xf0], 0x8e55a441
mov dword [ebp - 0x3c], 0x2549
mov dword [ebp - 0xd8], 0x3818
mov dword [ebp - 0x148], 0xdf493ab7
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x38], 0
jmp 0x1002a738
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
jge 0x1002a74b
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x60], 0xfffffffd
jmp 0x1002a731
cmp dword [ebp - 0x24], 0x1891f782
jg 0x1002a760
mov dword [ebp - 0xb0], 1
jmp 0x1002a767
and dword [ebp - 0xb0], 0
or eax, 0xffffffff
je 0x1002a818
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x58]
cmp eax, 6
jae 0x1002a787
mov dword [ebp - 0x98], 1
jmp 0x1002a78e
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xd8]
cmp eax, 0xffff
jbe 0x1002a7c1
mov dword [ebp - 0xa0], 1
jmp 0x1002a7c8
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x160], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x60], 5
jae 0x1002a7fc
mov dword [ebp - 0xf8], 1
jmp 0x1002a803
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 0
je 0x1002a818
mov dword [ebp - 0xa8], 1
jmp 0x1002a81f
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0xfffffffc
jle 0x1002a834
mov dword [ebp - 0xe0], 1
jmp 0x1002a83b
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xb0], eax
jge 0x1002a85b
mov dword [ebp - 0x108], 1
jmp 0x1002a862
and dword [ebp - 0x108], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x60]
imul eax, dword [ebp - 0x108]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x148], 0xffffffff
jl 0x1002a891
cmp dword [ebp - 0x3c], 0
je 0x1002a891
mov dword [ebp - 0xb8], 1
jmp 0x1002a898
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xb8], eax
jg 0x1002a8af
mov dword [ebp - 0xe8], 1
jmp 0x1002a8b6
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xe8], eax
jne 0x1002a8cd
mov dword [ebp - 0x12c], 1
jmp 0x1002a8d4
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x24], 0xb36352b7
jbe 0x1002a8f2
mov dword [ebp - 0xc0], 1
jmp 0x1002a8f9
and dword [ebp - 0xc0], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x60]
imul eax, dword [ebp - 0xc0]
imul eax, dword [ebp - 0x54]
cmp eax, 0x764fe605
jg 0x1002a921
mov dword [ebp - 0x100], 1
jmp 0x1002a928
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0xf0]
cmp eax, dword [ebp - 0x100]
jg 0x1002a942
mov dword [ebp - 0xc8], 1
jmp 0x1002a949
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc8], eax
jl 0x1002a961
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x60], 0
je 0x1002a976
mov eax, 0x5841ec3d
test eax, eax
je 0x1002a976
mov dword [ebp - 0x128], 1
jmp 0x1002a97d
and dword [ebp - 0x128], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x60]
sub eax, 4
cmp eax, dword [ebp - 0x24]
jne 0x1002a99b
mov dword [ebp - 0x140], 1
jmp 0x1002a9a2
and dword [ebp - 0x140], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x60]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0xf0], 0x77d
jg 0x1002a9d3
mov dword [ebp - 0x88], 1
jmp 0x1002a9da
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x94], 7
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x94], eax
jne 0x1002aa04
mov dword [ebp - 0x9c], 1
jmp 0x1002aa0b
and dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0x9b64a474
jbe 0x1002aa23
mov dword [ebp - 0xa4], 1
jmp 0x1002aa2a
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
neg eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x60], eax
mov eax, dword [ebp - 0xac]
cmp dword [eax + 4], 0
jbe 0x1002ad97
mov dword [ebp - 0x30], 0x462d5e48
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x30], 0xffffffe5
jmp 0x1002aa6d
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffec
je 0x1002aa86
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x1d]
push eax
push 1
call fcn.1002a209
pop ecx
pop ecx
jmp 0x1002aa66
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xe4]
add ecx, dword [eax]
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x84]
cmp dword [eax], 0
jbe 0x1002ad97
mov dword [ebp - 0xc4], 0xffffffff
push 3
lea ecx, [ebp - 0x50]
call fcn.10017f97
mov dword [ebp - 4], 1
mov dword [ebp - 0x74], 0xfffffff9
mov dword [ebp - 0x2c], 0x34ea
mov dword [ebp - 0x10], 0
jmp 0x1002aaeb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x1002ab04
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10018004
mov dword [eax], 0x452a
jmp 0x1002aae4
mov dword [ebp - 0x10], 0
jmp 0x1002ab14
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x1002ab2a
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x158], 3
jmp 0x1002ab0d
mov dword [ebp - 0x10], 0
jmp 0x1002ab3a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1002ab50
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x138], 0
jmp 0x1002ab33
push 1
lea ecx, [ebp - 0x50]
call fcn.10018004
cmp dword [eax], 0
jge 0x1002ab6b
mov dword [ebp - 0xb4], 1
jmp 0x1002ab72
and dword [ebp - 0xb4], 0
cmp dword [ebp - 0xc4], 0
je 0x1002ab8f
push 2
lea ecx, [ebp - 0x50]
call fcn.10018004
push 1
lea ecx, [ebp - 0x50]
call fcn.10018004
push 2
lea ecx, [ebp - 0x50]
call fcn.10018004
mov esi, eax
push 1
lea ecx, [ebp - 0x50]
call fcn.10018004
mov ecx, dword [esi]
sub ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp - 0x74]
neg eax
mov dword [ebp - 0xbc], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xbc]
mov dword [ebp + eax - 0x158], ecx
mov esi, dword [ebp - 0xb4]
add esi, dword [ebp - 0xbc]
push 1
lea ecx, [ebp - 0x50]
call fcn.10018004
sub esi, dword [eax]
push 2
lea ecx, [ebp - 0x50]
call fcn.10018004
cmp esi, dword [eax]
jg 0x1002abfc
mov dword [ebp - 0x150], 1
jmp 0x1002ac03
and dword [ebp - 0x150], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x74], 0
je 0x1002ac27
mov eax, 0x1dbdae4
test eax, eax
je 0x1002ac27
mov dword [ebp - 0x64], 1
jmp 0x1002ac2b
and dword [ebp - 0x64], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x64]
mov dword [ebp + eax - 0x138], ecx
push 1
lea ecx, [ebp - 0x50]
call fcn.10018004
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax]
jg 0x1002ac58
mov dword [ebp - 0xcc], 1
jmp 0x1002ac5f
and dword [ebp - 0xcc], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10018004
mov ecx, dword [ebp - 0xcc]
cmp ecx, dword [eax]
jle 0x1002ac7f
mov dword [ebp - 0xd4], 1
jmp 0x1002ac86
and dword [ebp - 0xd4], 0
push 1
lea ecx, [ebp - 0x50]
call fcn.10018004
mov esi, dword [ebp - 0xd4]
add esi, dword [eax]
push 0
lea ecx, [ebp - 0x50]
call fcn.10018004
add esi, dword [eax]
neg esi
je 0x1002acc4
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x1002acc2
push 0
push 0x5476
call fcn.1002e9f4
pop ecx
pop ecx
jmp 0x1002ad16
mov dword [ebp - 0x180], 0x5950cfdf
mov dword [ebp - 0x16c], 0xb6bd0d42
mov dword [ebp - 0x40], 0
jmp 0x1002ace8
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 4
jge 0x1002acfe
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x1a0], 0xfffffffd
jmp 0x1002ace1
push 0x6fb3
push 1
lea eax, [ebp - 0x2c]
push eax
push 0x2577
call fcn.1002a251
add esp, 0x10
mov dword [ebp - 0x2c], 0
jmp 0x1002ad26
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jg 0x1002ad67
mov dword [ebp - 0x120], 0xfffffffa
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + eax*4 - 0x158], 0xd36fbc6a
jb 0x1002ad52
mov dword [ebp - 0xdc], 1
jmp 0x1002ad59
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x120], eax
jmp 0x1002ad1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10017fff
mov eax, dword [ebp - 0x124]
push dword [eax]
push 0
push dword [ebp - 0xe4]
lea eax, [ebp - 0x84]
push eax
call fcn.1002bda5
add esp, 0x10
jmp 0x1002aaa3
jmp 0x1002ada4
push 0x73d
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret