Function at 0x2e0969fe
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x24]
push ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x224], eax
call fcn.2e0cef49
test al, 4
jne 0x2e096a5c
xor eax, eax
mov word [esi], bx
inc eax
jmp 0x2e096e5f
and eax, 2
mov dword [ebp - 0x20c], eax
lea eax, [ebp + 0xc]
push eax
push eax
mov eax, dword [ebp - 0x208]
push dword [eax]
xor ebx, ebx
push dword [ebp + 0xc]
call fcn.2e0cf256
mov esi, eax
push esi
call fcn.2e07ce30
test eax, eax
je 0x2e096a8e
push esi
call fcn.2e096380
mov esi, dword [ebp - 0x208]
push dword [esi]
call fcn.2e07ce30
test eax, eax
je 0x2e096aaf
push dword [esi]
call fcn.2e096380
test eax, eax
jne 0x2e096aaf
inc eax
xor esi, esi
jmp 0x2e096ab3
xor esi, esi
xor eax, eax
mov dword [ebp - 0x22c], 1
cmp eax, esi
je 0x2e096b54
mov esi, dword [edi + 4]
push esi
push dword [edi]
call fcn.2e07ecc2
mov ecx, esi
sub ecx, eax
mov edx, 0xff
cmp ecx, edx
jle 0x2e096adf
mov ecx, edx
mov dword [ebp - 0x224], edx
cmp esi, eax
jne 0x2e096afe
push 0x20
pop eax
mov word [ebp - 0x204], ax
xor eax, eax
mov word [ebp - 0x202], ax
jmp 0x2e096b30
mov eax, dword [edi + 8]
lea edx, [eax - 0xff]
sub esi, ecx
cmp esi, edx
jle 0x2e096b0f
mov edx, esi
push 0
push 0
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
push edx
push dword [edi]
call fcn.2e09ff4a
xor eax, eax
mov word [ebp - 6], ax
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x208]
movzx eax, word [eax]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.2e0964f2
jmp 0x2e096e59
cmp dword [ebp - 0x20c], esi
jne 0x2e096c3d
cmp word [ebp + 0x10], si
je 0x2e096b85
cmp word [ebp + 0xc], si
je 0x2e096b85
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.2e0c0719
neg eax
sbb eax, eax
inc eax
jne 0x2e096c6d
mov edi, dword [ebp - 0x228]
cmp dword [edi], esi
jg 0x2e096df1
cmp word [ebp + 0xc], si
je 0x2e096dee
push dword [ebp + 0xc]
call fcn.2e096259
test eax, eax
jne 0x2e096dee
mov eax, 0xfffc
cmp word [ebp + 0xc], ax
je 0x2e096dee
cmp word [ebp + 0xc], 0x3d
je 0x2e096dee
cmp word [ebp + 0xc], 0x3e
je 0x2e096dee
cmp word [ebp + 0xc], 0x3c
je 0x2e096dee
mov ebx, dword [ebp - 0x208]
push dword [ebx]
push dword [ebp + 0xc]
call fcn.2e0ceec7
cmp eax, esi
je 0x2e096d6c
test al, 0x20
jne 0x2e096dd2
test al, 4
jne 0x2e096dee
test al, 8
jne 0x2e096dd2
cmp dword [ebp - 0x20c], esi
je 0x2e096c50
test al, 1
je 0x2e096c21
test al, 0x10
jne 0x2e096dd2
shr eax, 1
xor ecx, ecx
and eax, 1
cmp dword [ebp - 0x20c], esi
setne cl
xor ebx, ebx
cmp ecx, eax
setne bl
jmp 0x2e096df1
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp - 0x228]
cmp dword [eax], esi
jmp 0x2e096b8d
test al, 2
je 0x2e096c21
test al, 0x10
je 0x2e096c21
xor ebx, ebx
xor eax, eax
cmp ebx, esi
setne al
lea eax, [eax + eax - 1]
add dword [edi], eax
cmp ebx, esi
je 0x2e096ccb
xor esi, esi
cmp word [ebp + 0x10], si
je 0x2e096ccb
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x2e096c83
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.2e0cf256
mov esi, eax
mov eax, dword [ebp - 0x208]
push dword [eax]
call fcn.2e07ce30
push esi
mov edi, eax
call fcn.2e07ce30
cmp eax, edi
je 0x2e096ccb
push esi
call fcn.2e096380
test eax, eax
jne 0x2e096ccb
mov edi, dword [ebp - 0x208]
push dword [edi]
call fcn.2e096380
test eax, eax
jne 0x2e096ccb
mov dword [edi], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x208]
push dword [eax]
call fcn.2e0ced56
cmp dword [ebp - 0x20c], 0
je 0x2e096e3e
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 0xc
jne 0x2e096e2a
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.2e0ced56
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x22c], 2
test ebx, ebx
je 0x2e096e15
mov cx, word [ebp - 0x214]
mov word [eax], cx
mov ecx, 0xa0
jmp 0x2e096e24
cmp dword [ebp - 0x20c], esi
je 0x2e096d80
mov eax, dword [ebp - 0x224]
cmp dword [eax], esi
je 0x2e096d84
jmp 0x2e096db6
cmp dword [edi], esi
jne 0x2e096dd6
cmp word [ebp + 0xc], si
je 0x2e096dae
cmp word [ebp + 0x10], si
je 0x2e096dae
push dword [ebp + 0x10]
call fcn.2e0bd4a3
test al, 0x10
jne 0x2e096dae
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.2e0c0719
test eax, eax
jne 0x2e096dee
cmp dword [ebp - 0x20c], esi
je 0x2e096dd6
mov eax, 0xa0
cmp word [ebp + 0xc], ax
jne 0x2e096dd6
mov ax, word [ebx]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xc
jne 0x2e096ddd
xor ebx, ebx
jmp 0x2e096df1
cmp word [ebp + 0xc], 0x20
jbe 0x2e096de9
push dword [ebp + 0xc]
call fcn.2e09634d
test eax, eax
je 0x2e096dd2
xor ebx, ebx
inc ebx
jmp 0x2e096df1
or ebx, 0xffffffff
cmp dword [ebp - 0x20c], esi
je 0x2e096c5a
mov eax, dword [ebp - 0x224]
xor ecx, ecx
cmp ebx, esi
setne cl
lea ecx, [ecx + ecx - 1]
add dword [eax], ecx
jmp 0x2e096c67
mov ecx, 0xa0
mov word [eax], cx
mov cx, word [ebp - 0x210]
mov word [eax + 2], cx
jmp 0x2e096e59
movzx eax, word [ebp - 0x214]
test ebx, ebx
jne 0x2e096e50
movzx eax, word [ebp - 0x210]
jmp 0x2e096e50
movzx eax, word [ebp - 0x220]
test ebx, ebx
jne 0x2e096e50
movzx eax, word [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
mov word [ecx], ax
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e01bfc6
leave
ret 0x24