Function at 0x50cdc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84bded
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0xa5d1d4]
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 0x50d1bf
mov eax, dword [ebx + 0xe0]
shr eax, 0x13
test al, 1
je 0x50d1bf
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push edx
call esi
shr eax, 0x10
test al, 1
je 0x50d1bf
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0x100
jne 0x50cecc
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 0x50ce6a
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.0x50ce88.10
movzx eax, byte [eax + 0x50d288]
jmp dword [eax*4 + 0x50d26c]
test cl, 2
je 0x50ce98
test bl, bl
je 0x50cea7
mov bh, byte [ebp - 0xf]
mov dh, 1
xor bh, 1
mov byte [ebp - 0xe], dh
mov al, dh
jmp 0x50cf01
mov bl, byte [ebp - 0xd]
mov al, dh
jmp 0x50cf01
test cl, 1
jne case.0x50ce88.10
test bl, bl
jne case.0x50ce88.10
xor bh, bh
mov bl, bh
jmp 0x50cf0a
test cl, 1
jne case.0x50ce88.10
test bl, bl
je 0x50cf07
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp eax, 0x100
jne 0x50d150
cmp dword [ebx + 8], 0x1b
jne 0x50d23e
jmp 0x50d1c2
xor bh, bh
test cl, 1
je 0x50cef7
test bl, bl
je 0x50cefc
mov dl, 1
mov byte [ebp - 0xd], dl
mov bl, byte [ebp - 0xd]
mov al, dl
test al, al
je case.0x50ce88.10
jmp 0x50cf0a
mov bl, byte [ebp - 0xd]
push dword [0xe7a1c0]
lea ecx, [ebp - 0x48]
push 0
call fcn.0073da80
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 0x50cf49
or eax, 2
jmp 0x50cf4c
and eax, 0xfffffffd
cmp byte [ebp - 0xe], 0
je 0x50cf57
or eax, 4
jmp 0x50cf5a
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.004faf90
test al, al
je 0x50cfb2
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.0073d950
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.0073d950
mov dword [ebp - 4], 0xffffffff
jmp case.0x50ce88.10
test cl, 0x10
je 0x50d011
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [edi]
call esi
and eax, 0xb
cmp al, 0xb
jne 0x50cecc
push 0xa5b298
push dword [edi]
call fcn.00511290
add esp, 4
push eax
call fcn.004f13d0
mov esi, eax
add esp, 8
test esi, esi
jmp 0x50d103
mov esi, dword [ebp - 0x14]
test bl, bl
jne 0x50d051
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
nop
test cl, 4
jne 0x50d1e0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x13c]
call eax
test al, al
jne 0x50d051
mov esi, dword [esi + 0x44]
push 0
push 0
push 0x87
push dword [esi + 0x13c]
call edi
mov ecx, eax
jmp 0x50d020
push esi
call fcn.004ff8d0
mov esi, eax
add esp, 4
test esi, esi
je case.0x50ce88.10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov edi, eax
cmp edi, 0xa5afc0
je 0x50d0a7
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x50d08a
push 0xa5afc0
call fcn.004eeb10
test al, al
jne 0x50d0a7
mov ecx, dword [edi + 0x10]
test ecx, ecx
je case.0x50ce88.10
push 0xa5afc0
call fcn.004eeb10
test al, al
je case.0x50ce88.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.0x50ce88.10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, eax
cmp edi, 0xa5b298
je 0x50d109
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x50d0ec
push 0xa5b298
call fcn.004eeb10
test al, al
jne 0x50d109
mov ecx, dword [edi + 0x10]
test ecx, ecx
je case.0x50ce88.10
push 0xa5b298
call fcn.004eeb10
test al, al
je case.0x50ce88.10
mov ecx, esi
call fcn.004fb480
test al, al
je case.0x50ce88.10
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xfc]
call eax
test al, al
je case.0x50ce88.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 0x50d23e
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
push 0xffffffffffffffec
push edi
call esi
test eax, 0x10000
je 0x50d1f9
mov esi, dword [ebp - 0x14]
mov esi, dword [esi + 0x54]
test esi, esi
je 0x50d1c2
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 0x50d1b8
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x130]
call eax
test al, al
je 0x50d1b8
push 0xffffffffffffffec
push dword [ebx + 0x13c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x10
test al, 1
je 0x50d1f6
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x50d180
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0xc8], 0
je 0x50d1e0
cmp dword [ebx + 4], 0x200
jne 0x50d1e0
push ebx
call fcn.00594440
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 0x50d23e
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 0x50d1bf
push edi
call ebx
test eax, eax
je 0x50d1bf
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x50d23b
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
jne 0x50d210
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 0x50d1c2
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