Function at 0x10016aab
Capabilities:
Get keyboard layout

Disassembly:
mov eax, 0x1013e8bf
call fcn.1013e250
sub esp, 0x70
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
push esi
mov dword [ebp - 0x14], 0x5a136951
mov esi, ecx
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], ebx
jmp 0x10016ae2
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x24], 0x8ec0ae97
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 1
jl 0x10016ad4
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jl 0x10016b67
mov dword [ebp - 0x28], 0xbf0ddd9c
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x24], ebx
jne 0x10016b1d
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x24], ebx
jne 0x10016b1d
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x24], ebx
jne 0x10016b1d
mov edi, ebx
jmp 0x10016b20
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setne dl
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add eax, 9
add ecx, eax
mov eax, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp + eax*4 - 0x24], edi
mov eax, dword [ebp - 0x20]
imul eax, ecx
xor ecx, ecx
cmp edi, eax
sete cl
mov dword [ebp - 0x20], ecx
dec dword [ebp - 0x14]
jns 0x10016af0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push 0x20
pop edi
mov dword [ebp - 4], ebx
mov ecx, esi
push edi
mov dword [ebp - 0x30], 1
call fcn.10013eaf
mov eax, dword [0x110e411c]
test al, 1
jne 0x10016bc0
xor ecx, ecx
inc ecx
or eax, ecx
mov dword [0x110e411c], eax
push 0x5c6b
mov dword [ebp - 4], ecx
call fcn.10019cfd
mov word [0x110e4124], ax
mov byte [ebp - 4], bl
mov eax, dword [0x110e411c]
pop ecx
test al, 2
jne 0x10016be5
push 2
pop ecx
or eax, ecx
mov dword [0x110e411c], eax
push 0x1ac0b
mov dword [ebp - 4], ecx
call fcn.10019cfd
pop ecx
mov word [0x110e4118], ax
mov byte [ebp - 4], bl
push 3
pop ebx
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x20], ebx
push 4
call fcn.10013ee8
push 1
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.10013ee8
xor ebx, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], ebx
jmp 0x10016c20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x10016c14
xor edx, edx
mov dword [ebp - 0x18], ebx
inc edx
jmp 0x10016c3a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x10016c2e
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 0x10016c6d
mov ecx, ebx
cmp dword [ebp - 0x14], ebx
je 0x10016c6f
mov ecx, edx
mov eax, dword [ebp - 0x20]
imul eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], 0xfffffff0
cmp dword [ebp - 0x20], 0xffffffef
jge 0x10016e22
mov edi, 0xffff
mov dword [ebp - 0x1c], 0xfff6
lea ecx, [ebp - 0x5c]
push edx
call fcn.10013ee8
mov byte [ebp - 4], 5
push 0xfffffffffffffffd
pop eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], ebx
jmp 0x10016cc6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 0xe1c2a91
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x10016cb6
mov dword [ebp - 0x14], 0xffffffe2
jmp 0x10016df6
mov dword [ebp - 0x18], 5
lea ecx, [ebp - 0x44]
push 4
call fcn.10013ee8
mov dword [ebp - 0x28], ebx
jmp 0x10016cfe
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0xfffffff8
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 4
jl 0x10016cee
mov eax, dword [ebp - 0x14]
cmp edi, eax
sbb eax, eax
neg eax
cmp eax, edi
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 0x10016d7f
mov dword [ebp - 0x1c], ebx
jmp 0x10016d73
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10016d5c
push 0x1e31
push 0x5c1
push 0xbfd
push 0xfa1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10016d70
push 0x206
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], ebx
jle 0x10016d39
cmp dword [ebp - 0x18], ebx
je 0x10016de6
jmp 0x10016deb
mov dword [ebp - 0x2c], 0x20be
xor edx, edx
mov dword [ebp - 0x34], 0xfffffff6
mov dword [ebp - 0x28], 0xc894628a
mov dword [ebp - 0x2c], 0xbf7d
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
setge dl
add edx, 0x7ba6da08
je 0x10016dc9
cmp dword [ebp - 0x18], 0xd983a5c2
sbb eax, eax
neg eax
cmp eax, dword [ebp - 0x18]
jl 0x10016dc9
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 - 0x70], ecx
mov eax, dword [ebp - 0x50]
dec dword [eax]
lea ecx, [ebp - 0x44]
call fcn.100144eb
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x11
je 0x10016cd8
mov dword [ebp - 0x78], ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.100144eb
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xffffffef
push 1
pop edx
jl 0x10016c8e
push 0x20
pop edi
lea ecx, [ebp - 0x50]
call fcn.100144eb
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.100144eb
push 0x1a
pop ebx
call fcn.10015ef6
push 0x24
xor edx, edx
pop ecx
div ecx
mov eax, edx
cmp eax, ebx
jge 0x10016e53
movzx edx, word [0x110e4124]
jmp 0x10016e5d
cdq
idiv ebx
movzx eax, word [0x110e4118]
add edx, eax
mov ecx, esi
push edx
call fcn.10013e7e
dec edi
jne 0x10016e38
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret