Function at 0x100150d7
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006475c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001547c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 0x5db8
mov dword [ebp - 0x78], 0x10008368
cmp dword [ebp - 0x40], 0x5e9f
jle 0x100151c5
and dword [ebp - 0x24], 0
jmp 0x1001513f
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1d23
jge 0x100151c5
and dword [ebp - 0x38], 0
jmp 0x10015155
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x26a9
jge 0x100151c0
and dword [ebp - 0x34], 0
jmp 0x1001516b
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1cb8
jge 0x100151be
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
sar eax, cl
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea ecx, [ebp - 0xb8]
call fcn.1000db90
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
call fcn.1002fe47
push eax
call fcn.1004eea6
pop ecx
lea ecx, [ebp - 0xb8]
call fcn.1002fe3d
jmp 0x10015164
jmp 0x1001514e
jmp 0x10015138
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0x5a03
jge 0x100151e1
push dword [ebp - 0x78]
call fcn.1004eea6
pop ecx
jmp 0x100151fd
or dword [ebp - 4], 0xffffffff
jmp 0x10015207
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x48], 0x4373
mov dword [ebp - 0x64], 0x100083c8
cmp dword [ebp - 0x48], 0x441c
jle 0x100152c3
and dword [ebp - 0x3c], 0
jmp 0x10015235
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x2c15
jge 0x100152c3
and dword [ebp - 0x2c], 0
jmp 0x1001524f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x7441
jge 0x100152be
and dword [ebp - 0x18], 0
jmp 0x10015265
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3e04
jge 0x100152bc
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
lea ecx, [ebp - 0xd0]
call fcn.1000db90
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.1002fe47
push eax
call fcn.1004eea6
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.1002fe3d
jmp 0x1001525e
jmp 0x10015248
jmp 0x1001522e
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x100152f9
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x100152f4
push 0x1bd2
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x1001543b
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], 0x9b
mov dword [ebp - 0x90], 0x1000841c
cmp dword [ebp - 0x44], 0x235
jle 0x100153b3
and dword [ebp - 0x30], 0
jmp 0x1001532d
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x22ea
jge 0x100153b3
and dword [ebp - 0x1c], 0
jmp 0x10015343
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x705d
jge 0x100153ae
and dword [ebp - 0x20], 0
jmp 0x10015359
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xaa2
jge 0x100153ac
and dword [ebp - 0x28], 0
jmp 0x1001536f
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x1724
jge 0x100153aa
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
mov ecx, 0x1060e278
call fcn.1002fe67
jmp 0x10015368
jmp 0x10015352
jmp 0x1001533c
jmp 0x10015326
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x44], 0xffffffca
jge 0x100153d6
mov edx, dword [ebp - 0x90]
mov ecx, 0x1060e278
call fcn.10031911
jmp 0x100153f2
or dword [ebp - 4], 0xffffffff
jmp 0x100153fc
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1001541e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jge 0x1001543b
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x5c]
call fcn.1003001a
mov dword [eax], 0xcf5720e8
jmp 0x10015413
mov dword [ebp - 4], 4
cmp dword [ebp - 0x48], 0x422e
jge 0x10015454
push dword [ebp - 0x64]
call fcn.1004eea6
pop ecx
jmp 0x10015470
or dword [ebp - 4], 0xffffffff
jmp 0x1001547a
jmp 0x10015498
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push 0
call fcn.10015be3
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret