Function at 0x1007c740
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d26a5
mov eax, dword fs:[0]
push eax
sub esp, 0xec
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 ebx, ecx
mov eax, dword [ebx]
call dword [eax + 0x37c]
mov eax, dword [0x10115ad8]
test eax, eax
je 0x1007cb4a
mov eax, dword [eax + 8]
mov dword [ebp - 0xe4], eax
test eax, eax
je 0x1007cb4a
push 0x174
call fcn.1009f48b
mov esi, eax
add esp, 4
mov dword [ebp - 0xdc], esi
mov dword [ebp - 4], 0
mov ecx, esi
push str.IMECandidatesMenu
push ebx
call fcn.10054f90
mov byte [ebp - 4], 1
mov dword [esi], vtable.IMECandidatesMenu.0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push dword [ebx + 0x13c]
mov dword [ebx + 0x388], esi
mov eax, dword [esi]
call dword [eax + 0x3ac]
mov edi, dword [0x10115ad8]
test edi, edi
jne 0x1007c7fa
xor esi, esi
mov dword [ebp - 0xd4], esi
jmp 0x1007c809
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0xd4], eax
push 4
push 0
mov dword [ebp - 0xdc], edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call dword [sym.imp.IMM32.dll_ImmGetProperty]
shr eax, 0x12
and eax, 1
mov dword [ebp - 0xe0], eax
cmp edi, esi
jl 0x1007c83c
mov ecx, dword [ebp - 0xd4]
add ecx, esi
cmp edi, ecx
jl 0x1007c87a
mov eax, edi
mov esi, edi
cdq
idiv dword [ebp - 0xd4]
push dword [0x10115ad4]
sub esi, edx
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov edi, eax
test edi, edi
je 0x1007c874
push esi
push 0
push 0x15
push edi
call dword [sym.imp.IMM32.dll_ImmNotifyIME]
push edi
push dword [0x10115ad4]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov eax, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xd4]
add edi, esi
mov dword [ebp - 0xd4], edi
cmp esi, edi
jge 0x1007c961
mov ecx, dword [ebp - 0xd4]
lea edi, [esi*4 + 0x18]
mov edx, dword [ebp - 0xe4]
sub eax, esi
mov dword [ebp - 0xe0], eax
nop dword [eax + eax]
cmp esi, edx
jge 0x1007c955
xor ecx, ecx
mov word [ebp - 0x50], cx
test esi, esi
js 0x1007c8ed
mov ecx, dword [0x10115ad8]
cmp esi, dword [ecx + 8]
jge 0x1007c8ed
mov eax, dword [edi + ecx]
add eax, ecx
push 0x1f
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 - 0xe0]
lea ecx, [ebp - 0x50]
add eax, esi
push ecx
push eax
push str._i__s
lea eax, [ebp - 0xd0]
push 0x3f
push eax
call fcn.10017910
mov ecx, dword [ebx + 0x388]
lea edx, [ebp - 0xd0]
add esp, 0x14
xor eax, eax
mov word [ebp - 0x52], ax
mov eax, dword [ecx]
push 0
push ebx
push 0
push edx
push str.Candidate
call dword [eax + 0x314]
cmp esi, dword [ebp - 0xdc]
jne 0x1007c943
mov ecx, dword [ebx + 0x388]
push eax
call fcn.10058970
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xe0]
inc esi
add edi, 4
cmp esi, ecx
jl 0x1007c8b0
mov ecx, dword [ebx + 0x388]
push 1
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov ecx, dword [ebx + 0x388]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x9c]
mov ecx, dword [ebx + 0x388]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xac]
mov ecx, dword [ebx + 0x388]
push 0
mov eax, dword [ecx]
call dword [eax + 0x20c]
mov eax, dword [ebx]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
push dword [ebx + 0x108]
mov ecx, ebx
call dword [eax + 0x3f0]
mov esi, dword [0x10115b80]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
mov ecx, ebx
push eax
mov eax, dword [ebx]
mov edi, dword [esi]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [ebp - 0xdc]
mov ecx, ebx
mov esi, dword [0x10115b80]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
mov edi, dword [esi]
push eax
mov eax, dword [ebx]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 0x28]
mov ecx, dword [ebx + 0x388]
mov eax, dword [ebp - 0xe4]
add dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xd4]
add dword [ebp - 0xd8], eax
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0xf4]
mov ecx, dword [ebx + 0x388]
lea eax, [ebp - 0xec]
mov esi, dword [0x10115b80]
push eax
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ecx]
mov edi, dword [esi]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov ecx, dword [0x10115b84]
lea edx, [ebp - 0xf0]
push edx
lea edx, [ebp - 0xf8]
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf4]
sub eax, ecx
mov esi, dword [0x10115b80]
mov edx, dword [ebp - 0xe8]
cmp eax, edx
mov eax, dword [ebp - 0xf0]
mov edi, dword [esi]
jle 0x1007cadf
sub eax, dword [ebp - 0xec]
cmp eax, dword [ebp - 0xd8]
jg 0x1007caef
lea eax, [ebp - 0xdc]
mov ecx, ebx
push eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebx]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [ebp - 0xd8]
sub eax, dword [ebp - 0xdc]
sub eax, dword [ebp - 0xec]
push eax
push dword [ebp - 0xe8]
jmp 0x1007cb32
sub eax, dword [ebp - 0xec]
cmp eax, dword [ebp - 0xd8]
jle 0x1007caf8
sub edx, ecx
push dword [ebp - 0xd8]
push edx
jmp 0x1007cb3a
lea eax, [ebp - 0xdc]
mov ecx, ebx
push eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebx]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov edx, dword [ebp - 0xd8]
sub edx, dword [ebp - 0xdc]
sub edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xf4]
push edx
push eax
mov esi, dword [0x10115b80]
mov edi, dword [esi]
mov ecx, dword [ebx + 0x388]
mov eax, dword [ecx]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 8]
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