Function at 0x599b00
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x6192e7
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
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 0x599cca
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 0x599bc7
cmp ecx, 0xffffffff
je 0x599bc7
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.0054e050
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 0x599c20
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x599c20
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 0x599c20
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 [0x6f7e40]
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
lea ecx, [esp + 0x90]
call fcn.005ab5e0
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 0x599c69
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x84]
mov dword [esp + 0x120], 0xffffffff
call fcn.00599980
cmp byte [esp + 0x14], 0
jne 0x599caa
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.00554000
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 0x59a2af
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.0x59a3ba.37
jmp dword [eax*4 + 0x59a540]
test ebx, ebx
je case.0x59a3ba.37
cmp byte [esp + 0x18], 0
je case.0x59a3ba.37
test byte [esp + 0x54], 0x46
je case.0x59a3ba.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 0x599d9e
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
mov edi, dword [ebp + 0x114]
mov esi, ebx
call fcn.00597a30
mov esi, dword [ebp + 0x114]
push ebx
call fcn.00597b70
add esp, 4
mov dword [ebp + 0x188], 0
jmp 0x599caa
test al, 4
je 0x599e32
cmp dword [ebp + 0x188], 0
jne 0x599dd2
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 0x599e0b
mov edi, dword [ebp + 0x114]
shr eax, 3
not al
and al, 1
movzx edx, al
push edx
push ebx
push ecx
call fcn.00597a50
mov esi, dword [ebp + 0x114]
add esp, 0xc
push ebx
call fcn.00597b70
add esp, 4
jmp 0x599caa
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.005979d0
mov esi, dword [ebp + 0x114]
add esp, 4
push ebx
call fcn.00597b70
add esp, 4
jmp 0x599caa
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x20]
call fcn.00511750
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 0x599e82
cmp eax, 1
ja 0x599e82
mov eax, dword [esp + 0x28]
cmp dword [eax], ebx
jne 0x599e82
mov dword [ebp + 0x18c], 0
jmp 0x599edd
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.00597980
test al, al
jne 0x599ec9
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.005979d0
add esp, 4
mov esi, dword [ebp + 0x114]
push ebx
call fcn.00597b70
add esp, 4
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
mov dword [ebp + 0x188], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.00511730
jmp 0x599c80
cmp byte [esp + 0x18], 0
je case.0x59a3ba.37
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.00597980
test al, al
jne 0x599f54
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.00597b70
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.00551510
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 0x599caa
cmp dword [ebp + 0x18c], 0
je 0x59a102
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 0x599ffc
push 0x45
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x18], eax
jle 0x59a102
push 0x68
lea eax, [esp + 0x88]
push 0
push eax
call fcn.005b79e0
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 0x599c80
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005ab9e0
test ebx, ebx
je 0x599c80
mov ecx, dword [ebp + 0x180]
call fcn.005abad0
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.005abaa0
jmp 0x599c80
test ebx, ebx
je case.0x599d24.517
cmp byte [esp + 0x18], 0
je case.0x599d24.517
lea ecx, [esp + 0x20]
call fcn.00511750
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 0x59a1e7
test byte [esp + 0x12c], 0xc
jne 0x59a1e7
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.005979d0
mov esi, dword [ebp + 0x114]
push ebx
call fcn.00597b70
mov esi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [ebp + 0x18c], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.00511730
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je case.0x59a3ba.37
call fcn.005ab9b0
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je 0x59a22b
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 [0x6f7e34]
push ebp
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x40], ebx
call fcn.005ab5e0
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.00599980
jmp case.0x59a3ba.37
cmp edx, 7
je 0x59a2bd
cmp edx, 8
jne 0x59a356
test al, al
je 0x59a356
lea ecx, [esp + 0x20]
call fcn.00511750
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 0x59a33d
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 0x59a338
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 0x59a300
lea ecx, [esp + 0x20]
mov dword [esp + 0x120], 0xffffffff
call fcn.00511730
jmp case.0x59a3ba.37
cmp edx, 0x100
jne 0x59a4ce
test al, al
je case.0x59a3ba.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.0x59a3ba.37
movzx edx, byte [eax + 0x59a568]
jmp dword [edx*4 + 0x59a558]
test bl, bl
je 0x59a3d5
mov edi, dword [ebp + 0x114]
call fcn.00597a30
jmp 0x599caa
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.005979d0
add esp, 4
jmp 0x599caa
test bl, bl
jne 0x59a416
cmp byte [esp + 0x18], bl
jne 0x59a416
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
jmp case.0x59a3ba.37
test esi, esi
je case.0x59a3ba.37
mov edx, dword [esp + 0x130]
push edx
push ecx
push pe_nt_image_headers32
mov ecx, ebp
call fcn.00554000
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 0x59a459
mov eax, esi
cmp byte [esp + 0x18], 0
je 0x59a48c
cmp dword [ebp + 0x188], 0
jne 0x59a46f
mov dword [ebp + 0x188], esi
mov edx, dword [ebp + 0x188]
mov edi, dword [ebp + 0x114]
push 1
push eax
push edx
call fcn.00597a50
add esp, 0xc
jmp 0x599caa
mov esi, dword [ebp + 0x114]
push eax
call fcn.00597b70
add esp, 4
jmp 0x599caa
test bl, bl
jne case.0x59a3ba.37
cmp byte [esp + 0x18], bl
jne case.0x59a3ba.37
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov dword [ebp + 0x188], 0
jmp case.0x59a3ba.37
cmp edx, 0x111
jne case.0x59a3ba.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.0054d740
mov edx, 0x200
cmp word [esp + 0x18], dx
jne case.0x59a3ba.37
mov ecx, dword [ebp + 0x164]
cmp ecx, ebx
je case.0x59a3ba.37
mov eax, dword [ecx]
mov edx, dword [eax + 0x1d8]
call edx
cmp eax, dword [esp + 0x48]
jne case.0x59a3ba.37
push ebx
mov ecx, ebp
call fcn.00598de0
jmp 0x599caa