Function at 0x48b520
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535265
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x58f20c
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
push 0x58f20c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 0x18], 1
neg ecx
lea eax, [esi + 4]
sbb ecx, ecx
and ecx, eax
mov dword [0x596964], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x596a1c]
push fcn.00489bc0
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push dword [ebp + 0x18]
mov dword [0x596960], eax
lea ecx, [ebp - 0x14]
push dword [esi + 4]
mov al, byte [esi + 0x84]
push dword [ebp + 0x14]
and al, 0xf7
push dword [ebp + 0x10]
or al, 1
push dword [ebp + 0xc]
mov byte [esi + 0x84], al
call fcn.0049fc00
and byte [esi + 0x84], 0xfe
push dword [0x596960]
mov dword [ebp + 0x18], eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push 0x58f20c
mov dword [0x596960], 0
mov dword [0x596964], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 4]
mov byte [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push esi
call edi
test eax, eax
je 0x48b629
push eax
mov esi, eax
call edi
test eax, eax
jne 0x48b620
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [ebp - 0x10]
test byte [edi + 0x84], 4
jne 0x48b663
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 0x18]
lea ecx, [edx - 1]
test ecx, ecx
js 0x48b63c
mov eax, dword [edi + 0x14]
mov esi, dword [eax + ecx*4]
mov dword [ebp + 8], esi
cmp ecx, edx
jge 0x48b63c
mov dword [edi + 0x18], ecx
test esi, esi
je 0x48b63c
push esi
mov dword [ebp - 0x14], esi
xor edi, edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x48b660
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x30
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x32
push 1
push edi
push esi
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x48b773
push 0x1c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x38], xmm0
movq qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [ebp - 0x38], 0
je 0x48b773
test byte [ebp - 0x24], 6
je 0x48b773
cmp dword [esi], 0x1313
jne 0x48b773
mov dword [ebp - 0x64], 0x31
mov eax, dword [esi + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x44], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x68]
push eax
push 1
push edi
push dword [ebp + 8]
mov dword [ebp - 0x48], 0
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push dword [esi + 4]
mov eax, dword [ebp - 0x5c]
push dword [ebp - 0x58]
or eax, dword [ebp - 0x60]
or eax, 0x400
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ModifyMenuW]
push dword [esi + 4]
call fcn.004d2aa1
push 0x14
push esi
call fcn.004d24a7
add esp, 0xc
mov esi, dword [ebp + 8]
inc edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x48b691
jmp 0x48b660