Function at 0x464800
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x555068
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, ecx
push ebp
lea ecx, [esp + 0x84]
call fcn.004f5121
xor ebx, ebx
lea esi, [esp + 0x80]
mov eax, ebp
mov dword [esp + 0xb0], ebx
call fcn.004644c0
mov edi, eax
mov eax, dword [ebp + 0xf8]
mov dword [ebp + 0x124], ebx
mov eax, dword [eax + 0xd0]
add eax, 0x28
mov eax, dword [eax + 4]
lea esi, [edi + 0xd]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], 9
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
test eax, eax
je 0x464984
jmp 0x4648a0
mov ecx, eax
mov ecx, dword [ecx + 8]
test byte [ecx + 0xe4], 1
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
je 0x46497c
push 0x24
call fcn.004dcae4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4648d5
mov ecx, ebx
call fcn.004139f0
jmp 0x4648d7
xor ebx, ebx
mov ecx, dword [esp + 0x20]
lea edx, [esi + edi]
push edx
push 0xac
push esi
mov dword [ebx + 0x10], ecx
push 9
lea ecx, [esp + 0x68]
mov dword [ebx + 0x20], 0
call fcn.00410170
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
lea eax, [esi + edi + 1]
lea esi, [ebp + 0xfc]
mov dword [ebx + 0xc], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
test eax, eax
jl 0x4649f5
mov edi, eax
inc edi
call fcn.00465d20
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], ebx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], edx
mov eax, dword [ebp + 0xf8]
cmp dword [eax + 0xd8], ecx
jne 0x464968
mov dword [ebp + 0x124], ebx
inc dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x4648a0
cmp dword [ebp + 0x150], 0
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp + 0x134], ebx
je 0x4649d2
test ebx, ebx
jle 0x4649d2
cmp dword [ebp + 0x124], 0
push 0x10
jne 0x4649fa
call eax
test ax, ax
jl 0x4649b2
xor eax, eax
jmp 0x4649b5
lea eax, [ebx - 1]
test eax, eax
jl 0x4649f5
cmp eax, dword [ebp + 0x104]
jge 0x4649f5
mov edx, dword [ebp + 0x100]
lea eax, [edx + eax*4]
mov eax, dword [eax]
mov dword [ebp + 0x124], eax
cmp dword [ebp + 0x134], 0
mov dword [esp + 0x28], ebx
jle 0x464a65
dec ebx
lea esi, [ebp + 0x110]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esi + 8]
test ebx, ebx
jge 0x464a4b
call fcn.004dcd9a
call eax
test ax, ax
jl 0x464a36
mov ecx, dword [ebp + 0x124]
mov eax, dword [ecx + 0x14]
lea edx, [ebx - 1]
cmp eax, edx
jl 0x464a15
xor eax, eax
jmp 0x464a16
inc eax
test eax, eax
jl 0x4649f5
cmp eax, dword [ebp + 0x104]
jge 0x4649f5
mov ecx, dword [ebp + 0x100]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x124], edx
jmp 0x4649d2
mov eax, dword [ebp + 0x124]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x464a46
dec eax
jmp 0x464a16
lea eax, [ebx - 1]
jmp 0x464a16
lea edi, [ebx + 1]
call fcn.00465ed0
mov esi, dword [esi + 4]
xor eax, eax
mov dword [esi + ebx*8], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + ebx*8 + 4], eax
jmp 0x464a6f
mov dword [ebp + 0x150], 0
cmp dword [ebp + 0x134], 0
mov eax, dword [ebp + 0x104]
mov dword [ebp + 0x130], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jle 0x464aad
mov esi, dword [esp + 0x24]
add esi, 0xd
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0xb8
mov dword [esp + 0x1c], esi
jmp 0x464ab1
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xf8]
mov eax, dword [ecx + 0xcc]
push eax
push 0x5679bc
call fcn.004f9663
add esp, 8
test eax, eax
je 0x464c7e
mov eax, dword [eax + 0xe8]
test eax, eax
je 0x464c7e
push 0
push 0
push 0x229
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x38], eax
test eax, eax
je 0x464d39
mov esi, eax
mov dword [esp + 0x34], esi
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x464c62
test eax, 0x8000000
jne 0x464c62
cmp dword [esp + 0x14], 0xe
jle 0x464b9d
mov eax, dword [ebp + 0x104]
mov ebx, dword [ebp + 0x118]
lea esi, [ebp + 0x110]
dec eax
mov dword [esp + 0x5c], eax
test ebx, ebx
jl 0x4649f5
lea edi, [ebx + 1]
call fcn.00465ed0
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
mov eax, dword [esp + 0x5c]
mov dword [esi + ebx*8], edx
mov dword [esi + ebx*8 + 4], eax
jle 0x464b74
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov eax, dword [ebp + 0x104]
inc dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xd
add dword [esp + 0x30], 0xaf
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
push 0x24
call fcn.004dcae4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x464bb6
mov ecx, ebx
call fcn.004139f0
jmp 0x464bb8
xor ebx, ebx
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x10], ecx
lea edx, [esi + edi]
push edx
lea ecx, [eax + 0xa3]
push ecx
push esi
push eax
lea ecx, [esp + 0xa4]
mov dword [ebx + 0x20], 1
call fcn.00410170
mov edx, dword [eax]
mov dword [ebx], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov eax, dword [eax + 0xc]
lea ecx, [esi + edi + 1]
lea esi, [ebp + 0xfc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test eax, eax
jl 0x4649f5
mov edi, eax
inc edi
call fcn.00465d20
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [edx + eax*4], ebx
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
cmp dword [esp + 0x38], edx
jne 0x464c5a
cmp dword [ebp + 0x150], 0
jne 0x464c5a
mov dword [ebp + 0x124], ebx
inc dword [esp + 0x14]
mov esi, dword [esp + 0x34]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov dword [esp + 0x34], eax
test esi, esi
jne 0x464b03
jmp 0x464d39
push 0x24
call fcn.004dcae4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x464c97
mov ecx, ebx
call fcn.004139f0
jmp 0x464c99
xor ebx, ebx
mov eax, dword [ebp + 0xf8]
mov ecx, dword [eax + 0xcc]
call fcn.00410aa0
mov ecx, dword [esp + 0x24]
lea edx, [esi + ecx]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x30]
push edx
lea ecx, [eax + 0xa3]
push ecx
push esi
push eax
lea ecx, [esp + 0xa4]
mov dword [ebx + 0x20], 2
call fcn.00410170
mov edx, dword [eax]
mov dword [ebx], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov eax, dword [eax + 0xc]
lea esi, [ebp + 0xfc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
test eax, eax
jge 0x464d01
call fcn.004dcd9a
mov edi, eax
inc edi
call fcn.00465d20
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4], ebx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], 0
cmp dword [ebp + 0x124], 0
jne 0x464d33
mov dword [ebp + 0x124], ebx
inc dword [ebp + 0x130]
mov eax, dword [ebp + 0x104]
cmp dword [esp + 0x20], eax
jge 0x464d79
mov ebx, dword [ebp + 0x118]
lea esi, [ebp + 0x110]
dec eax
mov dword [esp + 0x5c], eax
test ebx, ebx
jge 0x464d5f
call fcn.004dcd9a
lea edi, [ebx + 1]
call fcn.00465ed0
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov eax, dword [ebp + 0x104]
dec eax
cmp dword [ebp + 0x130], eax
jge 0x464df9
cmp dword [ebp + 0x150], 0
jne 0x464df9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x464dcc
mov eax, dword [ebp + 0x130]
add eax, 1
js 0x4649f5
cmp eax, dword [ebp + 0x104]
jge 0x4649f5
mov edx, dword [ebp + 0x100]
lea eax, [edx + eax*4]
mov eax, dword [eax]
mov dword [ebp + 0x124], eax
jmp 0x464df9
mov eax, dword [ebp + 0x104]
add eax, 0xffffffff
js 0x4649f5
cmp eax, dword [ebp + 0x104]
jge 0x4649f5
mov ecx, dword [ebp + 0x100]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x124], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmp eax, edx
jle 0x464e07
mov edx, eax
mov eax, dword [ebp + 0x118]
cmp eax, 2
jge 0x464e17
mov eax, 2
mov ecx, dword [esp + 0x24]
imul eax, eax, 0xaf
lea esi, [ecx + 1]
imul esi, edx
lea ecx, [esi + ecx + 0x7b]
push ecx
add eax, 4
push eax
lea ecx, [esp + 0x58]
call fcn.0040fcd0
mov edx, dword [ebp + 0xf8]
mov esi, dword [edx + 0xcc]
lea ecx, [esp + 0x70]
call fcn.004139f0
mov ecx, esi
call fcn.00410aa0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x464e75
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.00410aa0
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x464e80
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x74]
call fcn.004152b0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edi, eax
cdq
sub eax, edx
mov edx, dword [esp + 0x6c]
sar eax, 1
sub edx, eax
mov eax, ecx
push edx
cdq
mov esi, ecx
mov ecx, dword [esp + 0x6c]
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
lea ecx, [esp + 0x60]
call fcn.0040fcd0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esi, ecx
mov dword [esp + 0x40], ecx
add edi, eax
push 0x250
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edi
call fcn.0040fe70
push eax
lea ecx, [esp + 0x48]
call fcn.00415ef0
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push edx
push eax
push 0x5beec8
mov ecx, ebp
call fcn.004e3671
lea ecx, [esp + 0x80]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004f5175
mov eax, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret