Function at 0x40da18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ebx, eax
and ebx, 0xffff
mov dword [ebp - 8], ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0xffff
mov dword [ebp - 0xc], ebx
sub edx, 0x200
je 0x40da98
dec edx
je 0x40da58
sub edx, 3
je 0x40da83
jmp 0x40deec
mov edx, dword [ebp - 8]
mov dword [0x42bb8c], edx
mov edx, dword [ebp - 0xc]
mov dword [0x42bb90], edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
mov edx, 0x202
call fcn.00408dd0
jmp 0x40deec
mov eax, dword [ebp - 8]
mov dword [0x42bb8c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x42bb90], eax
jmp 0x40deec
cmp dword [0x42bb8c], 0
jl 0x40deec
cmp dword [0x42bb90], 0
jl 0x40deec
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x38]
cmp eax, 2
jl 0x40db1e
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 8]
cmp eax, 2
jle 0x40db1e
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x34]
cmp eax, 2
jl 0x40db1e
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
cmp eax, 2
jle 0x40db1e
mov eax, dword [ebp - 8]
sub eax, dword [0x42bb8c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jge 0x40db1e
mov eax, dword [ebp - 0xc]
sub eax, dword [0x42bb90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jl 0x40deec
mov dword [0x42bb8c], 0xffffffff
mov dword [0x42bb90], 0xffffffff
lea eax, [ebp - 0x138]
push eax
call sub.user32.dll_GetKeyboardState
mov dl, byte [ebp - 0x137]
mov al, byte [ebp - 0x136]
or dl, al
and dl, 0x80
test dl, dl
je 0x40deec
and al, 0x80
test al, al
je 0x40db67
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00412988
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
xor ecx, ecx
mov edx, 0x18b
call fcn.00408de8
test eax, eax
je 0x40deec
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
xor ecx, ecx
mov edx, 0x188
call fcn.00408de8
mov dword [ebp - 0x10], eax
mov eax, 0x400
call fcn.004024ec
mov dword [ebp - 0x14], eax
push 0x400
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov ecx, dword [ebp - 0x10]
mov edx, 0x189
call fcn.00408de8
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00410cf0
test eax, eax
je 0x40de8a
or edx, 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.0040708c
test eax, eax
je 0x40de8a
push 0x14
push 0
call sub.kernel32.dll_GlobalAlloc
mov edi, eax
push 8
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x1c], eax
push 0x30
push 0
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
push 0xcc
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x20], eax
push 0x814
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
push 0x14
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x24], eax
push 0xc
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x28], eax
test edi, edi
je 0x40de8a
cmp dword [ebp - 0x1c], 0
je 0x40de8a
test ebx, ebx
je 0x40de8a
cmp dword [ebp - 0x20], 0
je 0x40de8a
test esi, esi
je 0x40de8a
cmp dword [ebp - 0x24], 0
je 0x40de8a
cmp dword [ebp - 0x28], 0
je 0x40de8a
mov dword [esi], 0x14
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], eax
cmp dword [0x42ba14], 2
sete al
neg al
sbb eax, eax
mov dword [esi + 0x10], eax
mov edx, esi
add edx, 0x14
mov dword [ebp - 0x18], edx
test eax, eax
je 0x40dd08
push 0x800
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0x800
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
jmp 0x40dd1a
push 0x400
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp - 0x24]
mov word [eax], 0xf
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x28]
mov dword [eax], 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 8], edx
mov dword [edi], 0x4085b8
mov dword [edi + 4], fcn.00408574
mov dword [edi + 8], fcn.00408588
mov dword [edi + 0xc], 0x408604
mov dword [edi + 0x10], 0x408630
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 1
mov dword [ebx], 0x4086c8
mov dword [ebx + 4], fcn.0040863c
mov dword [ebx + 8], fcn.00408650
mov dword [ebx + 0xc], 0x408768
mov dword [ebx + 0x10], 0x408828
mov dword [ebx + 0x14], 0x408834
mov dword [ebx + 0x18], 0x4088cc
mov dword [ebx + 0x1c], fcn.004088d8
mov dword [ebx + 0x20], 0x408940
mov dword [ebx + 0x24], 0x40894c
mov dword [ebx + 0x28], 0x408958
mov dword [ebx + 0x2c], 0x408964
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 8], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004088d8
push 0
call sub.ole32.dll_OleInitialize
test eax, eax
jne 0x40de5e
mov dword [0x42bb94], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x80000001
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.ole32.dll_DoDragDrop
mov dword [ebp - 0x10], eax
call sub.ole32.dll_OleUninitialize
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, 0x70000
mov edx, 0x8000
call fcn.00408dd0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00408588
mov eax, dword [ebp - 0x20]
push eax
call fcn.00408650
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
test edi, edi
je 0x40de94
push edi
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x1c], 0
je 0x40dea3
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
test ebx, ebx
je 0x40dead
push ebx
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x20], 0
je 0x40debc
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalFree
test esi, esi
je 0x40dec6
push esi
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x24], 0
je 0x40ded5
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x28], 0
je 0x40dee4
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 0x14]
call fcn.0040250c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4