Function at 0x4dc138
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x41], 0
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.0040fa3c
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0043b7b4
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.0040fa3c
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.00435204
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x54]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x50]
sub dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x3c]
dec edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
dec eax
call fcn.0040fa3c
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [ebp - 0x2d]
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x279], 0
setne byte [ebp - 0x35]
mov dl, 1
mov eax, dword [0x40eb04]
call fcn.00402fc4
mov dword [ebp - 0x34], eax
xor edx, edx
push ebp
push 0x4dc5d7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x279], 2
je 0x4dc20f
push ebp
call fcn.004dc024
pop ecx
jmp 0x4dc22c
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x204], 0
je 0x4dc22c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x208]
mov eax, dword [ebp - 0x34]
call fcn.00410560
mov dl, 1
mov eax, dword [0x40eb04]
call fcn.00402fc4
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x4dc5ba
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0xc
call fcn.0040273c
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x4dc2ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebx], eax
push 0
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x208]
call fcn.004d7104
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc0]
mov eax, dword [ebp - 0x80]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 8], eax
lea edx, [ebx + 4]
mov eax, dword [ebp - 0x18]
call fcn.004da22c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.00410560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dc2d6
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4dc3d1
inc eax
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov eax, 0xc
call fcn.0040273c
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x4dc3ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 0x48]
mov edx, ebx
mov eax, dword [ebp - 0x34]
call fcn.0041070c
mov dword [esi], eax
mov edx, ebx
mov eax, dword [ebp - 0x34]
call fcn.0041070c
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x208]
je 0x4dc35c
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x208]
call fcn.004d7104
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc0]
mov eax, dword [ebp - 0x80]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [esi + 8], eax
jmp 0x4dc37c
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x90]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [esi]
mov al, byte [eax + 0x1f8]
add al, 0xfe
sub al, 2
setb cl
lea edx, [esi + 4]
mov eax, dword [ebp - 0x18]
call fcn.004da1fc
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.00410560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dc3c7
inc ebx
dec dword [ebp - 0x4c]
jne 0x4dc2eb
call fcn.004d7344
call sub.user32.dll_GetCursor
mov dword [ebp - 0x3c], eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_LockWindowUpdate
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x40], eax
xor edx, edx
push ebp
push 0x4dc577
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
call fcn.0043b7b4
push eax
call sub.user32.dll_SetCapture
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_SetRectEmpty
push ebp
call fcn.004dbbc8
pop ecx
jmp 0x4dc4e5
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x4dc4fc
dec eax
je 0x4dc451
jmp 0x4dc45f
mov eax, dword [ebp - 0x70]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x4dc4fc
mov eax, dword [ebp - 0x74]
mov edx, eax
cmp edx, 0x202
jg 0x4dc486
je 0x4dc4cd
add edx, 0xffffff00
sub edx, 2
jb 0x4dc496
sub edx, 0xfe
je 0x4dc4c4
dec edx
je 0x4dc4fc
jmp 0x4dc4d3
sub edx, 0x203
je 0x4dc4fc
dec edx
sub edx, 6
jb 0x4dc4e5
jmp 0x4dc4d3
mov edx, dword [ebp - 0x70]
sub edx, 0x11
je 0x4dc4a5
sub edx, 0xa
je 0x4dc4fc
jmp 0x4dc4e5
cmp eax, 0x100
sete dl
cmp dl, byte [ebp - 0x2d]
je 0x4dc4e5
cmp eax, 0x100
sete byte [ebp - 0x2d]
push ebp
call fcn.004dbbc8
pop ecx
jmp 0x4dc4e5
push ebp
call fcn.004dbbc8
pop ecx
jmp 0x4dc4e5
mov byte [ebp - 0x41], 1
jmp 0x4dc4fc
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 0x18]
call fcn.0043b7b4
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x4dc434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc57e
mov eax, dword [ebp - 0x18]
call fcn.0043b7b4
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x4dc521
call sub.user32.dll_ReleaseCapture
mov eax, dword [ebp - 0x40]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_ReleaseDC
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x14]
push eax
push 1
cmp dword [ebp - 4], 0
setne al
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
call fcn.004db5b0
mov eax, dword [ebp - 0x40]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_ReleaseDC
push 0
call sub.user32.dll_LockWindowUpdate
ret