Function at 0x100133e4
Capabilities:
Get keyboard layout

Disassembly:
mov eax, 0x1013e6ca
call fcn.1013e250
sub esp, 0x84
and dword [ebp - 0x34], 0
push ebx
push esi
push edi
push 4
mov ebx, ecx
mov dword [ebp - 0x14], 1
pop esi
mov dword [ebp - 0x20], 3
lea ecx, [ebp - 0x64]
push esi
mov edi, edx
mov dword [ebp - 0x30], ebx
call fcn.10013ee8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
push 1
call fcn.10013ee8
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edx
jmp 0x10013441
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x64]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x10013435
mov dword [ebp - 0x18], edx
jmp 0x1001345b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 1
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x1001344b
mov eax, dword [ebp - 0x14]
mov ecx, 0xe3cf9575
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0x39f7747
cmp ecx, eax
sbb eax, eax
neg eax
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
jne 0x10013491
cmp dword [ebp - 0x14], edx
jne 0x10013491
mov ecx, edx
jmp 0x10013494
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x20]
imul eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], 0xfffffff0
cmp dword [ebp - 0x20], 0xffffffef
jge 0x10013657
mov ebx, 0xffff
mov dword [ebp - 0x1c], 0xfff6
lea ecx, [ebp - 0x58]
push 1
call fcn.10013ee8
mov byte [ebp - 4], 2
push 0xfffffffffffffffd
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x18], 0
jmp 0x100134f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx*4], 0xe1c2a91
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x100134e0
mov dword [ebp - 0x14], 0xffffffe2
jmp 0x1001362a
mov dword [ebp - 0x18], 5
lea ecx, [ebp - 0x40]
push esi
call fcn.10013ee8
mov dword [ebp - 0x24], 0
jmp 0x1001352b
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x40]
mov dword [eax + ecx*4], 0xfffffff8
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], esi
jl 0x1001351b
mov eax, dword [ebp - 0x14]
cmp ebx, eax
sbb eax, eax
neg eax
cmp eax, ebx
mov eax, dword [ebp - 0x1c]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp ecx, eax
setne dl
add edx, dword [ebp - 0x18]
neg edx
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
neg edx
sbb edx, edx
sub eax, 8
inc edx
cmp eax, edx
je 0x100135b3
mov dword [ebp - 0x1c], 0
jmp 0x100135a5
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x1001358d
push 0x1e31
push 0x5c1
push 0xbfd
push 0xfa1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x100135a2
push 0x206
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jle 0x10013569
cmp dword [ebp - 0x18], 0
je 0x1001361a
jmp 0x1001361f
mov dword [ebp - 0x28], 0x20be
xor edx, edx
mov dword [ebp - 0x2c], 0xfffffff6
mov dword [ebp - 0x24], 0xc894628a
mov dword [ebp - 0x28], 0xbf7d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp eax, ecx
setge dl
add edx, 0x7ba6da08
je 0x100135fd
cmp dword [ebp - 0x18], 0xd983a5c2
sbb eax, eax
neg eax
cmp eax, dword [ebp - 0x18]
jl 0x100135fd
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setl dl
xor ecx, ecx
cmp eax, edx
setge cl
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x4c]
dec dword [eax]
lea ecx, [ebp - 0x40]
call fcn.100144eb
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x11
je 0x10013502
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.100144eb
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xffffffef
jl 0x100134b3
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.100144eb
lea ecx, [ebp - 0x64]
call fcn.100144eb
and dword [ebp - 0x7c], 0
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 3
cmp esi, edi
jbe 0x100136ba
mov eax, esi
lea ecx, [ebp - 0x8c]
sub eax, edi
sar eax, 1
push eax
call fcn.10013eaf
jmp 0x100136b6
mov ecx, edi
call fcn.100128e4
movzx eax, ax
lea ecx, [ebp - 0x8c]
push eax
call fcn.10013e7e
add edi, 2
cmp edi, esi
jb 0x1001369d
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.10013e4f
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.10014448
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret