Function at 0x48ad10
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x48b04d
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push edi
call ebx
mov dword [esp + 0x18], eax
cmp eax, dword [0x4f0038]
je 0x48ad9e
mov ecx, dword [0x4f121c]
test cl, 1
jne 0x48ad6a
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x4f121c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f1220], eax
jmp 0x48ad6f
mov eax, dword [0x4f1220]
test eax, eax
je 0x48ad78
push edi
call eax
jmp 0x48ad96
lea eax, [esp + 0x14]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x48b04d
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
push edi
mov ebp, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x48adbc
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, ebp
jne 0x48adca
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp byte [0x4ef00c], 0
jne 0x48ae28
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x4ea820], 0
lea ecx, [edx + 9]
call fcn.004016d0
mov dword [0x4ea820], 1
call esi
mov esi, eax
cmp esi, edi
jne 0x48ae0f
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp esi, ebp
je 0x48ae28
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x48ae28
test esi, esi
jne 0x48b043
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebp, ebp
je 0x48aef2
push 0
push ebp
call ebx
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x48aefa
cmp dword [0x4f0038], esi
je 0x48aed1
mov ecx, dword [0x4f121c]
test cl, 1
jne 0x48ae87
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x4f121c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f1220], eax
jmp 0x48ae8c
mov eax, dword [0x4f1220]
test eax, eax
je 0x48ae95
push ebp
call eax
jmp 0x48aeb3
lea eax, [esp + 0x1c]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
jne 0x48aed7
push 1
push esi
push dword [0x4f0038]
call ebx
test eax, eax
setne byte [esp + 0x12]
jmp 0x48aed7
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48aefa
cmp esi, eax
je 0x48aefa
push 1
push eax
push esi
call ebx
test eax, eax
setne byte [esp + 0x13]
jmp 0x48aefa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xor ebx, ebx
nop dword [eax]
movzx eax, byte [0x4ef00c]
cmp ebx, eax
jne 0x48af35
cmp byte [0x4f10c2], 0
jne 0x48af35
push 0xffc3d450
push 0
push 0
push 0
mov dl, 0x12
mov byte [0x4f10c2], 1
mov ecx, 1
call fcn.00419d60
add esp, 0x10
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x4ea820], 0
lea ecx, [edx + 9]
call fcn.004016d0
mov dword [0x4ea820], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, edi
je 0x48b00a
cmp esi, ebp
je 0x48af86
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x48af86
test esi, esi
jne 0x48b00c
inc ebx
cmp ebx, 5
jl 0x48af00
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
mov ecx, 2
call fcn.00419d60
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
mov ecx, 2
call fcn.00419d60
add esp, 0x20
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x4ea820], 0
lea ecx, [edx + 9]
call fcn.004016d0
mov dword [0x4ea820], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, edi
je 0x48b00a
cmp esi, ebp
je 0x48b006
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
je 0x48b00c
xor esi, esi
jmp 0x48b00c
mov esi, edi
cmp byte [esp + 0x12], 0
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x48b028
push 0
push ebx
push dword [0x4f0038]
call ebp
cmp byte [esp + 0x13], 0
je 0x48b038
push 0
push dword [esp + 0x1c]
push ebx
call ebp
test esi, esi
je 0x48b04d
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret