Function at 0x48b790
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5352b5
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 edi, ecx
mov dword [ebp - 0x14], edi
call fcn.0045dba0
mov ecx, eax
call fcn.0045f1e0
test al, al
je 0x48b7f5
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048b520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 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, edi
mov byte [ebp - 0x18], 1
neg ecx
lea eax, [edi + 4]
sbb ecx, ecx
and ecx, eax
mov dword [0x596964], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x596a1c]
push 0x489c90
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push dword [ebp + 0x18]
mov dword [0x596960], eax
lea ecx, [ebp - 0x10]
push dword [edi + 4]
mov al, byte [edi + 0x84]
push dword [ebp + 0x14]
and al, 0xf7
push dword [ebp + 0x10]
or al, 1
push dword [ebp + 0xc]
mov byte [edi + 0x84], al
call fcn.0049fc00
and byte [edi + 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 [edi + 4]
mov byte [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x48b8d4
push eax
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x48b8c7
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
test byte [edi + 0x84], 4
jne 0x48b904
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 - 0x14]
mov edx, dword [edi + 0x18]
lea ecx, [edx - 1]
test ecx, ecx
js 0x48b8e4
mov eax, dword [edi + 0x14]
mov esi, dword [eax + ecx*4]
mov dword [ebp + 8], esi
cmp ecx, edx
jge 0x48b8e4
mov dword [edi + 0x18], ecx
test esi, esi
je 0x48b8e4
push esi
mov dword [ebp - 0x10], esi
xor edi, edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x48b901
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 0x48ba14
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 0x48ba14
test byte [ebp - 0x24], 6
je 0x48ba14
cmp dword [esi], 0x1313
jne 0x48ba14
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 0x48b932
jmp 0x48b901