Function at 0x59c9d4
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x616d37
mov eax, dword fs:[0]
push eax
sub esp, 0x144
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x28]
mov ecx, dword [0x6f0d4c]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.0059ab50
mov eax, dword [ebx + 0x114]
mov ebp, dword [0x6f0d4c]
push 0
push 0
push 0x101f
push eax
mov dword [esp + 0x170], 0
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x16c]
mov esi, eax
mov eax, dword [ecx]
or edi, 0xffffffff
cmp eax, esi
jne 0x59c60e
mov eax, dword [ecx + 8]
mov edx, dword [0x6f0d4c]
mov dword [esp + 0x8c], edi
cmp eax, 0xfffffecc
ja 0x59c4c9
je case.0x59c4ab.328
add eax, 0x149
cmp eax, 3
ja case.default.0x59c4ab
jmp dword [eax*4 + 0x59ce88]
lea ecx, [esp + 0x48]
mov dword [esp + 0x160], edi
call fcn.0059abd0
mov al, 1
jmp 0x59c9b8
cmp eax, 0xfffffecd
je case.0x59c4ab.327
cmp eax, 0xfffffece
je case.0x59c4ab.326
cmp eax, 0xfffffffb
je 0x59c515
mov edx, dword [esp + 0x170]
mov eax, dword [esp + 0x168]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.0056db50
lea ecx, [esp + 0x48]
mov bl, al
mov dword [esp + 0x160], edi
call fcn.0059abd0
mov al, bl
jmp 0x59c9b8
mov ebp, dword [0x6f5c0c]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x94], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x114]
push ecx
push eax
mov dword [esp + 0x30], edx
call edi
test eax, eax
je 0x59c56b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
push 0
push 0
push 0x1200
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x59c73d
lea edx, [esp + 0x30]
push edx
push edi
push 0x1207
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x59c5c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x59c5cc
inc edi
cmp edi, dword [esp + 0x18]
jl 0x59c591
jmp 0x59c73d
mov dword [esp + 0x90], edi
jmp 0x59c73d
mov ebp, dword [0x6f5c10]
cmp ebp, edx
jne 0x59c5f2
mov ebp, dword [0x6f5c14]
cmp ebp, edx
jne 0x59c5f2
mov ebp, dword [0x6f5c18]
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc8], edx
mov dword [esp + 0x90], eax
jmp 0x59c73d
cmp eax, dword [ebx + 0x114]
jne 0x59c9a2
cmp byte [ebx + 0x16c], 0
mov edx, ecx
mov edi, dword [edx + 0xc]
lea esi, [edx + 0xc]
je 0x59c640
mov eax, dword [edx + 8]
cmp eax, 0xffffff9b
je 0x59cddb
cmp eax, 0xffffff9c
je 0x59cddb
test edi, edi
jl 0x59c671
mov ecx, ebx
call fcn.00599880
cmp edi, eax
jge 0x59c671
mov edx, dword [ebx + 0x114]
mov eax, edi
call fcn.00599950
mov edx, dword [esp + 0x16c]
test eax, eax
je 0x59c671
mov ecx, dword [eax + 4]
mov dword [esp + 0xc0], ecx
mov eax, dword [edx + 8]
lea ecx, [eax + 0xb3]
cmp ecx, 0xb0
ja case.0x59c68d.178
movzx ecx, byte [ecx + 0x59cedc]
jmp dword [ecx*4 + 0x59ce98]
mov ebp, dword [0x6f5be4]
cmp ebp, dword [0x6f0d4c]
jne 0x59c6a8
mov ebp, dword [0x6f5be0]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
jmp 0x59c73d
xor ecx, ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
mov byte [esp + 0x160], 1
cmp eax, 0xffffff97
jne 0x59c6f1
push esi
lea ecx, [esp + 0xdc]
call fcn.005999e0
jmp 0x59c6f8
mov dword [esp + 0xdc], esi
mov eax, dword [ebx + 0x114]
mov edi, dword [esp + 0xdc]
mov ebp, dword [0x6f5be8]
push eax
lea esi, [esp + 0xa0]
call fcn.0059a670
mov edx, dword [esp + 0xac]
add esp, 4
mov dword [esp + 0x8c], edx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x160], 0
call fcn.0059ac30
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0x54], ebp
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x48]
push edx
call eax
mov ecx, dword [esp + 0x16c]
mov byte [esp + 0x17], al
mov eax, dword [ecx + 8]
cmp eax, 0xffffff50
je 0x59ce3c
cmp eax, 0xffffff96
je 0x59ce3c
cmp eax, 0xffffff98
je 0x59ce1c
cmp byte [esp + 0x17], 0
je 0x59c797
mov eax, dword [esp + 0x170]
xor edx, edx
cmp byte [esp + 0x80], dl
sete dl
mov dword [eax], edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x160], 0xffffffff
call fcn.0059abd0
mov al, byte [esp + 0x17]
jmp 0x59c9b8
xor ecx, ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
mov byte [esp + 0x160], 2
cmp eax, 0xffffff96
jne 0x59c7e0
push esi
lea ecx, [esp + 0xdc]
call fcn.005999e0
jmp 0x59c7e7
mov dword [esp + 0xdc], esi
mov esi, dword [esp + 0xdc]
mov ecx, 0xf
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [esp + 0x130], esi
je 0x59c811
cmp dword [esp + 0x120], 0xffffffff
jne 0x59c84d
mov ecx, dword [ebx + 0x150]
cmp ecx, esi
je 0x59c845
call fcn.00550730
mov eax, dword [ebx + 0x150]
mov dword [eax + 0x114], esi
mov ecx, dword [ebx + 0x150]
cmp ecx, esi
je 0x59c83f
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [ebx + 0x150], esi
mov byte [esp + 0xd0], 1
mov edi, dword [esp + 0xdc]
mov ebp, dword [0x6f5bec]
push 0
lea esi, [esp + 0xa0]
call fcn.0059a670
mov eax, dword [esp + 0xac]
add esp, 4
mov dword [esp + 0x8c], eax
jmp 0x59c729
mov ecx, dword [edx + 0x10]
mov ebp, dword [0x6f5c08]
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x90], ecx
jmp 0x59c73d
mov ebp, dword [0x6f5bf4]
mov dword [esp + 0x8c], 0xffffffff
jmp 0x59c73d
cmp dword [ebx + 0x168], 0
je 0x59c9a2
mov ebp, dword [0x6f5bf0]
mov eax, edi
mov dword [esp + 0x8c], edi
call fcn.0059bc00
jmp 0x59c73d
mov ebp, dword [0x6f5c04]
mov dword [esp + 0x8c], edi
jmp 0x59c73d
test byte [edx + 0x1c], 8
je 0x59c996
cmp edi, 0xffffffff
je 0x59c996
mov eax, dword [esp + 0x16c]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], 0xe
call fcn.0059ae10
mov al, 1
test byte [esp + 0x18], al
jne 0x59c950
test byte [esp + 0x1c], al
je 0x59c950
mov ebp, dword [0x6f5c28]
mov dword [esp + 0x8c], edi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
and esi, 2
and eax, 2
cmp esi, eax
je 0x59c996
cmp ebp, dword [0x6f0d4c]
je 0x59c97f
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0x54], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x48]
push eax
call edx
jmp 0x59c986
mov dword [esp + 0x8c], edi
mov ebp, dword [0x6f5bf8]
test esi, esi
jne 0x59c996
mov ebp, dword [0x6f5bfc]
cmp ebp, dword [0x6f0d4c]
jne 0x59c73d
mov dword [esp + 0x160], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.0059abd0
xor al, al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret 0xc
movzx edi, word [esi]
push 4
push 1
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0059a020
mov esi, eax
cmp esi, 0xffffffff
je 0x59ca1e
cmp di, 0xd
je 0x59c9f7
cmp di, 0x20
jne 0x59ca1e
call fcn.0054c280
test al, al
jne 0x59ca1e
call fcn.0054c2a0
test al, al
jne 0x59ca1e
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x59ca1e
mov ebp, dword [0x6f5c24]
jmp 0x59ca44
mov ebp, dword [0x6f5c00]
movzx edi, di
push 0
push edi
call fcn.0054bc20
add esp, 8
mov dword [esp + 0x84], eax
test eax, eax
jne 0x59ca44
mov dword [esp + 0x84], edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0x8c], esi
cmp esi, 0xffffffff
je 0x59c73d
push esi
lea eax, [esp + 0xd8]
push eax
mov ecx, ebx
call fcn.0059b000
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x164], 3
call fcn.0050d6d0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x160], 0
call fcn.00401017
push esi
mov ecx, ebx
call fcn.0059b100
mov dword [esp + 0xc0], eax
jmp 0x59c73d
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x168]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0056db50
test al, al
jne 0x59cddb
cmp edi, 0xffffffff
je 0x59c9a2
mov ebp, dword [0x6f5c24]
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
mov dword [esp + 0x94], edi
call fcn.0059b000
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x164], 4
call fcn.0050d6d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 0
call fcn.00401017
push edi
mov ecx, ebx
call fcn.0059b100
mov dword [esp + 0xc0], eax
jmp 0x59c73d
mov edx, dword [esp + 0x170]
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x168]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0056db50
test al, al
jne 0x59cddb
xor eax, eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebx + 0x114]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 0x114]
lea edx, [esp + 0x30]
push edx
push 0
push 0x1012
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x59c73d
test byte [esp + 0x38], 0xe
je 0x59c73d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebp, dword [0x6f5c1c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
jmp 0x59c73d
mov eax, dword [esp + 0x16c]
push eax
mov ecx, ebx
call fcn.0059c320
mov ecx, dword [esp + 0x170]
test eax, eax
mov dword [ecx], eax
setne bl
lea ecx, [esp + 0x48]
mov dword [esp + 0x160], 0xffffffff
call fcn.0059abd0
mov al, bl
jmp 0x59c9b8
mov esi, dword [esi]
mov edx, dword [edx + 0x10]
cmp esi, edx
mov ebp, dword [0x6f5c2c]
jg 0x59c9a2
mov ecx, ebx
mov dword [esp + 0x88], esi
call fcn.00599880
cmp edx, eax
jge 0x59cc4c
mov dword [esp + 0x8c], edx
jmp 0x59c73d
dec eax
mov dword [esp + 0x8c], eax
jmp 0x59c73d
mov eax, dword [ebx + 0xcc]
shr eax, 9
test al, 1
je case.0x59c68d.178
mov ecx, ebx
call fcn.00599880
cmp eax, 0x3e8
jg case.0x59c68d.178
mov ecx, dword [esp + 0x170]
mov dword [ecx], 0xffffffff
test byte [edx + 0x10], 2
je 0x59c9a2
mov edx, dword [esp + 0x16c]
mov ebp, dword [edx + 0x14]
push ebp
call fcn.0050ccf0
mov esi, dword [esi]
add esp, 4
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00599880
cmp esi, eax
mov dword [esp + 0x1c], eax
jg 0x59c9a2
mov edi, esi
cmp edi, eax
jne 0x59ccc7
xor edi, edi
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.0059b000
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push eax
push ebp
call fcn.005b6431
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x20]
sete byte [esp + 0x17]
call fcn.00401017
cmp byte [esp + 0x17], 0
jne 0x59cd07
inc edi
cmp edi, esi
je 0x59cd12
mov eax, dword [esp + 0x1c]
jmp 0x59ccc1
mov esi, dword [esp + 0x170]
mov dword [esi], edi
jmp 0x59cd19
mov esi, dword [esp + 0x170]
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, edi
jne 0x59cd2e
mov dword [esp + 0x160], edi
jmp 0x59c9ad
push 6
push 6
push eax
mov ecx, ebx
call fcn.0059c270
mov edx, dword [esi]
push edx
mov ecx, ebx
call fcn.0059a170
lea ecx, [esp + 0x48]
mov dword [esp + 0x160], edi
call fcn.0059abd0
mov al, 1
jmp 0x59c9b8
mov eax, dword [ebx + 0xcc]
shr eax, 9
test al, 1
je case.0x59c68d.178
test byte [esi], 1
mov edi, dword [esi + 4]
je 0x59cdb6
mov eax, dword [esi + 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c4]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x14]
dec eax
push eax
push ecx
push edx
call fcn.005bda60
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401017
test byte [esi], 2
je 0x59cdcf
mov ecx, dword [esi + 8]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2cc]
push ecx
push edi
mov ecx, ebx
call edx
mov dword [esi + 0x1c], eax
test byte [esi], 8
je 0x59cddb
mov dword [esi + 0x10], 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x160], 0xffffffff
call fcn.0059abd0
mov al, 1
jmp 0x59c9b8
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x168]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0056db50
mov bl, al
jmp 0x59cc00
mov ecx, dword [esp + 0x170]
mov dword [ecx], 1
mov ecx, ebx
call fcn.0059bea0
mov dword [ebx + 0x168], 0
jmp 0x59cddb
movzx edx, byte [esp + 0x80]
mov eax, dword [esp + 0x170]
mov dword [eax], edx
mov ecx, dword [ebx + 0x150]
xor esi, esi
cmp ecx, esi
je 0x59cddb
call fcn.00550730
mov eax, dword [ebx + 0x150]
mov dword [eax + 0x114], esi
mov ecx, dword [ebx + 0x150]
cmp ecx, esi
je 0x59ce7d
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [ebx + 0x150], esi
jmp 0x59cddb