Function at 0x559360
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5cefb7
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xcc]
mov edx, dword [esp + 0x128]
shr eax, 5
xor ebx, ebx
and al, 1
mov byte [esp + 0x14], 0
mov dword [esp + 0x30], ebx
mov byte [esp + 0x18], al
cmp edx, 0x7b
jne 0x55952a
mov ecx, dword [esp + 0x130]
movsx eax, cx
shr ecx, 0x10
xor esi, esi
xor edi, edi
movsx ecx, cx
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
je 0x559427
cmp ecx, 0xffffffff
je 0x559427
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.0050d760
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x114]
lea edx, [esp + 0x20]
push edx
push ebx
push 0x1111
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x559480
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x559480
mov eax, dword [ebp + 0x114]
push ebx
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x559480
mov edx, dword [ebp]
mov edx, dword [edx + 0x3a4]
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call edx
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x24]
mov edi, eax
mov ecx, dword [0x691c68]
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
lea ecx, [esp + 0x90]
call fcn.0056ae40
mov ecx, dword [ebp + 0x5c]
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x124], ebx
call edx
test al, al
je 0x5594c9
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x84]
mov dword [esp + 0x120], 0xffffffff
call fcn.005591e0
cmp byte [esp + 0x14], 0
jne 0x55950a
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00513740
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc
lea ecx, [edx - 0x200]
cmp ecx, 0xe
ja 0x559b0f
mov eax, dword [esp + 0x130]
movsx edi, ax
lea ecx, [esp + 0x4c]
push ecx
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp + 0x114]
push ebx
push 0x1111
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esp + 0x128]
add eax, 0xfffffe00
cmp eax, 5
ja case.0x559c1a.37
jmp dword [eax*4 + 0x559da0]
test ebx, ebx
je case.0x559c1a.37
cmp byte [esp + 0x18], 0
je case.0x559c1a.37
test byte [esp + 0x54], 0x46
je case.0x559c1a.37
mov eax, dword [esp + 0x12c]
mov dword [ebp + 0x18c], ebx
mov dword [ebp + 0x190], edi
mov dword [ebp + 0x194], esi
test al, 8
je 0x5595fe
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
mov edi, dword [ebp + 0x114]
mov esi, ebx
call fcn.00557290
mov esi, dword [ebp + 0x114]
push ebx
call fcn.005573d0
add esp, 4
mov dword [ebp + 0x188], 0
jmp 0x55950a
test al, 4
je 0x559692
cmp dword [ebp + 0x188], 0
jne 0x559632
mov eax, dword [ebp + 0x114]
push 0
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x188], eax
mov eax, dword [esp + 0x12c]
mov ecx, dword [ebp + 0x188]
test ecx, ecx
je 0x55966b
mov edi, dword [ebp + 0x114]
shr eax, 3
not al
and al, 1
movzx edx, al
push edx
push ebx
push ecx
call fcn.005572b0
mov esi, dword [ebp + 0x114]
add esp, 0xc
push ebx
call fcn.005573d0
add esp, 4
jmp 0x55950a
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.00557230
mov esi, dword [ebp + 0x114]
add esp, 4
push ebx
call fcn.005573d0
add esp, 4
jmp 0x55950a
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x20]
call fcn.004d0c00
mov edx, dword [ebp]
mov edx, dword [edx + 0x334]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x124], 1
call edx
test eax, eax
je 0x5596e2
cmp eax, 1
ja 0x5596e2
mov eax, dword [esp + 0x28]
cmp dword [eax], ebx
jne 0x5596e2
mov dword [ebp + 0x18c], 0
jmp 0x55973d
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.005571e0
test al, al
jne 0x559729
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
mov eax, dword [ebp + 0x114]
push 0
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.00557230
add esp, 4
mov esi, dword [ebp + 0x114]
push ebx
call fcn.005573d0
add esp, 4
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
mov dword [ebp + 0x188], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.004d0ca0
jmp 0x5594e0
cmp byte [esp + 0x18], 0
je case.0x559c1a.37
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.005571e0
test al, al
jne 0x5597b4
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x384]
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov dword [esp + 0x44], ebx
call edx
mov esi, dword [ebp + 0x114]
push ebx
call fcn.005573d0
mov esi, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push eax
push esi
push edi
push ecx
mov ecx, ebp
call fcn.00510c50
mov eax, dword [ebp + 0x114]
push 0xfffffffffffffff4
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [ebp + 0x114]
lea edx, [esp + 0x20]
push edx
push eax
push 0x4e
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0xfffffffb
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x55950a
cmp dword [ebp + 0x18c], 0
je 0x559962
mov eax, dword [ebp + 0x190]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x194]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
push 0x44
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x1c], eax
jg 0x55985c
push 0x45
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x18], eax
jle 0x559962
push 0x68
lea eax, [esp + 0x88]
push 0
push eax
call fcn.00576e90
mov eax, dword [ebp + 0x114]
add esp, 0xc
push 0xfffffffffffffff4
push eax
mov dword [esp + 0x8c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp + 0x18c]
mov edx, dword [ebp + 0x114]
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x5c]
push ecx
push eax
push 0x113e
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
push edx
mov dword [esp + 0x9c], 0xfffffe38
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x6c], 0xc
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0xe4], ecx
mov ecx, dword [ebp + 0x2c]
push eax
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], esi
mov dword [ebp + 0x18c], 0
mov edx, dword [ecx + 0x114]
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x14], 1
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je 0x5594e0
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.0056b240
test ebx, ebx
je 0x5594e0
mov ecx, dword [ebp + 0x180]
call fcn.0056b330
mov ecx, dword [ebp + 0x114]
push ebx
push 8
push 0x110b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x180]
call fcn.0056b300
jmp 0x5594e0
test ebx, ebx
je case.0x559584.517
cmp byte [esp + 0x18], 0
je case.0x559584.517
lea ecx, [esp + 0x20]
call fcn.004d0c00
mov edx, dword [ebp]
mov edx, dword [edx + 0x334]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x124], 2
call edx
cmp eax, 1
jbe 0x559a47
test byte [esp + 0x12c], 0xc
jne 0x559a47
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov eax, dword [ebp + 0x114]
push ebx
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.00557230
mov esi, dword [ebp + 0x114]
push ebx
call fcn.005573d0
mov esi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [ebp + 0x18c], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.004d0ca0
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je case.0x559c1a.37
call fcn.0056b210
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je 0x559a8b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
lea eax, [esp + 0x34]
push eax
mov dword [ebp + 0x180], 0
mov ecx, dword [0x691c5c]
push ebp
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x40], ebx
call fcn.0056ae40
mov ecx, dword [ebp + 0x5c]
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x124], 3
call edx
mov eax, dword [ebp + 0x114]
push 0
push 8
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x84]
mov dword [esp + 0x120], 0xffffffff
call fcn.005591e0
jmp case.0x559c1a.37
cmp edx, 7
je 0x559b1d
cmp edx, 8
jne 0x559bb6
test al, al
je 0x559bb6
lea ecx, [esp + 0x20]
call fcn.004d0c00
mov eax, dword [ebp]
mov edx, dword [eax + 0x334]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov dword [esp + 0x124], 4
call edx
mov ebx, eax
xor esi, esi
test ebx, ebx
jbe 0x559b9d
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp + 0x114]
lea edx, [esp + 0x4c]
push edx
push 1
push 0x1104
push eax
mov dword [esp + 0x5c], ecx
call edi
test eax, eax
je 0x559b98
mov eax, dword [ebp + 0x114]
push 0
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
inc esi
cmp esi, ebx
jb 0x559b60
lea ecx, [esp + 0x20]
mov dword [esp + 0x120], 0xffffffff
call fcn.004d0ca0
jmp case.0x559c1a.37
cmp edx, 0x100
jne 0x559d2e
test al, al
je case.0x559c1a.37
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
setl bl
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
test ax, ax
mov eax, dword [ebp + 0x114]
push 0x110a
push eax
setl byte [esp + 0x28]
call edi
mov ecx, dword [esp + 0x12c]
mov esi, eax
lea eax, [ecx - 0x20]
cmp eax, 8
ja case.0x559c1a.37
movzx edx, byte [eax + 0x559dc8]
jmp dword [edx*4 + 0x559db8]
test bl, bl
je 0x559c35
mov edi, dword [ebp + 0x114]
call fcn.00557290
jmp 0x55950a
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, esi
call fcn.00557230
add esp, 4
jmp 0x55950a
test bl, bl
jne 0x559c76
cmp byte [esp + 0x18], bl
jne 0x559c76
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
jmp case.0x559c1a.37
test esi, esi
je case.0x559c1a.37
mov edx, dword [esp + 0x130]
push edx
push ecx
push 0x100
mov ecx, ebp
call fcn.00513740
mov eax, dword [ebp + 0x114]
xor ecx, ecx
cmp dword [esp + 0x12c], 0x26
push esi
sete cl
add ecx, 6
push ecx
push 0x110a
push eax
call edi
test eax, eax
jne 0x559cb9
mov eax, esi
cmp byte [esp + 0x18], 0
je 0x559cec
cmp dword [ebp + 0x188], 0
jne 0x559ccf
mov dword [ebp + 0x188], esi
mov edx, dword [ebp + 0x188]
mov edi, dword [ebp + 0x114]
push 1
push eax
push edx
call fcn.005572b0
add esp, 0xc
jmp 0x55950a
mov esi, dword [ebp + 0x114]
push eax
call fcn.005573d0
add esp, 4
jmp 0x55950a
test bl, bl
jne case.0x559c1a.37
cmp byte [esp + 0x18], bl
jne case.0x559c1a.37
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov dword [ebp + 0x188], 0
jmp case.0x559c1a.37
cmp edx, 0x111
jne case.0x559c1a.37
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.0050ce60
mov edx, 0x200
cmp word [esp + 0x18], dx
jne case.0x559c1a.37
mov ecx, dword [ebp + 0x164]
cmp ecx, ebx
je case.0x559c1a.37
mov eax, dword [ecx]
mov edx, dword [eax + 0x1d8]
call edx
cmp eax, dword [esp + 0x48]
jne case.0x559c1a.37
push ebx
mov ecx, ebp
call fcn.00558640
jmp 0x55950a