Function at 0x5987d0
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6169e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x6f0d4c]
lea eax, [esp + 0x38]
push eax
push esi
push ecx
xor ebp, ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], ebp
call fcn.005a9780
mov edi, dword [esp + 0x1e8]
mov ecx, dword [edi + 8]
mov edx, dword [0x6f0d4c]
mov eax, ecx
mov dword [esp + 0x1dc], ebp
mov ebx, edx
cmp eax, 0xfffffff4
ja 0x598db6
je 0x598c2b
add eax, 0x212
cmp eax, 0x81
ja case.0x59885c.529
movzx eax, byte [eax + 0x599204]
jmp dword [eax*4 + 0x5991c8]
mov ebx, dword [0x6f5ca0]
cmp ebx, edx
jne 0x598873
mov ebx, dword [0x6f5ca4]
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x64]
mov dword [esp + 0xc0], ecx
mov ecx, dword [edi + 0x60]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
mov byte [esp + 0x7c], 0
jmp 0x59893a
mov eax, dword [edi + 0x10]
mov ebx, dword [0x6f5ca8]
mov dword [esp + 0xc0], eax
mov dword [esi + 0x168], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050dec0
mov byte [esp + 0xd4], 0
jmp 0x59893a
cmp byte [esi + 0x17c], 0
mov eax, dword [edi + 0x14]
mov ebx, dword [0x6f5cb0]
mov dword [esp + 0xc0], eax
je 0x59893a
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x20]
lea ebp, [esi + 0x16c]
push eax
mov ecx, ebp
call fcn.005b1b40
cmp dword [esp + 0x1c], 0
je 0x598938
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x598929
mov ecx, eax
call fcn.00595840
mov edx, dword [esp + 0x14]
push edx
call fcn.005b2946
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
mov ecx, ebp
call fcn.005b1ba0
xor ebp, ebp
mov dword [esp + 0x50], ebx
cmp dword [esp + 0xc0], ebp
je 0x59895f
mov edx, dword [esi]
mov edx, dword [edx + 0x2e0]
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x78], eax
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x44]
push edx
call eax
mov bl, al
mov eax, dword [edi + 8]
cmp eax, 0xfffffe62
ja 0x59913a
je 0x599122
add eax, 0x1cc
cmp eax, 0xa
ja case.0x598992.453
jmp dword [eax*4 + 0x599288]
mov eax, dword [edi + 0x10]
mov ebx, dword [0x6f5cac]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050dec0
cmp dword [edi + 0x1c], ebp
sete cl
mov byte [esp + 0xd4], cl
jmp 0x59893a
mov edx, dword [esp + 0x1ec]
mov dword [edx], ebp
jmp 0x59893a
mov eax, dword [edi + 0x14]
mov ebx, dword [0x6f5cec]
mov dword [esp + 0xc0], eax
jmp 0x59893a
mov ebx, dword [0x6f5cb4]
cmp ebx, edx
jne 0x5989fe
mov ebx, dword [0x6f5cb8]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0xc0], ecx
jmp 0x59893a
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x598a1d
dec eax
mov edx, 1
jmp 0x598a1f
xor edx, edx
xor eax, eax
cmp ecx, 0xfffffe3a
sete al
lea edx, [eax + edx*2]
mov eax, dword [edi + 0x3c]
mov ebx, dword [edx*4 + 0x6f5b08]
mov dword [esp + 0xc0], eax
jmp 0x59893a
mov ebx, dword [0x6f5cd4]
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
movzx ebp, al
neg ebp
mov byte [esp + 0x1b], al
movzx eax, word [edi + 0xc]
sbb ebp, ebp
push 0
and ebp, 0x2000
push eax
shl ebp, 0x10
mov dword [esp + 0x1c], eax
call fcn.0054bc20
add esp, 8
test eax, eax
jne 0x598a86
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6f3abc]
push ecx
push ebp
push eax
push edx
lea eax, [esp + 0x110]
push eax
mov ecx, esi
call fcn.005513a0
push eax
lea ecx, [esp + 0x84]
call fcn.00595a50
lea ecx, [esp + 0x100]
mov dword [esp + method.wxObject.virtual_0], vtable.wxObject.0
call fcn.0050f870
call fcn.0054c2a0
test al, al
jne 0x598938
call fcn.0054c280
test al, al
jne 0x598938
cmp byte [esp + 0x1b], al
jne 0x598938
movzx eax, word [edi + 0xc]
cmp ax, 0x20
je 0x598aff
cmp ax, 0xd
jne 0x598938
mov ecx, dword [esi + 0xcc]
shr ecx, 5
mov dword [esp + 0x14], 0
test cl, 1
jne 0x598b2c
mov edx, dword [esi]
mov edx, dword [edx + 0x330]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov edx, dword [0x6f5cd8]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0x14c]
call fcn.005a9780
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x140]
push edx
mov byte [esp + 0x1e0], 1
call eax
lea ecx, [esp + 0x140]
mov byte [esp + 0x1dc], 0
call fcn.00597bd0
jmp 0x598938
mov ecx, dword [esi + 0xcc]
shr ecx, 5
test cl, 1
je 0x598bbe
mov edx, dword [edi + 0x10]
push edx
call fcn.00595670
add esp, 4
test al, al
je 0x598bbe
mov eax, dword [esp + 0x1ec]
mov dword [eax], 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00597bd0
mov al, 1
jmp 0x5991aa
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00597bd0
xor al, al
jmp 0x5991aa
mov ebx, dword [0x6f5ccc]
cmp ebx, edx
jne 0x598be9
mov ebx, dword [0x6f5cd0]
cmp ecx, 0xfffffe3e
je 0x598c12
cmp ecx, 0xfffffe3d
je 0x598c12
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x14]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
jmp 0x59893a
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
jmp 0x59893a
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x598d9a
sub eax, 0x10000
jne 0x598c62
mov ebx, dword [edi + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x16c]
mov dword [esp + 0x1c], ebx
call fcn.005b1b40
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x598c70
mov edx, dword [esp + 0x1ec]
mov dword [edx], ebp
jmp 0x598ba3
mov ebp, dword [eax + 8]
push 8
push 8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0x20], ebx
call fcn.00595690
lea ecx, [esp + 0xd8]
push ecx
mov ecx, esi
call fcn.00595f80
test byte [edi + 0x28], 1
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
jne 0x598d03
test al, 8
jne 0x598cfd
lea ecx, [esp + 0x1c]
call fcn.00538f60
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x20]
lea ebx, [ebp + 0x14]
mov ecx, ebx
mov byte [esp + 0x1dc], 2
call eax
test al, al
je 0x598cec
push ebx
lea ecx, [esp + 0x20]
call fcn.0040c754
lea ecx, [esp + 0x1c]
push ecx
call fcn.0054c210
add esp, 4
mov dword [edi + 0x34], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0
call fcn.005429d0
test byte [edi + 0x28], 1
je 0x598d0c
call fcn.00555e80
cmp eax, esi
je 0x598d5d
test byte [esp + 0x14], 8
jne 0x598d5d
lea ecx, [esp + 0x1c]
call fcn.00538f60
mov edx, dword [ebp]
mov eax, dword [edx + 0x20]
mov ecx, ebp
mov byte [esp + 0x1dc], 3
call eax
test al, al
je 0x598d4c
push ebp
lea ecx, [esp + 0x20]
call fcn.0040c754
lea ecx, [esp + 0x1c]
push ecx
call fcn.0054c210
add esp, 4
mov dword [edi + 0x30], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0
call fcn.005429d0
cmp dword [ebp + 0x2c], 0
je 0x598d88
lea ecx, [ebp + 0x28]
call fcn.00549d00
mov edx, dword [edi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1ec]
mov dword [eax], 2
jmp 0x598ba3
mov ecx, dword [esp + 0x1ec]
mov dword [ecx], 0
jmp 0x598ba3
movzx edx, byte [esi + 0x17c]
mov eax, dword [esp + 0x1ec]
neg edx
sbb edx, edx
and edx, 0x20
mov dword [eax], edx
jmp 0x598ba3
cmp eax, 0xfffffffb
je 0x598e4d
cmp eax, 0xfffffffd
je 0x598e4d
cmp eax, 0xfffffffe
jne case.0x59885c.529
call dword [sym.imp.USER32.dll_GetMessagePos]
movzx ecx, ax
shr eax, 0x10
push 1
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x114]
push edx
push eax
push ebp
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x3b0]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
call edx
test dword [esp + 0x14], 0x100
je 0x598938
mov eax, dword [esp + 0x34]
mov ebx, dword [0x6f5ce8]
mov dword [esp + 0xc0], eax
jmp 0x59893a
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je case.0x59885c.529
test byte [esp + 0x24], 0x46
je 0x598938
cmp dword [edi + 8], 0xfffffffd
mov edx, dword [esp + 0x28]
mov ebx, dword [0x6f5cd8]
mov dword [esp + 0xc0], edx
je 0x598eb2
mov ebx, dword [0x6f5cdc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
jmp 0x59893a
cmp byte [esp + 0x7c], 0
je case.0x598992.453
push 0x38
call fcn.005b29ce
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1dc], 4
cmp eax, ebp
je 0x598f04
lea ecx, [esp + 0xc0]
push ecx
push esi
mov ecx, eax
call fcn.00595bf0
jmp 0x598f06
xor eax, eax
push ebp
push ebp
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x1ec], 0
mov dword [esi + 0x180], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.005a9d10
mov ecx, dword [esi + 0x180]
call fcn.005a9c40
jmp case.0x598992.453
mov edi, dword [edi + 0x34]
cmp edi, ebp
je 0x598f4c
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov bl, 1
jmp case.0x598992.453
mov al, byte [esp + 0x7c]
mov edx, dword [esp + 0x1ec]
xor ecx, ecx
test al, al
sete cl
mov dword [edx], ecx
test al, al
je 0x599030
mov eax, dword [esi + 0x114]
push ebp
push ebp
push 0x110f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, ebp
je case.0x598992.453
mov eax, dword [esi + 0x164]
cmp eax, ebp
je 0x598fa6
cmp dword [eax + 0x114], ebp
je 0x598fa6
mov ecx, esi
call fcn.00597010
cmp dword [esi + 0x164], ebp
jne 0x598fe4
push 0x1b4
call fcn.005b29ce
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1dc], 5
cmp eax, ebp
je 0x598fd4
mov ecx, eax
call fcn.0055ac60
jmp 0x598fd6
xor eax, eax
mov byte [esp + 0x1dc], 0
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x164]
mov dword [eax + 0x2c], esi
mov eax, dword [esi + 0x164]
mov dword [eax + 0x114], edi
mov ecx, dword [esi + 0x164]
push edi
call fcn.005518f0
mov ecx, dword [esi + 0x164]
mov eax, dword [ecx]
mov edx, dword [eax + 0xb0]
call edx
mov ecx, dword [esi + 0x164]
mov edx, dword [ecx]
or eax, 0x400
push eax
mov eax, dword [edx + 0xac]
call eax
jmp case.0x598992.453
mov dword [esi + 0x168], ebp
jmp case.0x598992.453
movzx ecx, byte [esp + 0x7c]
mov edx, dword [esp + 0x1ec]
mov dword [edx], ecx
mov ecx, esi
mov bl, 1
call fcn.00597010
jmp case.0x598992.453
mov ecx, dword [esp + 0x1ec]
xor eax, eax
cmp byte [esp + 0x7c], al
sete al
mov dword [ecx], eax
jmp case.0x598992.453
mov edx, dword [edi + 0x3c]
mov eax, dword [esi]
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x2dc]
push ecx
mov ecx, esi
call edx
cmp eax, 0xffffffff
je case.0x598992.453
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00596560
jmp case.0x598992.453
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.00596330
mov ebp, eax
test ebp, ebp
je case.0x598992.453
test byte [edi + 0xc], 2
je 0x5990ef
mov eax, dword [esi]
mov edx, dword [eax + 0x31c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
push eax
mov ecx, ebp
call fcn.005956d0
mov dword [edi + 0x24], eax
test byte [edi + 0xc], 0x20
je case.0x598992.453
mov edx, dword [esi]
mov edx, dword [edx + 0x31c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
xor ecx, ecx
test al, al
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
mov ecx, ebp
call fcn.005956d0
mov dword [edi + 0x28], eax
jmp case.0x598992.453
cmp byte [esp + 0x7c], 0
je case.0x598992.453
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
call fcn.00556bd0
jmp case.0x598992.453
cmp eax, 0xfffffffb
je 0x599152
cmp eax, 0xfffffffd
jne case.0x598992.453
mov ecx, dword [esp + 0x1ec]
movzx eax, bl
mov dword [ecx], eax
jmp case.0x598992.453
mov edx, dword [esp + 0x1ec]
mov dword [edx], 1
mov esi, dword [esi + 0x114]
mov bl, 1
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x598992.453
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0x1e4]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0056db50
mov bl, al
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00597bd0
mov al, bl
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret 0xc