Function at 0x4af82d
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x61ecad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x128]
mov eax, dword [esi + 0xcc]
xor ebp, ebp
shr eax, 5
and al, 1
cmp ecx, 0x7b
push edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x38], ebp
mov byte [esp + 0x14], al
jne 0x4afa2e
movsx eax, dx
shr edx, 0x10
xor edi, edi
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [esp + 0x18], ebp
movsx ecx, dx
je 0x4af8cf
cmp ecx, 0xffffffff
je 0x4af8cf
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x200]
mov eax, dword [esi + 0x114]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1111
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4af927
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
jmp 0x4af927
mov eax, dword [esi + 0x114]
push ebp
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x4af927
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push 1
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [eax + 0x3a4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cdq
mov edi, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
add eax, ecx
mov ebx, eax
mov ecx, dword [0x701da0]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
lea ecx, [esp + 0x64]
call fcn.00482760
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], ebx
lea eax, [esp + 0x58]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x120], ebp
call dword [edx + 0x10]
test al, al
je 0x4af968
mov byte [esp + 0x12], 1
mov ecx, dword [esp + 0xe4]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov dword [esp + 0x11c], 1
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4af998
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4af998
push eax
call ebx
add esp, 4
mov edi, vtable.wxObject.0
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], edi
call fcn.004e8d50
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x11c], 0xffffffff
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4af9d7
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4af9d7
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], edi
call fcn.004e8d50
mov al, byte [esp + 0x12]
test al, al
jne 0x4afa0f
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00458aa0
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret 0xc
cmp ecx, 0x200
jb 0x4b002e
cmp ecx, 0x20a
ja 0x4b002e
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x40]
movsx ebx, ax
shr eax, 0x10
movsx edi, ax
mov eax, dword [esi + 0x114]
push ecx
push 0
push 0x1111
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x124]
mov ebp, eax
lea eax, [edx - 0x200]
cmp eax, 5
ja case.0x4b0133.35
jmp dword [eax*4 + 0x4b02cc]
test ebp, ebp
je case.0x4b0133.35
mov al, byte [esp + 0x14]
test al, al
je case.0x4b0133.35
test byte [esp + 0x48], 0x46
je case.0x4b0133.35
mov al, byte [esp + 0x128]
mov dword [esi + 0x18c], ebp
test al, 8
mov dword [esi + 0x190], ebx
mov dword [esi + 0x194], edi
je 0x4afb19
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
mov edi, dword [esi + 0x114]
push ebp
push edi
call fcn.004ae8d0
test al, al
sete cl
push ecx
push ebp
push edi
call fcn.004af0e0
mov edx, dword [esi + 0x114]
push ebp
push edx
call fcn.004b0430
add esp, 0x1c
mov dword [esi + 0x188], 0
jmp 0x4afa0f
test al, 4
je 0x4afb96
mov eax, dword [esi + 0x188]
test eax, eax
jne 0x4afb43
mov eax, dword [esi + 0x114]
push 0
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x188], eax
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x4afb6f
mov eax, dword [esp + 0x128]
shr eax, 3
not al
and al, 1
push eax
mov eax, dword [esi + 0x114]
push ebp
push ecx
push eax
call fcn.004b0300
add esp, 0x10
jmp 0x4afb81
mov ecx, dword [esi + 0x114]
push 1
push ebp
push ecx
call fcn.004af0e0
add esp, 0xc
mov edx, dword [esi + 0x114]
push ebp
push edx
call fcn.004b0430
add esp, 8
jmp 0x4afa0f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
lea ecx, [esp + 0x1c]
call fcn.004f5520
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x120], 2
call dword [edx + 0x334]
xor edi, edi
cmp eax, edi
je 0x4afbde
cmp eax, 1
ja 0x4afbde
mov ecx, dword [esp + 0x24]
cmp dword [ecx], ebp
jne 0x4afbde
mov dword [esi + 0x18c], edi
jmp 0x4afc38
mov eax, dword [esi + 0x114]
push ebp
push eax
call fcn.004ae8d0
add esp, 8
test al, al
jne 0x4afc23
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x380]
mov eax, dword [esi + 0x114]
push edi
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x114]
push 1
push ebp
push eax
call fcn.004af0e0
add esp, 0xc
mov eax, dword [esi + 0x114]
push ebp
push eax
call fcn.004b0430
add esp, 8
mov byte [esp + 0x12], 1
lea ecx, [esp + 0x1c]
mov dword [esi + 0x188], edi
mov dword [esp + 0x11c], 0xffffffff
call fcn.004f5680
jmp 0x4af9e4
mov al, byte [esp + 0x14]
test al, al
je case.0x4b0133.35
mov eax, dword [esi + 0x114]
push ebp
push eax
call fcn.004ae8d0
add esp, 8
test al, al
jne 0x4afca6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x380]
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x34], ebp
call dword [edx + 0x384]
mov ecx, dword [esi + 0x114]
push ebp
push ecx
call fcn.004b0430
add esp, 8
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x124]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0045c550
mov eax, dword [esi + 0x114]
push 0xfffffffffffffff4
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [esi + 0x114]
lea edx, [esp + 0x1c]
push edx
push eax
push 0x4e
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0xfffffffb
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4afa0f
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x4afe30
mov eax, dword [esi + 0x190]
push 0x44
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x194]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x30], eax
jg 0x4afd53
push 0x45
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x14], eax
jle 0x4afe30
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x58]
push 0xfffffffffffffff4
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x114]
push eax
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x5c], eax
mov edx, dword [esi + 0x18c]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xec]
mov dword [esp + 0x60], 0xfffffe38
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x114]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0xec]
mov dword [esp + 0x94], edx
push eax
push 0
push 0x113e
push ecx
mov dword [esp + 0x100], edx
mov dword [esp + 0xfc], 0xc
mov dword [esp + 0x108], 0xffffffff
call edi
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x98], edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x58]
mov dword [esp + 0xb8], ebx
mov dword [esi + 0x18c], 0
push edx
mov edx, dword [ecx + 0x114]
push eax
push 0x4e
push edx
call edi
mov edi, dword [esp + 0x18]
mov byte [esp + 0x12], 1
mov ecx, dword [esi + 0x180]
test ecx, ecx
je 0x4af9e4
lea eax, [esp + 0x50]
mov dword [esp + 0x50], ebx
push eax
mov dword [esp + 0x58], edi
call fcn.004ce810
test ebp, ebp
je 0x4af9e4
mov ecx, dword [esi + 0x180]
call fcn.004ce910
mov ecx, dword [esi + 0x114]
push ebp
push 8
push 0x110b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x180]
call fcn.004ce8e0
jmp 0x4af9e4
test ebp, ebp
je case.0x4afa93.517
mov al, byte [esp + 0x14]
test al, al
je case.0x4afa93.517
lea ecx, [esp + 0x1c]
call fcn.004f5520
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x120], 3
call dword [edx + 0x334]
cmp eax, 1
jbe 0x4aff0c
test byte [esp + 0x128], 0xc
jne 0x4aff0c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x380]
mov eax, dword [esi + 0x114]
push ebp
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x114]
push 1
push ebp
push eax
call fcn.004af0e0
mov eax, dword [esi + 0x114]
push ebp
push eax
call fcn.004b0430
add esp, 0x14
lea ecx, [esp + 0x1c]
mov dword [esi + 0x18c], 0
mov dword [esp + 0x11c], 0xffffffff
call fcn.004f5680
mov ecx, dword [esi + 0x180]
test ecx, ecx
je case.0x4b0133.35
call fcn.004ce7e0
mov ecx, dword [esi + 0x180]
test ecx, ecx
je 0x4aff4e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x34]
mov dword [esi + 0x180], 0
mov edx, dword [0x701dac]
push ecx
push esi
push edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], ebp
call fcn.00482760
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], edi
lea edx, [esp + 0x58]
mov eax, dword [ecx]
push edx
mov dword [esp + 0x120], 4
call dword [eax + 0x10]
mov eax, dword [esi + 0x114]
push 0
push 8
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0xe4]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
add eax, 0xfffffff4
mov dword [esp + 0x11c], 5
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4affdd
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4affdd
push eax
call ebx
add esp, 4
mov edi, vtable.wxObject.0
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], edi
call fcn.004e8d50
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x11c], 0xffffffff
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4b001c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4b001c
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], edi
call fcn.004e8d50
jmp case.0x4b0133.35
cmp ecx, 7
je 0x4b003c
cmp ecx, 8
jne 0x4b00d0
test al, al
je 0x4b00d0
lea ecx, [esp + 0x1c]
call fcn.004f5520
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x120], 6
call dword [edx + 0x334]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x34], eax
jbe 0x4b00b7
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
push 1
mov eax, dword [ecx + edi*4]
push 0x1104
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x114]
push eax
call ebx
test eax, eax
je 0x4b00ae
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x40]
push ebp
push ecx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x34]
inc edi
cmp edi, eax
jb 0x4b0077
lea ecx, [esp + 0x1c]
mov dword [esp + 0x11c], 0xffffffff
call fcn.004f5680
jmp case.0x4b0133.35
cmp ecx, 0x100
jne 0x4b025d
test al, al
je case.0x4b0133.35
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
push 0x10
setl bl
call edi
test ax, ax
mov eax, dword [esi + 0x114]
push 0
push 9
push 0x110a
push eax
setl byte [esp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x128]
mov edi, eax
lea eax, [edx - 0x20]
cmp eax, 8
ja case.0x4b0133.35
xor ecx, ecx
mov cl, byte [eax + 0x4b02f4]
jmp dword [ecx*4 + 0x4b02e4]
test bl, bl
je 0x4b0160
mov esi, dword [esi + 0x114]
push edi
push esi
call fcn.004ae8d0
test al, al
sete dl
push edx
push edi
push esi
call fcn.004af0e0
add esp, 0x14
jmp 0x4afa0f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x380]
mov ecx, dword [esi + 0x114]
push 1
push edi
push ecx
call fcn.004af0e0
add esp, 0xc
jmp 0x4afa0f
test bl, bl
jne 0x4b019c
mov al, byte [esp + 0x14]
test al, al
jne 0x4b019c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x380]
jmp case.0x4b0133.35
test edi, edi
je case.0x4b0133.35
mov eax, dword [esp + 0x12c]
mov ebp, dword [esp + 0x128]
push eax
push ebp
push 0x100
mov ecx, esi
call fcn.00458aa0
mov eax, dword [esi + 0x114]
xor ecx, ecx
cmp ebp, 0x26
push edi
sete cl
add ecx, 6
push ecx
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4b01e5
mov eax, edi
mov cl, byte [esp + 0x14]
test cl, cl
je 0x4b021b
mov ecx, dword [esi + 0x188]
test ecx, ecx
jne 0x4b01fd
mov dword [esi + 0x188], edi
mov edx, dword [esi + 0x188]
push 1
push eax
mov eax, dword [esi + 0x114]
push edx
push eax
call fcn.004b0300
add esp, 0x10
jmp 0x4afa0f
mov ecx, dword [esi + 0x114]
push eax
push ecx
call fcn.004b0430
add esp, 8
jmp 0x4afa0f
test bl, bl
jne case.0x4b0133.35
mov al, byte [esp + 0x14]
test al, al
jne case.0x4b0133.35
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x380]
mov dword [esi + 0x188], 0
jmp case.0x4b0133.35
cmp ecx, 0x111
jne case.0x4b0133.35
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x130]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00458970
cmp word [esp + 0x14], 0x200
jne case.0x4b0133.35
mov ecx, dword [esi + 0x164]
test ecx, ecx
je case.0x4b0133.35
mov edx, dword [ecx]
call dword [edx + 0x1d8]
cmp eax, dword [esp + 0x3c]
jne case.0x4b0133.35
push 0
mov ecx, esi
call fcn.004af400
jmp 0x4afa0f