Function at 0x42f140
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d365
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x599680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x90]
call eax
test al, al
jne 0x42f18a
mov eax, dword [edi]
cmp eax, 0xd
jle 0x42f18a
cmp eax, 0x19
jl 0x42f19a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x88]
call eax
test al, al
jne 0x42f1bb
mov ecx, dword [esi + 0x24]
push edi
test ecx, ecx
je 0x42f1af
mov eax, dword [ecx]
call dword [eax + 0xd0]
jmp 0x42f78e
mov ecx, esi
call fcn.00424770
jmp 0x42f78e
mov eax, dword [edi]
cmp eax, 0x28
jne 0x42f304
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
add edi, 0xc
lea eax, [ebp - 0x28]
push eax
sub esp, 8
mov eax, dword [edi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, esi
call fcn.00430e30
test al, al
je 0x42f255
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42f78e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f246
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f7ac
push ecx
push edx
call fcn.00509f9e
add esp, 8
jmp 0x42f78e
mov ecx, dword [esi + 0x448]
test ecx, ecx
je 0x42f2ad
push edi
push ecx
call fcn.0042d040
test eax, eax
je 0x42f2ad
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42f78e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f29e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f7ac
push ecx
push edx
call fcn.00509f9e
add esp, 8
jmp 0x42f78e
push 0x7f01
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42f78e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f2f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f7ac
push ecx
push edx
call fcn.00509f9e
add esp, 8
jmp 0x42f78e
cmp eax, 0xa
jne 0x42f3b7
push 9
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42f37d
cmp byte [esi + 0x44d], 0
jne 0x42f37d
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42f78e
xor eax, eax
mov dword [ebp - 0x30], esi
mov word [ebp - 0x20], ax
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xf4]
mov ecx, dword [ecx + 0xf8]
mov dword [ebp - 0x34], 0x2e
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [eax + 0xd0]
jmp 0x42f78e
cmp byte [esi + 0x454], 0
je 0x42f39b
mov eax, dword [edi + 0x18]
cmp eax, 0x30
jb 0x42f78e
cmp eax, 0x39
ja 0x42f78e
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0x102
call dword [eax + 0x1dc]
jmp 0x42f78e
cmp eax, 8
jne 0x42f3c9
push edi
mov ecx, esi
call fcn.0042f7c0
jmp 0x42f78e
cmp eax, 0xe
jne 0x42f3d9
push edi
push 0x200
jmp 0x42f787
cmp eax, 0x18
jne 0x42f3fc
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x42f78e
push edi
mov ecx, esi
call fcn.00441b90
jmp 0x42f78e
cmp eax, 0x12
je 0x42f68d
cmp eax, 0x20
je 0x42f68d
cmp eax, 0x13
je 0x42f635
cmp eax, 0x22
je 0x42f635
test eax, eax
jne 0x42f443
mov ecx, esi
cmp byte [esi + 0x451], al
je 0x42f438
call fcn.0042e500
jmp 0x42f78e
push edi
push 0x203
jmp 0x42f789
cmp eax, 0x14
jne 0x42f453
push edi
push 0x204
jmp 0x42f787
cmp eax, 0x15
jne 0x42f463
push edi
push 0x205
jmp 0x42f787
cmp eax, 0x30
jne 0x42f4e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x42f78e
push edi
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ebx, eax
test ebx, ebx
je 0x42f78e
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.004221e0
mov ecx, dword [esi + 0x460]
mov edx, 1
sub ecx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x464]
sub eax, dword [ebp - 0x38]
cmp ecx, edx
mov dword [ebp - 0x2c], 2
cmovl ecx, edx
cmp eax, edx
mov dword [ebp - 0x28], ecx
cmovl eax, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
push ebx
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov byte [esi + 0x45c], 1
jmp 0x42f78e
cmp eax, 0x31
jne 0x42f4f3
mov byte [esi + 0x45c], 0
jmp 0x42f78e
cmp eax, 2
jne 0x42f54a
mov edi, dword [esi + 0x448]
test edi, edi
je 0x42f537
mov ecx, dword [edi + 0xc]
or dword [edi + 0x14], 0x20
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jns 0x42f518
and dword [edi + 0x14], 0xffffffdf
mov eax, dword [esi + 0x448]
push 0
push 0
push 0
mov ecx, dword [eax + 0xc]
push 7
mov eax, dword [ecx]
call dword [eax + 0xc]
push 1
mov ecx, esi
call fcn.00430820
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x84], 1
call dword [eax + 0x2c]
jmp 0x42f78e
cmp eax, 3
jne 0x42f3ef
mov edi, dword [esi + 0x448]
test edi, edi
je 0x42f592
mov ecx, dword [edi + 0xc]
or dword [edi + 0x14], 0x20
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jns 0x42f573
and dword [edi + 0x14], 0xffffffdf
mov eax, dword [esi + 0x448]
push 0
push 0
push 0
mov ecx, dword [eax + 0xc]
push 8
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
mov ecx, esi
call fcn.00430820
cmp byte [esi + 0x458], 0
mov byte [esi + 0x84], 0
mov byte [esi + 0x457], 0
je 0x42f5e2
cmp byte [esi + 0x451], 0
je 0x42f5e2
cmp byte [esi + 0x81], 0
je 0x42f5e2
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xffffffff
push ecx
push 0
push 0x437
mov ecx, esi
mov dword [ebp - 0x44], 0
call dword [eax + 0x1dc]
cmp byte [esi + 0x459], 0
je 0x42f61b
cmp byte [esi + 0x81], 0
je 0x42f61b
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0xffffffff
push ecx
push 0
push 0x437
mov ecx, esi
mov dword [ebp - 0x4c], 0
call dword [eax + 0x1dc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
push 0
call fcn.0044de80
mov ecx, eax
call fcn.0044dee0
jmp 0x42f78e
cmp byte [esi + 0x81], 0
je 0x42f682
cmp byte [esi + 0x457], 0
jne 0x42f682
cmp byte [esi + 0x459], 0
mov byte [esi + 0x457], 1
je 0x42f682
mov ecx, esi
call fcn.0042e500
test byte [esi + 0x48c], 4
mov ecx, esi
mov eax, dword [esi]
je 0x42f67c
call dword [eax + 0x198]
push edi
push 0x202
jmp 0x42f787
call dword [eax + 0x1a8]
push edi
push 0x202
jmp 0x42f787
mov eax, dword [esi + 0x59c]
sub eax, dword [esi + 0x598]
sar eax, 5
test eax, eax
je 0x42f76e
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov eax, dword [edi + 0xc]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
mov ecx, esi
call fcn.00430e30
test al, al
je 0x42f731
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42f6f1
push 0
push 0
push 0x2f
push esi
call fcn.0040e000
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42f78e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f725
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f7ac
push ecx
push edx
call fcn.00509f9e
add esp, 8
jmp 0x42f78e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42f76e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f764
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f7ac
push ecx
push edx
call fcn.00509f9e
add esp, 8
cmp dword [edi], 0x20
jne 0x42f781
push 1
call fcn.0044de80
mov ecx, eax
call fcn.0044dee0
push edi
push 0x201
mov ecx, esi
call fcn.0042f9f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509f60
mov esp, ebp
pop ebp
ret 4
call fcn.0051c85d
int3