Function at 0x1007cbb0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d26e0
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x1010e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xd4], edi
mov ecx, dword [edi + 0x388]
test ecx, ecx
je 0x1007ce86
mov eax, dword [0x10115ad8]
test eax, eax
je 0x1007ce7c
mov eax, dword [eax + 8]
mov dword [ebp - 0xec], eax
test eax, eax
je 0x1007ce7c
mov eax, dword [ecx]
call dword [eax + 0x3a4]
mov esi, dword [0x10115ad8]
test esi, esi
jne 0x1007cc28
xor ecx, ecx
jmp 0x1007cc2b
mov ecx, dword [esi + 0x14]
cmp eax, ecx
je 0x1007cc3e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x378]
jmp 0x1007ce86
test esi, esi
jne 0x1007cc4e
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0xd8], edx
jmp 0x1007cc70
mov edx, dword [esi + 0xc]
mov ecx, edx
mov ebx, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0xd8], edx
cmp edx, esi
jl 0x1007cc70
lea eax, [ebx + esi]
mov dword [ebp - 0xd8], edx
cmp ecx, eax
jl 0x1007ccb1
mov eax, edx
mov esi, dword [ebp - 0xd8]
cdq
idiv ebx
push dword [0x10115ad4]
sub esi, edx
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x1007ccb1
push esi
push 0
push 0x15
push eax
call dword [sym.imp.IMM32.dll_ImmNotifyIME]
push dword [ebp - 0xdc]
push dword [0x10115ad4]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
push 4
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call dword [sym.imp.IMM32.dll_ImmGetProperty]
mov ecx, eax
lea eax, [esi + ebx]
shr ecx, 0x12
and ecx, 1
mov dword [ebp - 0xe4], eax
cmp esi, eax
jge 0x1007cd7d
xor edx, edx
lea eax, [esi*4 + 0x18]
sub ecx, esi
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xe8], ecx
nop dword [eax + eax]
mov ecx, dword [edi + 0x388]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3a8]
mov ebx, eax
mov eax, dword [edi + 0x388]
test ebx, ebx
js 0x1007cd60
cmp ebx, dword [eax + 0xd8]
jge 0x1007cd60
cmp ebx, dword [eax + 0xf0]
jg 0x1007cd60
mov eax, dword [eax + 0xd4]
lea edi, [ebx + ebx*2]
cmp dword [eax + edi*4 + 4], ebx
jne 0x1007cd40
cmp dword [eax + edi*4 + 8], ebx
jne 0x1007cd5a
mov edi, dword [eax + edi*4]
test edi, edi
je 0x1007cd5a
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x7c]
cmp esi, dword [ebp - 0xec]
jl 0x1007cd94
push 0
call eax
mov edi, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xdc]
inc esi
add dword [ebp - 0xe0], 4
inc edx
mov dword [ebp - 0xdc], edx
cmp esi, dword [ebp - 0xe4]
jl 0x1007cd00
mov ecx, dword [edi + 0x388]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0xf4]
jmp 0x1007ce86
push 1
call eax
xor eax, eax
mov word [ebp - 0x50], ax
test esi, esi
js 0x1007cdcd
mov ecx, dword [0x10115ad8]
cmp esi, dword [ecx + 8]
jge 0x1007cdcd
mov eax, dword [ebp - 0xe0]
push 0x1f
mov eax, dword [eax + ecx]
add eax, ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100a5922
add esp, 0xc
xor eax, eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0x50]
push ecx
add eax, esi
push eax
push str._i__s
lea eax, [ebp - 0xd0]
push 0x3f
push eax
call fcn.10017910
add esp, 0x14
lea ecx, [ebp - 0xd0]
xor eax, eax
mov word [ebp - 0x52], ax
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x300]
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0xf0], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1007ce45
mov ecx, dword [ebp - 0xe8]
add ecx, esi
push ecx
push 0x100f51d0
push str.DoCandidateSelected
mov ecx, eax
call fcn.100239d0
mov ecx, eax
jmp 0x1007ce47
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x404]
mov edi, dword [ebp - 0xd4]
cmp esi, dword [ebp - 0xd8]
jne 0x1007cd60
mov ecx, dword [edi + 0x388]
push ebx
call fcn.10058970
jmp 0x1007cd60
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x37c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ee50
mov esp, ebp
pop ebp
ret