Function at 0x50cf20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84bffd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0xa5e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ebx + 0x13c]
test edx, edx
je 0x50d31f
mov eax, dword [ebx + 0xe0]
shr eax, 0x13
test al, 1
je 0x50d31f
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push edx
call esi
shr eax, 0x10
test al, 1
je 0x50d31f
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0x100
jne 0x50d02c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
sets bl
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test ax, ax
push 0
push 0
push 0x87
push dword [edi]
sets byte [ebp - 0xf]
call esi
mov ecx, eax
test cl, 4
je 0x50cfca
or ecx, 3
mov eax, dword [edi + 8]
xor dl, dl
xor dh, dh
mov byte [ebp - 0xd], dl
add eax, 0xfffffff7
mov byte [ebp - 0xe], dh
mov bh, 1
cmp eax, 0x1f
ja case.0x50cfe8.10
movzx eax, byte [eax + 0x50d3e8]
jmp dword [eax*4 + 0x50d3cc]
test cl, 2
je 0x50cff8
test bl, bl
je 0x50d007
mov bh, byte [ebp - 0xf]
mov dh, 1
xor bh, 1
mov byte [ebp - 0xe], dh
mov al, dh
jmp 0x50d061
mov bl, byte [ebp - 0xd]
mov al, dh
jmp 0x50d061
test cl, 1
jne case.0x50cfe8.10
test bl, bl
jne case.0x50cfe8.10
xor bh, bh
mov bl, bh
jmp 0x50d06a
test cl, 1
jne case.0x50cfe8.10
test bl, bl
je 0x50d067
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp eax, 0x100
jne 0x50d2b0
cmp dword [ebx + 8], 0x1b
jne 0x50d39e
jmp 0x50d322
xor bh, bh
test cl, 1
je 0x50d057
test bl, bl
je 0x50d05c
mov dl, 1
mov byte [ebp - 0xd], dl
mov bl, byte [ebp - 0xd]
mov al, dl
test al, al
je case.0x50cfe8.10
jmp 0x50d06a
mov bl, byte [ebp - 0xd]
push dword [0xe7b210]
lea ecx, [ebp - 0x48]
push 0
call fcn.0073dbc0
mov dword [ebp - 0x48], vtable.wxNavigationKeyEvent.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 4], 0
test bh, bh
setne al
add eax, 4
test bl, bl
je 0x50d0a9
or eax, 2
jmp 0x50d0ac
and eax, 0xfffffffd
cmp byte [ebp - 0xe], 0
je 0x50d0b7
or eax, 4
jmp 0x50d0ba
and eax, 0xfffffffb
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x40], ebx
call fcn.004fb100
test al, al
je 0x50d112
push 0
push 0x10002
push 0x127
push dword [ebx + 0x13c]
call esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], vtable.wxObject.0
call fcn.0073da90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
mov dword [ebp - 0x48], vtable.wxObject.0
call fcn.0073da90
mov dword [ebp - 4], 0xffffffff
jmp case.0x50cfe8.10
test cl, 0x10
je 0x50d171
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [edi]
call esi
and eax, 0xb
cmp al, 0xb
jne 0x50d02c
push 0xa5c2f0
push dword [edi]
call fcn.00511400
add esp, 4
push eax
call fcn.004f1530
mov esi, eax
add esp, 8
test esi, esi
jmp 0x50d263
mov esi, dword [ebp - 0x14]
test bl, bl
jne 0x50d1b1
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
nop
test cl, 4
jne 0x50d340
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x13c]
call eax
test al, al
jne 0x50d1b1
mov esi, dword [esi + 0x44]
push 0
push 0
push 0x87
push dword [esi + 0x13c]
call edi
mov ecx, eax
jmp 0x50d180
push esi
call fcn.004ffa40
mov esi, eax
add esp, 4
test esi, esi
je case.0x50cfe8.10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov edi, eax
cmp edi, 0xa5c018
je 0x50d207
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x50d1ea
push 0xa5c018
call fcn.004eec70
test al, al
jne 0x50d207
mov ecx, dword [edi + 0x10]
test ecx, ecx
je case.0x50cfe8.10
push 0xa5c018
call fcn.004eec70
test al, al
je case.0x50cfe8.10
cmp dword [esi + 0x194], 0
mov eax, 0x194
mov ecx, 0x184
cmove eax, ecx
mov esi, dword [eax + esi]
test esi, esi
je case.0x50cfe8.10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, eax
cmp edi, 0xa5c2f0
je 0x50d269
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x50d24c
push 0xa5c2f0
call fcn.004eec70
test al, al
jne 0x50d269
mov ecx, dword [edi + 0x10]
test ecx, ecx
je case.0x50cfe8.10
push 0xa5c2f0
call fcn.004eec70
test al, al
je case.0x50cfe8.10
mov ecx, esi
call fcn.004fb5f0
test al, al
je case.0x50cfe8.10
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xfc]
call eax
test al, al
je case.0x50cfe8.10
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x324]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x106
jne 0x50d39e
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
push 0xffffffffffffffec
push edi
call esi
test eax, 0x10000
je 0x50d359
mov esi, dword [ebp - 0x14]
mov esi, dword [esi + 0x54]
test esi, esi
je 0x50d322
nop dword [eax]
mov ebx, dword [esi + 8]
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x128]
call eax
test al, al
je 0x50d318
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x130]
call eax
test al, al
je 0x50d318
push 0xffffffffffffffec
push dword [ebx + 0x13c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x10
test al, 1
je 0x50d356
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x50d2e0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0xc8], 0
je 0x50d340
cmp dword [ebx + 4], 0x200
jne 0x50d340
push ebx
call fcn.005945e0
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
test edi, edi
je 0x50d39e
mov esi, dword [sym.imp.USER32.dll_IsWindowEnabled]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
nop dword [eax]
push edi
call esi
test eax, eax
je 0x50d31f
push edi
call ebx
test eax, eax
je 0x50d31f
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x50d39b
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
jne 0x50d370
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push ebx
push dword [eax + 0x13c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x50d322
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4