Function at 0x47eb40
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x47edcd
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call ebx
mov dword [esp + 0x18], eax
cmp eax, dword [0x4dcd34]
je 0x47eb77
mov ecx, esi
call fcn.0047fe40
test al, al
jne 0x47edcd
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call edi
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x47eb95
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebp
jne 0x47eba3
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x4dbea7], 0
jne 0x47ec01
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x4d78c0], 0
lea ecx, [edx + 9]
call fcn.00401950
mov dword [0x4d78c0], 1
call edi
mov edi, eax
cmp edi, esi
jne 0x47ebe8
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp edi, ebp
je 0x47ec01
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
cmp esi, eax
jne 0x47ec01
test edi, edi
jne 0x47edc3
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebp, ebp
je 0x47ec6c
push 0
push ebp
call ebx
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x47ec74
cmp dword [0x4dcd34], edi
je 0x47ec4b
mov ecx, ebp
call fcn.0047fe40
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x47ec51
push 1
push edi
push dword [0x4dcd34]
call ebx
test eax, eax
setne byte [esp + 0x12]
jmp 0x47ec51
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47ec74
cmp edi, eax
je 0x47ec74
push 1
push eax
push edi
call ebx
test eax, eax
setne byte [esp + 0x13]
jmp 0x47ec74
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor ebx, ebx
nop word [eax + eax]
movzx eax, byte [0x4dbea7]
cmp ebx, eax
jne 0x47ecb5
cmp byte [0x4de83c], 0
jne 0x47ecb5
push 0xffc3d450
push 0
push 0
push 0
mov dl, 0x12
mov byte [0x4de83c], 1
mov ecx, 1
call fcn.004103a0
add esp, 0x10
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x4d78c0], 0
lea ecx, [edx + 9]
call fcn.00401950
mov dword [0x4d78c0], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
cmp edi, esi
je 0x47ed8a
cmp edi, ebp
je 0x47ed06
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
cmp esi, eax
jne 0x47ed06
test edi, edi
jne 0x47ed8c
inc ebx
cmp ebx, 5
jl 0x47ec80
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
mov ecx, 2
call fcn.004103a0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
mov ecx, 2
call fcn.004103a0
add esp, 0x20
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x4d78c0], 0
lea ecx, [edx + 9]
call fcn.00401950
mov dword [0x4d78c0], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
cmp edi, esi
je 0x47ed8a
cmp edi, ebp
je 0x47ed86
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
cmp esi, eax
je 0x47ed8c
xor edi, edi
jmp 0x47ed8c
mov edi, esi
cmp byte [esp + 0x12], 0
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x47eda8
push 0
push ebx
push dword [0x4dcd34]
call ebp
cmp byte [esp + 0x13], 0
je 0x47edb8
push 0
push dword [esp + 0x1c]
push ebx
call ebp
test edi, edi
je 0x47edcd
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret