Function at 0x10078ba8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d257b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
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 ecx, dword [edi + 0x178]
test ecx, ecx
je 0x10078721
mov eax, dword [ecx]
push 1
call dword [eax + 0x78]
push 0x174
call fcn.1009f48b
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
mov ecx, eax
push str.EditMenu
push edi
call fcn.10054f90
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
push dword [edi + 0x13c]
mov dword [edi + 0x178], eax
mov edx, dword [eax]
call dword [edx + 0x3ac]
cmp byte [edi + 0x116], 0
je 0x10078816
cmp byte [edi + 0x115], 0
jne 0x100788ba
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x100787f6
mov ecx, dword [0x10115b8c]
mov dword [esi + 8], 0
mov dword [esi + 8], 0
mov dword [esi], vtable.KeyValues.0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
mov eax, dword [ecx]
push str.DoCutSelected
call dword [eax + 0x10]
mov dword [esi + 4], eax
jmp 0x100787f8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x178]
push 0
push edi
push esi
mov eax, dword [ecx]
push str.TextEntry_Cut
call dword [eax + 0x30c]
cmp byte [edi + 0x115], 0
jne 0x100788ba
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x1007889a
mov ecx, dword [0x10115b8c]
mov dword [esi + 8], 0
mov dword [esi + 8], 0
mov dword [esi], vtable.KeyValues.0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
mov eax, dword [ecx]
push str.DoCopySelected
call dword [eax + 0x10]
mov dword [esi + 4], eax
jmp 0x1007889c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x178]
push 0
push edi
push esi
mov eax, dword [ecx]
push str.TextEntry_Copy
call dword [eax + 0x30c]
cmp byte [edi + 0x116], 0
je 0x1007895e
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x1007893e
mov ecx, dword [0x10115b8c]
mov dword [esi + 8], 0
mov dword [esi + 8], 0
mov dword [esi], vtable.KeyValues.0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
mov eax, dword [ecx]
push str.DoPaste
call dword [eax + 0x10]
mov dword [esi + 4], eax
jmp 0x10078940
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x178]
push 0
push edi
push esi
mov eax, dword [ecx]
push str.TextEntry_Paste
call dword [eax + 0x30c]
cmp byte [edi + 0x183], 0
je 0x10078f7d
push 0
push 0
call fcn.1001c420
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
jle 0x10078b0b
xor ecx, ecx
mov edx, pe_nt_image_headers32
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009f4bb
add esp, 4
mov ebx, eax
mov dword [ebp - 0x21c], ebx
push esi
push ebx
call fcn.1001c420
push 0x174
call fcn.1009f48b
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 4
mov ecx, eax
push str.LanguageMenu
push edi
call fcn.10054f90
mov dword [ebp - 0x218], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov edx, dword [eax]
push dword [edi + 0x13c]
call dword [edx + 0x3ac]
lea esi, [ebx + 8]
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x10078a30
push dword [esi + 0x100]
mov ecx, eax
push str.handle
push str.DoLanguageChanged
call fcn.100239d0
mov dword [ebp - 0x224], eax
jmp 0x10078a3a
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x10078a4c
mov ecx, 0x100dfcdc
jmp 0x10078a85
cmp word [esi], 0x23
jne 0x10078a83
mov ecx, dword [0x10115b9c]
lea eax, [ebp - 0x210]
push 0x200
push eax
lea eax, [esi + 2]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [0x10115b9c]
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
jmp 0x10078a85
mov ecx, esi
mov ebx, dword [ebp - 0x218]
push 0
push edi
push dword [ebp - 0x224]
mov eax, dword [ebx]
push ecx
push str.Language
mov ecx, ebx
call dword [eax + 0x330]
cmp byte [esi + 0x104], 0
je 0x10078ac9
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0xd4]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x164], 0
je 0x10078ac9
mov byte [eax + 0x165], 1
add esi, 0x110
sub dword [ebp - 0x214], 1
jne 0x100789f3
mov ecx, dword [edi + 0x178]
push 0
push ebx
push edi
mov eax, dword [ecx]
push 0x100dfc10
push str.TextEntry_Language
push str.Language
call dword [eax + 0x358]
push dword [ebp - 0x21c]
call fcn.1009f1a9
add esp, 4
push dword [0x10115ad4]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x22c], 0
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ebx, dword [sym.imp.IMM32.dll_ImmGetConversionStatus]
mov esi, eax
test esi, esi
je 0x10078b5f
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call ebx
push esi
push dword [0x10115ad4]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, ax
xor ecx, ecx
xor eax, eax
nop
cmp word [eax + 0x1010eb40], dx
je 0x10078b8b
add eax, 0x14
inc ecx
cmp eax, 0xd20
jb 0x10078b70
mov eax, 4
jmp 0x10078b95
lea eax, [ecx + ecx*4]
lea eax, [eax*4 + 0x1010eb44]
mov eax, dword [eax]
dec eax
cmp eax, 3
ja case.default.0x10078ba1
jmp dword [eax*4 + 0x10078fc4]
mov ebx, 6
jmp 0x10078bb4
mov ebx, 2
xor ecx, ecx
mov eax, ebx
mov edx, 0x108
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009f4bb
add esp, 4
mov esi, eax
mov dword [ebp - 0x224], esi
push ebx
push esi
call fcn.1001c660
push 0x174
call fcn.1009f48b
add esp, 4
mov dword [ebp - 0x218], eax
mov dword [ebp - 4], 6
mov ecx, eax
push str.ConversionModeMenu
push edi
call fcn.10054f90
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov edx, dword [eax]
push dword [edi + 0x13c]
call dword [edx + 0x3ac]
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x10078c5f
push dword [esi + 0x100]
mov ecx, eax
push str.handle
push str.DoConversionModeChanged
call fcn.100239d0
mov dword [ebp - 0x21c], eax
jmp 0x10078c69
mov dword [ebp - 0x21c], 0
mov edx, 2
mov ecx, esi
add edx, ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x10078c8a
mov ecx, 0x100dfcdc
jmp 0x10078cc6
cmp word [esi], 0x23
jne 0x10078cc4
mov ecx, dword [0x10115b9c]
lea edx, [ebp - 0x210]
push 0x200
push edx
mov edx, dword [ebp - 0x218]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov ecx, dword [0x10115b9c]
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
jmp 0x10078cc6
mov ecx, esi
mov edx, dword [ebp - 0x214]
push 0
push edi
push dword [ebp - 0x21c]
mov eax, dword [edx]
push ecx
push str.ConversionMode
mov ecx, edx
call dword [eax + 0x330]
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x214]
cmp byte [ecx + 0x102], 0
je 0x10078d16
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0xd4]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x164], 0
je 0x10078d16
mov byte [eax + 0x165], 1
add esi, 0x108
sub ebx, 1
jne 0x10078c22
mov ecx, dword [edi + 0x178]
push ebx
push edx
push edi
mov eax, dword [ecx]
push 0x100dfc10
push str.TextEntry_ConversionMode
push str.ConversionMode
call dword [eax + 0x358]
push dword [ebp - 0x224]
call fcn.1009f1a9
mov ebx, dword [sym.imp.IMM32.dll_ImmGetConversionStatus]
add esp, 4
push dword [0x10115ad4]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
test esi, esi
je 0x10078d9d
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call ebx
push esi
push dword [0x10115ad4]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, ax
xor ecx, ecx
xor eax, eax
nop dword [eax]
cmp word [eax + 0x1010eb40], dx
je 0x10078dcb
add eax, 0x14
inc ecx
cmp eax, 0xd20
jb 0x10078db0
mov eax, 4
jmp 0x10078dd5
lea eax, [ecx + ecx*4]
lea eax, [eax*4 + 0x1010eb44]
mov eax, dword [eax]
sub eax, 2
jne 0x10078f7d
push 0x420
call fcn.1009f4bb
add esp, 4
mov ebx, eax
mov dword [ebp - 0x220], ebx
push 4
push ebx
call fcn.1001cb00
push 0x174
call fcn.1009f48b
add esp, 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 8
mov ecx, eax
push str.SentenceModeMenu
push edi
call fcn.10054f90
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov edx, dword [eax]
push dword [edi + 0x13c]
call dword [edx + 0x3ac]
mov esi, ebx
mov dword [ebp - 0x21c], 4
mov ebx, dword [ebp - 0x224]
add ebx, 0x104
nop dword [eax]
mov ecx, dword [0x10115b8c]
push 0x20
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x10078e9a
push dword [ebx - 4]
mov ecx, eax
push str.handle
push str.DoConversionModeChanged
call fcn.100239d0
mov dword [ebp - 0x218], eax
jmp 0x10078ea4
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x10078eb6
mov ecx, 0x100dfcdc
jmp 0x10078eef
cmp word [esi], 0x23
jne 0x10078eed
mov ecx, dword [0x10115b9c]
lea eax, [ebp - 0x210]
push 0x200
push eax
lea eax, [esi + 2]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [0x10115b9c]
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
jmp 0x10078eef
mov ecx, esi
mov edx, dword [ebp - 0x214]
push 0
push edi
push dword [ebp - 0x218]
mov eax, dword [edx]
push ecx
push str.SentenceMode
mov ecx, edx
call dword [eax + 0x330]
cmp byte [ebx], 0
mov edx, dword [ebp - 0x214]
je 0x10078f35
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0xd4]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x164], 0
je 0x10078f35
mov byte [eax + 0x165], 1
add esi, 0x108
add ebx, 0x108
sub dword [ebp - 0x21c], 1
jne 0x10078e60
mov ecx, dword [edi + 0x178]
push 0
push edx
push edi
mov eax, dword [ecx]
push 0x100dfc10
push str.TextEntry_SentenceMode
push str.SentenceMode
call dword [eax + 0x358]
push dword [ebp - 0x220]
call fcn.1009f1a9
add esp, 4
mov ecx, dword [edi + 0x178]
push 0
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov ecx, dword [edi + 0x178]
push edi
mov eax, dword [ecx]
call dword [eax + 0x9c]
mov ecx, dword [edi + 0x178]
push edi
mov eax, dword [ecx]
call dword [eax + 0xac]
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