Function at 0x1001ab86
Capabilities:
Get keyboard layout

Disassembly:
push 0x128
mov eax, 0x100227cf
call fcn.1001fdbd
mov ebx, ecx
mov dword [ebp - 0x130], ebx
cmp byte [0x100655f1], 0
jne 0x1001aca5
push 0x30
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x108], esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
cmp dword [ebp - 0xfc], edi
je 0x1001aca5
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
cmp eax, esi
jne 0x1001aca5
test ebx, ebx
je 0x1001acab
xor ebx, ebx
push 0x48
lea eax, [ebp - 0xd8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], ebx
xor eax, eax
lea ecx, [ebp - 0xd8]
mov word [ebp - 0x124], ax
mov edi, ebx
call fcn.1001ae85
test eax, eax
js 0x1001ac60
xor eax, eax
mov dword [ebp - 0x128], ebx
mov edx, 0x1000865c
mov word [ebp - 0x124], ax
lea ecx, [ebp - 0xd0]
call fcn.1001acbf
test eax, eax
je 0x10027993
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0xd8]
push edi
push dword [ebp - 0x124]
lea ecx, [ebp - 0x90]
push dword [ebp - 0x128]
push eax
call fcn.1001acd5
push ebx
push 0x80
lea eax, [ebp - 0x90]
push eax
push ebx
push dword [0x1000918c]
push dword [0x10009188]
call dword [sym.imp.ntdll.dll_RtlPublishWnfStateData]
call fcn.1001fd6c
ret
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x130], eax
jmp 0x1001ac07
mov dword [ebp - 0x10c], ebx
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], ebx
push eax
push 0x10008d58
push 1
push ebx
push 0x10008e68
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
js 0x10027c05
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x134]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x10066528]
call esi
test eax, eax
js 0x10027c05
lea ecx, [ebp - 0xd8]
call fcn.1002e889
and dword [ebp - 0x118], 0
movzx ebx, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0xd0]
push ecx
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x2c]
call dword [0x10066528]
call dword [esi + 0x2c]
mov edi, ebx
test eax, eax
js 0x10027bd0
and dword [ebp - 0x120], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 0x118]
push ecx
push 0x10008a94
push 0x100088dc
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x14]
call dword [0x10066528]
call dword [esi + 0x14]
test eax, eax
js 0x10027afe
mov eax, dword [ebp - 0x120]
test eax, eax
setne cl
test cl, cl
je 0x10027afe
and dword [ebp - 0x110], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x110]
mov esi, dword [eax]
push ecx
push 0x10008a94
push eax
mov ecx, dword [esi]
call dword [0x10066528]
call dword [esi]
test eax, eax
js 0x10027ae0
mov eax, dword [ebp - 0x110]
test eax, eax
setne cl
test cl, cl
je 0x10027ae6
and dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x12c]
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [esi + 0x2c]
push eax
call dword [0x10066528]
call dword [esi + 0x2c]
test eax, eax
js 0x10027ae0
cmp dword [ebp - 0x12c], 0
je 0x10027ae0
xor edi, edi
inc edi
mov eax, dword [ebp - 0x110]
mov byte [ebp - 4], 2
test eax, eax
je 0x10027afe
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x114], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x118]
push ecx
push 0x10008a84
push 0x100088dc
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x14]
call dword [0x10066528]
call dword [esi + 0x14]
test eax, eax
js 0x10027b96
mov eax, dword [ebp - 0x114]
test eax, eax
setne cl
test cl, cl
je 0x10027b96
mov esi, dword [eax]
lea ecx, [ebp - 0x11c]
push ecx
push 0x10008a84
push eax
mov ecx, dword [esi]
call dword [0x10066528]
call dword [esi]
test eax, eax
js 0x10027b96
cmp dword [ebp - 0x114], ebx
setne al
test al, al
je 0x10027b96
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x128]
push ecx
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x10]
call dword [0x10066528]
call dword [esi + 0x10]
lea ecx, [ebp - 0x114]
call fcn.1001ce2d
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x10027bbf
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.1001ce2d
jmp 0x10027bd2
xor ebx, ebx
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0x10066528]
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10027c05
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x1001ac60
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
jmp 0x1001ac60