Function at 0x42f8d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffff65
ja 0x42fdbf
je 0x42fd06
cmp eax, 0xfffffe64
ja 0x42fb12
je 0x42fd06
cmp eax, 0xfffffcc1
je 0x42fa59
cmp eax, 0xfffffe38
je case.0x42fdd2.109
cmp eax, 0xfffffe3d
jne case.0x42fdd2.107
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
cmp dword [ebx + 0x5c], 0
jne 0x42fef8
xor eax, eax
lea edx, [ebx + 0x70]
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30c]
cmp dword [ebx + 0x288], 0
mov dword [ebp - 0x3a8], edx
je 0x42fa20
mov ecx, dword [esi + 0x5c]
mov dword [edx], ecx
mov eax, dword [ecx + 8]
test eax, eax
je 0x42f980
mov ecx, eax
mov eax, dword [ecx + 8]
test eax, eax
jne 0x42f977
mov dword [ebx + 0x6c], ecx
lea edx, [ebp - 0x30c]
mov eax, dword [esi + 0x3c]
push 0x180
mov dword [ebx + 0x274], eax
mov dword [ebx + 0x28c], 1
mov dword [ebx + 0x290], 0
call fcn.00429050
mov ecx, eax
add esp, 4
mov eax, 0x4a77b8
mov dword [ebp - 0x3b0], ecx
sub eax, ecx
mov esi, 4
mov edx, ecx
mov dword [ebp - 0x3ac], eax
nop
lea ecx, [esi + 0x7ffffffa]
test ecx, ecx
je 0x42fa10
movzx eax, word [eax + edx]
mov ecx, eax
test ax, ax
je 0x42fa09
mov eax, dword [ebp - 0x3ac]
mov word [edx], cx
add edx, 2
sub esi, 1
jne 0x42f9d0
sub edx, 2
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x3b0]
add eax, 6
jmp 0x42fa26
test esi, esi
jne 0x42fa10
sub edx, 2
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x3b0]
add eax, 6
jmp 0x42fa26
mov dword [ebp - 0x3a8], edx
push 0x40
push eax
push 0x68
push dword [0x4b2a34]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x3a8]
mov ecx, ebx
mov edx, dword [edx]
call fcn.0042a690
jmp 0x42fee5
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffeb
push edi
call ebx
mov esi, eax
test esi, esi
je 0x42fef8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42fef8
lea ecx, [ebp - 0x31c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x310]
sub eax, dword [ebp - 0x318]
cmp eax, dword [esi + 0x54]
je 0x42fef8
push 0xffffffffffffffeb
push edi
mov dword [esi + 0x54], eax
call ebx
mov esi, eax
test esi, esi
je 0x42fef8
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
test eax, eax
je 0x42fac2
push 1
push 0
push eax
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42fad0
push 1
push 0
push eax
call edi
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x54]
mov dword [0x4b4258], ecx
mov ecx, esi
mov dword [0x4b4250], eax
mov dword [0x4b424c], 0
mov dword [0x4b4254], 0
call fcn.00429950
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffff50
je 0x42fb77
cmp eax, 0xffffff51
jne case.0x42fdd2.107
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x42fb3e
cmp dword [ecx + 0xc], 0
jne 0x42fda9
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x42fb61
test byte [eax + 0x30], 0x44
jne 0x42fb61
xor al, al
movzx eax, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
mov al, 1
movzx eax, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0x10c
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0047df00
mov ebx, dword [esi + 0x20]
add esp, 0xc
test ebx, ebx
je 0x42fcf0
cmp word [ebx], 0
je 0x42fcf0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x3a4], 0
push 0xfde9
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 0x39c], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x3a0], eax
test eax, eax
je 0x42fc2c
lea ecx, [eax + 1]
cmp ecx, 0x80
jbe 0x42fc0f
push ecx
call fcn.0047c4da
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x3a4], ecx
jmp 0x42fc15
mov ecx, dword [ebp - 0x3a4]
push 0
push 0
inc eax
push eax
push ecx
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x114]
mov eax, ecx
mov edx, 0x104
sub ebx, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x42fc61
mov al, byte [ebx + ecx]
test al, al
je 0x42fc5c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x42fc41
jmp 0x42fc60
test edx, edx
jne 0x42fc61
dec ecx
mov eax, dword [esi + 0x2c]
mov edx, 0x115
mov byte [ecx], 0
mov ecx, edi
mov dword [ebp - 0x11c], eax
mov esi, dword [eax + 8]
lea eax, [ebp - 0x11c]
push eax
push 0x433300
call fcn.004160e0
add esp, 8
cmp dword [ebp - 0x118], 0
je 0x42fcc4
mov eax, dword [ebp - 0x3a4]
test eax, eax
je case.0x42fdd2.107
lea ecx, [ebp - 0x39c]
cmp eax, ecx
je case.0x42fdd2.107
push eax
call fcn.004568b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x140a
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x3a4]
test eax, eax
je 0x42fcf0
lea ecx, [ebp - 0x39c]
cmp eax, ecx
je 0x42fcf0
push eax
call fcn.004568b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0xc]
mov ecx, eax
cmp eax, 8
je 0x42fd6d
cmp eax, 0xd
je 0x42fd44
cmp ecx, 0x2e
jne case.0x42fdd2.107
push 0
push 0x9c51
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0
push 0x9c49
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
mov ecx, dword [esi + 0x2c]
cmp ecx, dword [esi + 0x24]
jne 0x42fda9
push dword [esi + 0x274]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 3
push 0x110a
push dword [esi + 0x20]
call edi
test eax, eax
je 0x42fda9
push eax
push 9
push 0x110b
push dword [esi + 0x20]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
add eax, 0x6d
cmp eax, 0x6a
ja case.0x42fdd2.107
movzx eax, byte [eax + 0x4300c4]
jmp dword [eax*4 + 0x4300a8]
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x9c4e
mov ecx, 0x4b3f4c
mov edi, eax
call fcn.004221b0
test eax, eax
je 0x42fe16
mov ecx, dword [eax]
test ecx, ecx
je 0x42fe16
push 1
push dword [eax + 0x18]
push dword [0x4b3f40]
call ecx
add esp, 0xc
cmp eax, 1
je case.0x42fdd2.107
mov eax, dword [esi]
cmp eax, dword [edi + 0x20]
je 0x42fe26
cmp eax, dword [edi + 0x24]
jne case.0x42fdd2.107
cmp dword [esi + 8], 0xfffffe38
jne 0x42fe34
mov eax, dword [esi + 0x3c]
jmp 0x42fe36
xor eax, eax
push ecx
push 0
mov dword [edi + 0x278], eax
mov edx, edi
push 0
push dword [esi]
mov ecx, 0x42a600
call fcn.0041edb0
add esp, 0x10
mov dword [edi + 0x278], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 0x10]
cmp edx, dword [eax + 0x60]
je 0x42fe8a
mov dword [eax + 0x60], edx
mov dl, 1
jmp 0x42fe91
cmp byte [eax + 0x64], 0
sete dl
push 0x428b70
push eax
push 0x1030
mov byte [eax + 0x64], dl
push dword [eax + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 0x14]
mov ebx, eax
cmp ecx, dword [esi + 0x18]
je 0x42fef8
mov dword [ebx + 0x28c], 0xffffffff
mov dword [ebx + 0x290], 0xffffffff
push 0
push 0x64
push 0x1502
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi]
mov ebx, eax
cmp ecx, dword [ebx + 0x2c]
je 0x42fda9
mov ecx, dword [ebx + 0x284]
and ecx, 0xfeffffff
mov dword [ebx + 0x284], ecx
mov eax, dword [esi]
cmp eax, dword [ebx + 0x20]
jne 0x42ff58
mov dword [ebx + 0x28c], 1
mov dword [ebx + 0x290], 0
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
jmp 0x42fee5
cmp eax, dword [ebx + 0x24]
jne case.0x42fdd2.107
push 0
push 0x64
push 0x1502
mov dword [ebx + 0x28c], 0xffffffff
or ecx, 0x1000000
mov dword [ebx + 0x290], 0xffffffff
mov eax, dword [esi]
push edi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x284], ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
jmp 0x42fda9
cmp dword [esi + 4], 0x2716
jne case.0x42fdd2.107
mov eax, dword [esi + 0xc]
mov edi, dword [esi]
cmp eax, 1
jne 0x42ffcb
mov eax, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
cmp eax, 0x10001
jne case.0x42fdd2.107
mov eax, dword [esi + 0x2c]
test eax, eax
je case.0x42fdd2.107
mov ecx, dword [eax + 0x30]
test cl, 3
je case.0x42fdd2.107
test cl, 2
je 0x42fff9
mov dword [esi + 0x30], 0x8080
test byte [eax + 0x30], 1
je 0x430006
mov dword [esi + 0x30], 0xff
push 2
push dword [esi + 0x24]
push 0x102c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x430050
call dword [sym.imp.USER32.dll_GetFocus]
xor ecx, ecx
cmp eax, edi
setne cl
lea ecx, [ecx*2 + 0xd]
push ecx
call dword [sym.imp.USER32.dll_GetSysColor]
and dword [esi + 0x28], 0xfffffffe
mov dword [esi + 0x34], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x34], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 1
add eax, 0x9c49
push eax
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret