Function at 0x4ddc94
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esi, [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.004038c8
mov eax, dword [ebp - 4]
call fcn.004d9b48
xor eax, eax
push ebp
push 0x4ddd89
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ddd31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov byte [ebp - 9], 0
test bl, bl
je 0x4dd6dd
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408570
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.004d964c
mov eax, dword [ebp - 0xe]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x12]
mov dl, byte [0x4ddd98]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4dd6d7
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
mov byte [ebp - 9], 0
jmp 0x4dd709
cmp byte [ebp + 0x10], 0
je 0x4dd709
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004dcfa0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4dd709
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
mov byte [ebp - 0xa], 1
jmp 0x4ddd0c
cmp byte [ebp - 0xa], 0
jne 0x4dd71d
call sub.user32.dll_WaitMessage
mov byte [ebp - 0xa], 0
jmp 0x4ddceb
mov eax, dword [esi + 4]
sub eax, 0x201
je 0x4dd739
sub eax, 3
jne 0x4dd82c
lea edx, [ebp - 0x12]
mov eax, dword [esi + 0xc]
call fcn.00408570
lea eax, [ebp - 0x12]
push eax
mov eax, dword [esi]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x12]
mov dl, 1
call fcn.0044ade0
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4d5428]
call fcn.00404368
test al, al
je 0x4dd783
mov edx, dword [ebx + 0x214]
mov eax, dword [ebp - 4]
call fcn.004d9a7c
test al, al
jne 0x4dd82c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4dd7cf
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0xc8]
jne 0x4dd7cf
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.0044c0a0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x4dd7de
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
cmp dword [esi + 4], 0x201
jne 0x4dd82c
push ebp
lea eax, [ebp - 0x12]
mov dl, 1
call fcn.004dd2b0
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xac], 0
je 0x4dd81d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4dd81d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x4dd82c
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
push 3
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4ddceb
mov eax, dword [esi + 4]
cmp eax, 0x113
jg 0x4dd873
je 0x4dda09
sub eax, 0x4d
je case.0x4dda81.512
sub eax, 0x2e
je case.0x4dda81.512
add eax, 0xffffff7b
sub eax, 9
jb 0x4dd891
jmp 0x4ddc8e
sub eax, 0x118
je case.0x4dda81.512
add eax, 0xffffff18
sub eax, 0xb
jb 0x4dda6a
jmp 0x4ddc8e
mov eax, dword [0x5453ac]
mov eax, dword [eax]
call fcn.0046dd30
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4dd8bf
cmp byte [ebp + 8], 0
je 0x4dd8bb
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4dd8bf
xor eax, eax
jmp 0x4dd8c1
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [esi + 4]
sub eax, 0x100
je 0x4dd8e2
sub eax, 2
je 0x4dd952
sub eax, 2
je 0x4dd8e2
sub eax, 2
je 0x4dd952
jmp case.0x4dda81.512
cmp dword [esi + 8], 0xe5
jne 0x4dd8f6
mov eax, dword [esi]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
cmp byte [ebp - 0x1a], 0
je 0x4dd906
cmp dword [esi + 8], 0x70
jne case.0x4dda81.512
mov ax, word [esi + 8]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [esi + 0xc]
call fcn.00463fb4
push eax
push ebp
call fcn.004dd294
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.004dd390
pop ecx
test al, al
je 0x4dd93c
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
cmp word [ebp - 0x1c], 0
je case.0x4dda81.512
push esi
call sub.user32.dll_TranslateMessage
jmp case.0x4dda81.512
cmp byte [ebp - 0x1a], 0
jne case.0x4dda81.512
push ebp
call fcn.004dd294
pop ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x18]
call fcn.004dca44
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4dd9dd
mov eax, dword [esi + 8]
sub eax, 0x20
je 0x4dd996
sub eax, 0xd
jne 0x4dd9d1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4dd9d1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x4dd9d1
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x4dd9d1
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
call fcn.004dcf88
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
push 0
call sub.user32.dll_MessageBeep
jmp case.0x4dda81.512
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004da5a4
mov eax, dword [ebp - 0x18]
call fcn.004dd104
cmp byte [ebp - 0x19], 0
je case.0x4dda81.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.004dcfa0
jmp case.0x4dda81.512
mov eax, dword [esi]
call fcn.004493a0
mov ebx, eax
test ebx, ebx
je 0x4dda5f
mov eax, ebx
mov edx, dword [0x4d5428]
call fcn.00404368
test al, al
je 0x4dda5f
cmp dword [esi + 8], 0x2328
jl 0x4dda5f
cmp dword [esi + 8], 0x232b
jg 0x4dda5f
cmp dword [ebx + 0x214], 0
je case.0x4dda81.512
mov edx, dword [esi + 8]
sub edx, 0x2328
mov eax, dword [ebx + 0x214]
call fcn.004dd5ac
jmp case.0x4dda81.512
push esi
call sub.user32.dll_DispatchMessageA
jmp case.0x4dda81.512
mov eax, dword [esi + 4]
add eax, 0xfffffe00
cmp eax, 0xa
ja case.0x4dda81.512
mov al, byte [eax + 0x4dda88]
jmp dword [eax*4 + 0x4dda93]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x549574]
jne 0x4ddabd
mov eax, dword [esi + 0x18]
cmp eax, dword [0x549578]
je 0x4ddad6
mov eax, dword [esi + 0x14]
mov dword [0x549574], eax
mov eax, dword [esi + 0x18]
mov dword [0x549578], eax
push ebp
call fcn.004dd42c
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004dd304
pop ecx
test al, al
je case.0x4dda81.512
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004d964c
mov ecx, dword [ebp - 0xe]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp case.0x4dda81.512
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004dd304
pop ecx
test al, al
je case.0x4dda81.512
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004d964c
mov eax, dword [ebp - 0xe]
push eax
movsx edx, word [esi + 0xa]
mov ecx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp case.0x4dda81.512
cmp dword [esi + 4], 0x204
setne al
or al, byte [ebp + 8]
je case.0x4dda81.512
mov eax, dword [0x5453ac]
mov eax, dword [eax]
call fcn.0046dd30
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [esi + 0x14]
mov dl, 1
call fcn.004dd2b0
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004dd304
pop ecx
test al, al
je case.0x4dda81.512
cmp dword [esi + 4], 0x203
je 0x4ddba8
mov al, byte [0x4ddd98]
mov byte [ebp - 0x1d], al
jmp 0x4ddbb0
mov al, byte [0x4ddd9c]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004d964c
mov eax, dword [ebp - 0xe]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 0x12]
mov dl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408570
mov eax, dword [ebp - 0x48]
mov dword [0x549574], eax
mov eax, dword [ebp - 0x44]
mov dword [0x549578], eax
jmp case.0x4dda81.512
cmp dword [esi + 4], 0x202
sete al
or al, byte [ebp + 8]
je case.0x4dda81.512
push ebp
lea eax, [esi + 0x14]
xor edx, edx
call fcn.004dd2b0
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004dd304
pop ecx
test al, al
jne 0x4ddc6c
cmp dword [ebp - 0x18], 0
je 0x4ddc45
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x4dda81.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x4dda81.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x4ddc60
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x4dda81.512
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004d964c
mov al, byte [ebp - 9]
push eax
mov ecx, dword [ebp - 0xe]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp case.0x4dda81.512
push esi
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4ddcac
call fcn.00404a5c
call fcn.00404a5c
jmp 0x4ddd90
cmp dword [0x549574], 0x80000000
jne 0x4ddce4
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408570
mov eax, dword [ebp - 0x48]
mov dword [0x549574], eax
mov eax, dword [ebp - 0x44]
mov dword [0x549578], eax
push ebp
call fcn.004dd42c
pop ecx
push ebp
call fcn.004dd520
pop ecx
push ebp
call fcn.004dd378
pop ecx
test al, al
je 0x4ddd0c
push 0
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4dd726
push ebp
call fcn.004dd378
pop ecx
test al, al
jne 0x4dd712
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddd38
mov eax, dword [ebp - 4]
call fcn.004dcccc
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc