Function at 0x511eb0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5cb148
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, ecx
cmp dword [ebp + 0x114], 0
mov edi, dword [esp + 0x54]
je 0x512132
mov eax, dword [ebp]
mov edx, dword [eax + 0xb0]
call edx
test eax, 0x80000
je 0x512132
cmp dword [edi + 4], 0x100
jne case.0x511f6c.10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
setl bl
call esi
push 0
push 0
test ax, ax
mov eax, dword [edi]
push 0x87
push eax
setl byte [esp + 0x26]
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 4
je 0x511f42
or eax, 3
mov ecx, dword [edi + 8]
add ecx, 0xfffffff7
mov byte [esp + 0x54], 1
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 1
cmp ecx, 0x1f
ja case.0x511f6c.10
movzx ecx, byte [ecx + 0x512184]
jmp dword [ecx*4 + 0x512168]
test al, 2
je 0x511f7f
test bl, bl
je case.0x511f6c.10
cmp byte [esp + 0x16], 0
mov byte [esp + 0x14], bl
sete byte [esp + 0x54]
mov byte [esp + 0x15], 1
jmp 0x51207e
test al, 1
jne case.0x511f6c.10
test bl, bl
jne case.0x511f6c.10
mov byte [esp + 0x54], bl
jmp 0x51207e
test al, 1
jne case.0x511f6c.10
test bl, bl
je 0x51207e
jmp case.0x511f6c.10
mov byte [esp + 0x54], 0
test al, 1
je 0x511fd6
test bl, bl
je case.0x511f6c.10
mov byte [esp + 0x14], 1
jmp 0x51207e
test al, 4
je 0x511fec
test bl, bl
je 0x51214d
xor esi, esi
test al, 0x10
je 0x512015
mov edx, dword [edi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xb
cmp al, 0xb
jne 0x512011
mov eax, dword [edi]
push eax
call fcn.0050f1e0
add esp, 4
mov esi, eax
xor bl, bl
jmp 0x51204b
push 0x67b07c
push ebp
call fcn.00518d30
add esp, 4
push eax
call fcn.005034b0
add esp, 8
test eax, eax
je 0x51207e
push 0x67b444
mov ecx, eax
call fcn.0050d7c0
push eax
call fcn.005034b0
mov bl, byte [esp + 0x1f]
add esp, 8
mov esi, eax
test esi, esi
je 0x512076
mov edx, dword [esi]
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
test al, al
je 0x512076
mov edx, dword [esi]
mov eax, dword [edx + 0x264]
push 0
push 0
mov ecx, esi
call eax
mov al, 1
jmp 0x51214f
test bl, bl
je case.0x511f6c.10
lea ecx, [esp + 0x18]
call fcn.00503e00
cmp byte [esp + 0x54], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], 0
je 0x51209f
or eax, 1
jmp 0x5120a2
and eax, 0xfffffffe
cmp byte [esp + 0x14], 0
je 0x5120ae
or eax, 2
jmp 0x5120b1
and eax, 0xfffffffd
cmp byte [esp + 0x15], 0
je 0x5120bd
or eax, 4
jmp 0x5120c0
and eax, 0xfffffffb
mov ecx, dword [ebp + 0x5c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x18]
push eax
call edx
test al, al
je 0x512103
push 1
push 2
mov ecx, ebp
call fcn.0050de10
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x18], vtable.wxObject.0
call fcn.004d0e90
mov al, 1
jmp 0x51214f
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x18], vtable.wxObject.0
call fcn.004d0e90
mov eax, dword [ebp + 0x114]
push edi
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x51206f
cmp dword [ebp + 0xb4], 0
je 0x51214d
cmp dword [edi + 4], 0x200
jne 0x51214d
push edi
call fcn.00542f10
add esp, 4
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4