Function at 0x6c9f8a80
Capabilities:
Get keyboard layout
Log keystrokes via input method manager

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x58
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x6c9f8ae0
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x6c9f8ae0
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x6c9f8ae0
cmp edx, 0x10e
je 0x6c9f8f30
jbe 0x6c9f8af0
cmp edx, 0x281
je 0x6c9f8f70
cmp edx, 0x282
je 0x6c9f8bb0
cmp edx, 0x10f
je 0x6c9f8bd0
lea esi, [esi]
lea esi, [esi]
xor eax, eax
add esp, 0x58
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 0x51
je 0x6c9f8b10
mov eax, 1
cmp edx, 0x10d
jne 0x6c9f8ae0
add esp, 0x58
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, word [ebx + 0x14ec]
mov dword [esp], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and esi, 0x3ff
sub esp, 4
mov dword [ebx + 0x14ec], eax
cmp eax, dword [reloc.GDI32.dll_CreatePen]
je 0x6c9f8b63
mov edx, eax
mov dword [reloc.GDI32.dll_CreatePen], eax
and edx, 0x3ff
cmp edx, 0x11
je 0x6c9f906f
cmp edx, 0x12
je 0x6c9f9060
cmp edx, 4
je 0x6c9f9080
mov edx, dword [ebx + 0x150c]
test edx, edx
jne 0x6c9f8b7e
cmp eax, 0xe0060404
setne al
movzx eax, al
mov dword [ebx + 0x14b8], eax
mov eax, ebx
call fcn.6c9f6da0
movzx eax, word [ebx + 0x14ec]
and eax, 0x3ff
cmp esi, eax
je 0x6c9f8ae0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x6c9f8ae0
mov eax, ebx
call fcn.6c9f7730
jmp 0x6c9f8ae0
mov eax, dword [esp + 0x74]
sub eax, 3
cmp eax, 0xb
ja case.0x6c9f8bc0.7
jmp dword [eax*4 + 0x6ca36714]
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.IMM32.DLL_ImmGetContext
sub esp, 4
mov esi, eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
test ah, 8
jne 0x6c9f8f81
test al, 8
je 0x6c9f8c8b
mov eax, dword [ebx + 0x150c]
test eax, eax
jne 0x6c9f8c0b
xor eax, eax
mov word [ebx + 0x80], ax
lea eax, [ebx + 0x40]
mov dword [esp + 0xc], 0x3e
mov edi, 0
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov dword [esp], esi
call sub.IMM32.DLL_ImmGetCompositionStringW
sub esp, 0x10
test eax, eax
mov dword [esp + 0xc], 0
cmovns edi, eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
shr edi, 1
mov dword [esp], esi
mov ebp, edi
call sub.IMM32.DLL_ImmGetCompositionStringW
movzx edx, ax
sub esp, 0x10
mov dword [ebx + 0xa0], edx
test eax, 0xffe0
jne 0x6c9f8c7d
lea eax, [edx + 0x20]
cmp word [ebx + eax*2], 0x3000
je 0x6c9f90fb
xor eax, eax
mov word [ebx + ebp*2 + 0x40], ax
mov eax, ebx
call fcn.6c9f6eb0
mov dword [esp + 4], esi
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.IMM32.DLL_ImmReleaseContext
sub esp, 8
mov eax, 1
jmp 0x6c9f8ae2
xor edx, edx
mov eax, ebx
call fcn.6c9f6fc0
mov ebp, dword [ebx + 0x150c]
mov dword [esp + 0x2c], 0
mov esi, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test ebp, ebp
jne 0x6c9f8dc1
xor edi, edi
xor edx, edx
mov eax, ebx
mov word [ebx + 0x80], di
call fcn.6c9f6fc0
test eax, eax
mov dword [esp + 0x18], eax
je 0x6c9f8dc1
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.IMM32.DLL_ImmGetContext
sub esp, 4
mov edi, eax
test eax, eax
je 0x6c9f8dc1
mov eax, dword [ebx + 0x14f4]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x6c9f930b
lea edx, [esp + 0x34]
lea ebp, [esp + 0x30]
mov dword [esp + 8], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0
mov dword [esp], edi
call eax
sub esp, 0x18
test eax, eax
je 0x6c9f8d8d
cmp eax, 0x10
mov ecx, 0x10
lea edx, [esp + 0x34]
mov dword [esp + 0x10], ebp
cmova eax, ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [ebx + 0x14f4]
sub esp, 0x18
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
lea eax, [ebx + 0x80]
mov dword [esp], eax
call fcn.6c9a2540
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.IMM32.DLL_ImmReleaseContext
mov eax, ebx
sub esp, 8
call fcn.6c9f6eb0
cmp esi, 0x4040404
je 0x6c9f90b9
jbe 0x6c9f909b
cmp esi, 0x5020404
je 0x6c9f8df5
ja 0x6c9f90de
cmp esi, 0x5000404
je 0x6c9f8df5
cmp esi, 0x5010404
jne 0x6c9f8ae0
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
lea eax, [edx - 0x10]
cmp eax, 1
setbe al
sub edx, 0x1a
cmp edx, 2
setbe dl
or eax, edx
movzx eax, al
jmp 0x6c9f8ae2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
sub esp, 4
mov dword [ebx + 0x14ec], eax
cmp eax, dword [reloc.GDI32.dll_CreatePen]
je 0x6c9f8ae0
mov edx, eax
mov dword [reloc.GDI32.dll_CreatePen], eax
and edx, 0x3ff
cmp edx, 0x11
je 0x6c9f916a
cmp edx, 0x12
je 0x6c9f9159
cmp edx, 4
jne 0x6c9f8ae0
shr ax, 0xa
cmp ax, 2
je 0x6c9f9159
mov dword [ebx + 0x14bc], 1
jmp 0x6c9f8ae0
mov eax, dword [ebx + 0x150c]
test eax, eax
jne 0x6c9f8ae0
mov dword [ebx + 0x14c0], 1
mov eax, ebx
mov dword [ebx + 0xa4], 1
call fcn.6c9f6eb0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.IMM32.DLL_ImmGetContext
sub esp, 4
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, 1
test ecx, ecx
je 0x6c9f8ae2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ecx
call sub.IMM32.DLL_ImmGetCandidateListW
sub esp, 0x10
mov edi, eax
test eax, eax
jne 0x6c9f917b
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
jmp 0x6c9f8c8f
mov dword [ebx + 0x14c0], 0
mov eax, ebx
mov dword [ebx + 0xa4], 0
call fcn.6c9f6eb0
mov eax, 1
jmp 0x6c9f8ae2
mov dword [ebx + 0xa0], 0
xor eax, eax
mov word [ebx + 0x40], ax
xor eax, eax
mov word [ebx + 0x80], ax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca36698
call fcn.6c95f2c0
xor eax, eax
jmp 0x6c9f8ae2
mov eax, dword [esp + 0x78]
mov dword [eax], 0
xor eax, eax
jmp 0x6c9f8ae2
lea edi, [ebx + 0x40]
mov dword [esp + 0xc], 0x3e
mov ebp, 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x800
mov dword [esp], esi
call sub.IMM32.DLL_ImmGetCompositionStringW
sub esp, 0x10
test eax, eax
cmovns ebp, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
shr ebp, 1
mov dword [esp], esi
mov dword [esp + 0x18], ebp
call sub.IMM32.DLL_ImmGetCompositionStringW
sub esp, 0x10
movzx ecx, ax
test eax, 0xffe0
mov dword [ebx + 0xa0], ecx
mov edx, dword [esp + 0x18]
jne 0x6c9f8ff9
lea eax, [ecx + 0x20]
cmp word [ebx + eax*2], 0x3000
je 0x6c9f912a
xor ecx, ecx
xor ebp, ebp
mov word [ebx + edx*2 + 0x40], cx
mov dword [esp], edi
call fcn.6c9a2510
mov dword [esp + 8], edi
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0x6ca36643
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca3664c
call fcn.6c99af00
mov dword [esp], eax
mov edi, eax
call fcn.6c95f230
mov dword [esp], edi
xor edi, edi
call fcn.6c99edc0
mov eax, dword [esp + 0x78]
mov word [ebx + 0x40], di
mov word [ebx + 0x80], bp
mov dword [ebx + 0xa0], 0
mov eax, dword [eax]
jmp 0x6c9f8bf0
mov dword [ebx + 0x14bc], 0
jmp 0x6c9f8b63
mov dword [ebx + 0x14bc], 1
jmp 0x6c9f8b63
mov edx, eax
shr dx, 0xa
cmp dx, 2
setne dl
movzx edx, dl
mov dword [ebx + 0x14bc], edx
jmp 0x6c9f8b63
cmp esi, 0x4020404
je 0x6c9f90b9
jbe 0x6c9f90d0
cmp esi, 0x4020804
je 0x6c9f90b9
cmp esi, 0x4030404
jne 0x6c9f8ae0
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
sub eax, 1
cmp eax, 1
setbe al
movzx eax, al
jmp 0x6c9f8ae2
cmp esi, 0x4010804
jne 0x6c9f8ae0
jmp 0x6c9f90b9
cmp esi, 0x5030804
je 0x6c9f8df5
cmp esi, 0x6000404
jne 0x6c9f8ae0
jmp 0x6c9f8df5
lea ecx, [edx + 1]
cmp edi, ecx
jle 0x6c9f9122
mov ecx, edi
add eax, eax
sub ecx, edx
lea edx, [ecx + ecx - 2]
mov dword [esp + 8], edx
lea edx, [ebx + eax + 2]
add eax, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6ca118b8
lea ebp, [edi - 1]
jmp 0x6c9f8c7d
lea edx, [ecx + 1]
cmp ebp, edx
jle 0x6c9f9151
mov edx, ebp
add eax, eax
sub edx, ecx
lea edx, [edx + edx - 2]
mov dword [esp + 8], edx
lea edx, [ebx + eax + 2]
add eax, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6ca118b8
lea edx, [ebp - 1]
jmp 0x6c9f8ff9
mov dword [ebx + 0x14bc], 0
xor eax, eax
jmp 0x6c9f8ae2
mov dword [ebx + 0x14bc], 1
xor eax, eax
jmp 0x6c9f8ae2
mov dword [esp], eax
call fcn.6c99ecd0
mov esi, eax
test eax, eax
je 0x6c9f8ef6
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.IMM32.DLL_ImmGetCandidateListW
sub esp, 0x10
test eax, eax
je 0x6c9f92fe
cmp word [ebx + 0x14ec], 0x804
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x14b0], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x14a8], eax
je 0x6c9f9478
mov edi, dword [esi + 0x14]
mov ecx, 0xa
cmp edi, 0xa
cmovbe ecx, edi
mov dword [ebx + 0x14b4], ecx
test edi, edi
je 0x6c9f91f9
mov eax, dword [esi + 0xc]
xor edx, edx
div ecx
imul eax, ecx
mov edi, eax
lea ebp, [ebx + 0xa8]
mov dword [esp + 8], 0x1400
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.6c9a2160
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
cmp edi, eax
jae 0x6c9f92e4
mov eax, dword [ebx + 0x14b4]
test eax, eax
je 0x6c9f92e4
add eax, edi
mov ecx, dword [ebx + 0x14bc]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14b8]
mov ebx, edi
mov dword [esp + 0x1c], ecx
mov ecx, ebp
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esi + ebx*4 + 0x18]
lea ebp, [eax + ebx]
mov eax, 0xcccccccd
add edi, esi
mul ebp
mov eax, edx
shr eax, 3
lea eax, [eax + eax*4]
add eax, eax
sub ebp, eax
mov eax, ebp
mov ebp, dword [esp + 0x1c]
add eax, 0x30
mov word [ecx], ax
test ebp, ebp
je 0x6c9f9370
mov word [ecx + 2], 0x20
movzx edx, word [edi]
lea eax, [ecx + 4]
test dx, dx
je 0x6c9f92c2
lea ebp, [edi + 2]
sub ebp, eax
jmp 0x6c9f92b0
mov edi, eax
sub edi, ecx
cmp edi, 0x1ff
ja 0x6c9f92c2
lea edi, [eax + ebp]
add eax, 2
mov word [eax - 2], dx
movzx edx, word [edi]
test dx, dx
jne 0x6c9f92a4
xor edx, edx
add ebx, 1
mov word [eax], dx
cmp ebx, dword [esp + 0x24]
je 0x6c9f92e0
add ecx, 0x200
cmp ebx, dword [esp + 0x20]
jne 0x6c9f9258
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebx + 0x14ec]
and eax, 0x3ff
cmp eax, 0x12
jne 0x6c9f92fe
mov dword [ebx + 0x14b0], 0xffffffff
mov dword [esp], esi
call fcn.6c99edc0
jmp 0x6c9f8ef6
mov dword [esp + 0x18], edx
mov dword [esp], edi
call dword [ebx + 0x14fc]
push ecx
mov edx, dword [esp + 0x18]
mov ebp, eax
cmp edx, 0x4030404
je 0x6c9f93fa
ja 0x6c9f9384
cmp edx, 0x4020404
je 0x6c9f93fa
cmp edx, 0x4020804
je 0x6c9f9458
cmp edx, 0x4010804
je 0x6c9f9420
mov eax, dword [ebp + 0x124]
mov dword [esp], eax
call dword [ebx + 0x1508]
push eax
mov dword [esp], edi
call dword [ebx + 0x1500]
push edx
jmp 0x6c9f8da7
movzx edx, word [edi]
lea eax, [ecx + 2]
test dx, dx
jne 0x6c9f929d
jmp 0x6c9f92c2
cmp edx, 0x5010404
je 0x6c9f939e
jbe 0x6c9f93ee
cmp edx, 0x5020404
je 0x6c9f939e
cmp edx, 0x5030804
jne 0x6c9f9351
mov eax, dword [ebp + 0x124]
mov dword [esp], eax
call dword [ebx + 0x1504]
push ecx
mov eax, dword [eax + 4]
test eax, eax
je 0x6c9f9351
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6c9f9351
mov edx, dword [eax + 0x60]
add eax, 0x40
test eax, eax
je 0x6c9f9351
add edx, 1
cmp edx, 0xf
jbe 0x6c9f93d3
mov edx, 0x10
mov dword [esp + 4], eax
lea eax, [ebx + 0x80]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.6c9a2540
jmp 0x6c9f9351
cmp edx, 0x4040404
jne 0x6c9f9351
mov eax, dword [ebp + 0x124]
mov dword [esp], eax
call dword [ebx + 0x1504]
push edx
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6c9f9351
mov edx, dword [eax + 0x9c]
add eax, 0x38
jmp 0x6c9f93c2
mov edx, 1
mov eax, ebx
call fcn.6c9f6fc0
cmp eax, 2
mov eax, dword [ebp + 0x124]
sbb edx, edx
add edx, 8
mov dword [esp], eax
mov dword [esp + 0x18], edx
call dword [ebx + 0x1504]
push edx
mov edx, dword [esp + 0x18]
mov eax, dword [eax + edx*4]
test eax, eax
jne 0x6c9f9415
jmp 0x6c9f9351
mov eax, dword [eax + 0x124]
mov dword [esp], eax
call dword [ebx + 0x1504]
push ecx
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x6c9f93bc
jmp 0x6c9f9351
xor edx, edx
mov eax, ebx
call fcn.6c9f6fc0
test eax, eax
je 0x6c9f91d5
xor edx, edx
mov dword [esp + 0x7c], ebx
xor edi, edi
xor ebp, ebp
mov ebx, edx
mov edx, dword [esp + 0x7c]
jmp 0x6c9f94c7
mov eax, dword [esi + ebp*4 + 0x18]
mov dword [esp + 0x7c], edx
add eax, esi
mov dword [esp], eax
call fcn.6c9a2510
mov edx, dword [esp + 0x7c]
add eax, 1
add ebx, eax
cmp ebx, 0x12
jbe 0x6c9f94c4
cmp ebp, dword [esi + 0xc]
ja 0x6c9f94cf
mov ebx, eax
mov edi, ebp
add ebp, 1
cmp ebp, dword [edx + 0x14a8]
jb 0x6c9f949b
sub ebp, edi
mov ebx, edx
mov dword [edx + 0x14b4], ebp
jmp 0x6c9f91f9