Function at 0x597d50
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x616977
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
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 0x597f1a
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 0x597e17
cmp ecx, 0xffffffff
je 0x597e17
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.0054c340
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 0x597e70
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x597e70
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 0x597e70
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 [0x6f5cf0]
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
lea ecx, [esp + 0x90]
call fcn.005a9780
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 0x597eb9
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x84]
mov dword [esp + 0x120], 0xffffffff
call fcn.00597bd0
cmp byte [esp + 0x14], 0
jne 0x597efa
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.00552330
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 0x5984ff
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.0x59860a.37
jmp dword [eax*4 + 0x598790]
test ebx, ebx
je case.0x59860a.37
cmp byte [esp + 0x18], 0
je case.0x59860a.37
test byte [esp + 0x54], 0x46
je case.0x59860a.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 0x597fee
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
mov edi, dword [ebp + 0x114]
mov esi, ebx
call fcn.00595d50
mov esi, dword [ebp + 0x114]
push ebx
call fcn.00595e90
add esp, 4
mov dword [ebp + 0x188], 0
jmp 0x597efa
test al, 4
je 0x598082
cmp dword [ebp + 0x188], 0
jne 0x598022
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 0x59805b
mov edi, dword [ebp + 0x114]
shr eax, 3
not al
and al, 1
movzx edx, al
push edx
push ebx
push ecx
call fcn.00595d70
mov esi, dword [ebp + 0x114]
add esp, 0xc
push ebx
call fcn.00595e90
add esp, 4
jmp 0x597efa
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.00595cf0
mov esi, dword [ebp + 0x114]
add esp, 4
push ebx
call fcn.00595e90
add esp, 4
jmp 0x597efa
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x20]
call fcn.0050f3f0
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 0x5980d2
cmp eax, 1
ja 0x5980d2
mov eax, dword [esp + 0x28]
cmp dword [eax], ebx
jne 0x5980d2
mov dword [ebp + 0x18c], 0
jmp 0x59812d
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.00595ca0
test al, al
jne 0x598119
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.00595cf0
add esp, 4
mov esi, dword [ebp + 0x114]
push ebx
call fcn.00595e90
add esp, 4
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
mov dword [ebp + 0x188], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.0050f680
jmp 0x597ed0
cmp byte [esp + 0x18], 0
je case.0x59860a.37
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.00595ca0
test al, al
jne 0x5981a4
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.00595e90
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.0054f840
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 0x597efa
cmp dword [ebp + 0x18c], 0
je 0x598352
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 0x59824c
push 0x45
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x18], eax
jle 0x598352
push 0x68
lea eax, [esp + 0x88]
push 0
push eax
call fcn.005b57c0
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 0x597ed0
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005a9b80
test ebx, ebx
je 0x597ed0
mov ecx, dword [ebp + 0x180]
call fcn.005a9c70
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.005a9c40
jmp 0x597ed0
test ebx, ebx
je case.0x597f74.517
cmp byte [esp + 0x18], 0
je case.0x597f74.517
lea ecx, [esp + 0x20]
call fcn.0050f3f0
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 0x598437
test byte [esp + 0x12c], 0xc
jne 0x598437
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.00595cf0
mov esi, dword [ebp + 0x114]
push ebx
call fcn.00595e90
mov esi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [ebp + 0x18c], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.0050f680
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je case.0x59860a.37
call fcn.005a9b50
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je 0x59847b
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 [0x6f5ce4]
push ebp
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x40], ebx
call fcn.005a9780
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.00597bd0
jmp case.0x59860a.37
cmp edx, 7
je 0x59850d
cmp edx, 8
jne 0x5985a6
test al, al
je 0x5985a6
lea ecx, [esp + 0x20]
call fcn.0050f3f0
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 0x59858d
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 0x598588
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 0x598550
lea ecx, [esp + 0x20]
mov dword [esp + 0x120], 0xffffffff
call fcn.0050f680
jmp case.0x59860a.37
cmp edx, 0x100
jne 0x59871e
test al, al
je case.0x59860a.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.0x59860a.37
movzx edx, byte [eax + 0x5987b8]
jmp dword [edx*4 + 0x5987a8]
test bl, bl
je 0x598625
mov edi, dword [ebp + 0x114]
call fcn.00595d50
jmp 0x597efa
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.00595cf0
add esp, 4
jmp 0x597efa
test bl, bl
jne 0x598666
cmp byte [esp + 0x18], bl
jne 0x598666
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
jmp case.0x59860a.37
test esi, esi
je case.0x59860a.37
mov edx, dword [esp + 0x130]
push edx
push ecx
push 0x100
mov ecx, ebp
call fcn.00552330
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 0x5986a9
mov eax, esi
cmp byte [esp + 0x18], 0
je 0x5986dc
cmp dword [ebp + 0x188], 0
jne 0x5986bf
mov dword [ebp + 0x188], esi
mov edx, dword [ebp + 0x188]
mov edi, dword [ebp + 0x114]
push 1
push eax
push edx
call fcn.00595d70
add esp, 0xc
jmp 0x597efa
mov esi, dword [ebp + 0x114]
push eax
call fcn.00595e90
add esp, 4
jmp 0x597efa
test bl, bl
jne case.0x59860a.37
cmp byte [esp + 0x18], bl
jne case.0x59860a.37
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov dword [ebp + 0x188], 0
jmp case.0x59860a.37
cmp edx, 0x111
jne case.0x59860a.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.0054ba30
mov edx, 0x200
cmp word [esp + 0x18], dx
jne case.0x59860a.37
mov ecx, dword [ebp + 0x164]
cmp ecx, ebx
je case.0x59860a.37
mov eax, dword [ecx]
mov edx, dword [eax + 0x1d8]
call edx
cmp eax, dword [esp + 0x48]
jne case.0x59860a.37
push ebx
mov ecx, ebp
call fcn.00597100
jmp 0x597efa