Function at 0x420889
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
or ecx, 0xffffffff
push 4
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
call edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x420f26
push 1
call fcn.0044bc76
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
jne 0x4208f4
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0x20], ebx
je 0x4208fb
mov dword [ebp - 0x1c], 1
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalLock]
sub eax, 0x452
je 0x420972
sub eax, 1
je 0x420979
sub eax, 7
je 0x420940
dec eax
sub eax, 1
jne 0x4209ab
push dword [ebp - 0x20]
mov ebx, 0x457
call ecx
push dword [ebp - 0x20]
movzx eax, word [eax + 0xde]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4209b1
mov eax, 0x7fff
push eax
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0042edc3
cmp dword [ebp - 0x1c], 0
jne 0x420f26
or dword [0x47cbf8], 0xffffffff
jmp 0x4209ab
mov dword [ebp - 0x48], 1
push dword [ebp - 0x20]
call ecx
lea ecx, [ebp - 0x58]
push ecx
push 1
lea ecx, [ebp - 0x5c]
push ecx
push 0
push eax
call fcn.00453b1f
push dword [ebp - 0x20]
mov esi, eax
neg esi
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esi, 1
jne 0x420f26
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
push 0
push esi
call edi
mov esi, eax
test esi, esi
je 0x420f26
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp + 0x14], 0
mov edi, eax
je 0x420a40
mov ecx, dword [edi + 0xb6]
lea esi, [edi + 0xce]
push esi
push 0x67
mov dword [0x47cbc8], ecx
mov eax, dword [edi + 0x1c6]
push 0x64
mov dword [0x47cbcc], eax
push dword [edi + 0x26]
mov dword [0x47cc18], 0x420672
mov dword [0x47cc1c], 0x418adc
mov dword [0x47cc20], 0x41714f
call fcn.0043c3a1
test eax, eax
jne 0x420f26
mov eax, dword [esi]
mov dword [0x47cbd0], eax
xor eax, eax
jmp 0x420a51
xor eax, eax
mov dword [0x47cc18], eax
mov dword [0x47cc1c], eax
mov dword [0x47cc20], eax
test byte [edi + 0x22], 0x80
je 0x420ef8
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0xe6]
test eax, eax
je 0x420aa8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [eax + 0x44], 2
jne 0x420a8e
movsx ecx, word [eax + 0x3e]
movsx eax, word [eax + 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
push dword [edi + 0xe6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp - 0x18]
push 1
push edi
push esi
call fcn.0045377b
jmp 0x420aab
mov esi, dword [ebp - 0x18]
or dword [edi + 0x42], 0xffffffff
cmp ebx, 0x454
je 0x420ac2
lea eax, [ebx - 0x457]
cmp eax, 2
ja 0x420aca
mov eax, dword [ebp - 0x34]
mov dword [0x47cbf8], eax
lea eax, [edi + 0xd6]
push eax
push dword [edi + 0xde]
push 0x65
push dword [edi + 0x26]
call fcn.0043c3a1
test eax, eax
jne 0x420ef8
lea eax, [ebx - 0x44e]
cmp eax, 0xb
ja case.0x420aff.1104
movzx eax, byte [eax + 0x420f51]
jmp dword [eax*4 + 0x420f39]
xor ecx, ecx
lea eax, [ebp - 0x38]
push ecx
push ecx
push 0x421b14
push eax
push ecx
mov dword [ebp - 0x38], ecx
push dword [edi + 0xd6]
push dword [edi + 0x26]
call fcn.0041e0b3
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], ecx
cmp ebx, 0x458
jne 0x420b82
push ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004513c9
test eax, eax
je 0x420ef8
push 1
call fcn.0044bc76
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub ecx, 1
push 0
pop eax
cmovs ecx, eax
sub edx, 1
mov dword [ebp - 0x24], ecx
cmovs edx, eax
mov dword [ebp - 0x28], edx
cmp ecx, edx
jle 0x420b8b
mov eax, edx
mov edx, ecx
mov ecx, eax
jmp 0x420b85
dec ecx
mov edx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
movzx ecx, cx
mov ebx, 0x458
shl ecx, 0x10
movzx eax, dx
or ecx, eax
mov dword [0x47cbf8], ecx
and dword [ebp - 0x30], 0
mov dword [0x47cb8c], 0x41fa10
jmp case.0x420aff.1104
mov eax, dword [ebp - 0x40]
test eax, eax
js case.0x420aff.1102
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0x65
push dword [edi + 0x26]
call fcn.0043c164
test eax, eax
jne case.0x420aff.1102
push dword [ebp - 0x2c]
call fcn.0043d6c9
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x44]
push eax
call fcn.0041e296
push 1
push 4
add eax, 0x2c
push eax
call fcn.0046bad9
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x2c]
call fcn.0043d8ec
jmp case.0x420aff.1102
movsx eax, word [0x47cbfa]
mov dword [edi + 0x42], eax
movsx eax, word [0x47cbf8]
mov dword [edi + 0x46], eax
jmp case.0x420aff.1102
movsx eax, word [0x47cbfa]
xor ebx, ebx
mov dword [ebp - 0x54], eax
movsx eax, word [0x47cbf8]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x50], eax
cmp dword [edi + 0x1de], 0
mov eax, dword [edi + 0xe2]
mov dword [0x47cc24], eax
mov dword [0x47cc28], esi
je 0x420c7f
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push dword [edi + 0x1de]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
test dword [edi + 0x22], 0x200
jne 0x420c96
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x420ca0
cmp eax, 0x1f4
jge 0x420ca0
mov dword [0x47cbb0], 1
test ebx, ebx
jle 0x420d4d
push dword [ebp - 0x1c]
push ebx
push 0x41fcdc
push 0x41f8ce
call fcn.0041e006
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x49eeb8
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
mov edx, dword [ebp - 0x1c]
lea ecx, [edi + 0xea]
xor eax, eax
mov dword [0x47cbe0], ecx
mov dword [0x47cb98], eax
mov dword [0x47cbf4], eax
cmp dword [edi + 0x32], eax
je 0x420cf4
test edx, edx
jne 0x420cfb
mov dword [ecx + 4], 1
lea eax, [edi + 0x16a]
mov dword [0x47cbe4], eax
cmp dword [edi + 0x36], 0
je 0x420d10
test edx, edx
jne 0x420d16
mov dword [eax], 1
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push 0
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x72]
push dword [edi + 0x6e]
push dword [edi + 0xd6]
push dword [edi + 0x26]
push dword [ebp - 0x3c]
push esi
call fcn.0041e3a3
and dword [0x47cb8c], 0
push esi
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [0x47cb94], 0
je 0x420d5a
test ebx, ebx
jne 0x420dc8
push 0
push 0
push 0x41f166
push 0x41f0e9
call fcn.0041e006
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x49eeb8
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
xor eax, eax
xor ecx, ecx
inc ecx
mov dword [0x47cbe0], eax
push ecx
push eax
mov dword [0x47cbe4], eax
mov dword [0x47cbf4], eax
lea eax, [ebp - 0x14]
push eax
xor eax, eax
mov dword [0x47cb98], ecx
push eax
push eax
push dword [edi + 0x72]
push dword [edi + 0x6e]
push dword [edi + 0xd6]
push dword [edi + 0x26]
push dword [ebp - 0x3c]
push esi
call fcn.0041e3a3
push esi
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor ecx, ecx
lea eax, [edi + 0xea]
lea esi, [edi + 0x16a]
mov dword [0x47cbb0], ecx
mov edx, 0x4000
mov dword [0x47cbe0], eax
mov dword [0x47cbe4], esi
test dword [eax + 4], edx
jne 0x420e0a
test dword [esi], edx
jne 0x420e0a
cmp dword [eax + 4], 1
jne 0x420e00
cmp dword [edi + 0x32], ecx
jne 0x420e0a
cmp dword [esi], 1
jne 0x420e30
cmp dword [edi + 0x36], ecx
je 0x420e30
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
call fcn.004201ea
push esi
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea esi, [edi + 0x16a]
push dword [edi + 0xd6]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x32], ecx
mov eax, dword [eax + 0x48]
mov dword [edi + 0x36], eax
cmp ebx, 0x45a
je 0x420e63
cmp dword [ebp - 0x1c], 0
jne 0x420e63
push 1
push dword [edi + 0x1d6]
call fcn.0042dbb7
push dword [edi + 0xd6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
cmp dword [ebp + 0x24], eax
cmovne ebx, eax
sub ebx, eax
je 0x420ebc
sub ebx, 0x457
je 0x420ea7
dec ebx
sub ebx, 1
je 0x420ea7
cmp dword [ebp - 0x48], eax
jne 0x420e93
cmp dword [ebp + 0x1c], eax
je 0x420e96
xor eax, eax
inc eax
mov ebx, dword [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
push ebx
call fcn.004210ed
jmp 0x420ebf
push dword [ebp + 0x1c]
mov ebx, dword [ebp - 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
push ebx
call fcn.0041e825
jmp 0x420ebf
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x4c], 0
je 0x420eda
push 1
push 0
push 0
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push edi
push ebx
call fcn.00420f5d
xor ebx, ebx
cmp dword [edi + 0xe6], ebx
jne 0x420eef
cmp dword [edi + 0x32], ebx
jne 0x420eef
mov dword [edi + 0xee], ebx
cmp dword [edi + 0x36], ebx
jne 0x420efa
mov dword [esi], ebx
jmp 0x420efa
xor ebx, ebx
push dword [edi + 0xd6]
call fcn.0043d8ec
push dword [ebp - 0x20]
mov dword [0x47cc18], ebx
mov dword [0x47cc1c], ebx
mov dword [0x47cc20], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call fcn.0044bc76
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 0x20