Function at 0x4bac50
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c0eea
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x194]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4bacc7
mov eax, dword [eax + 0x58]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bacc7
mov eax, dword [esi + 0x194]
mov ecx, dword [eax + 0x58]
push ecx
call edi
test eax, eax
je 0x4bacc7
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4bacfe
mov edx, dword [eax + 0x58]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bacfe
mov eax, dword [esi + 0x190]
mov eax, dword [eax + 0x58]
push eax
call edi
test eax, eax
je 0x4bacfe
mov eax, dword [esi + 0x190]
call fcn.004c2600
test eax, eax
jne 0x4bacad
xor ecx, ecx
cmp dword [esi + 0x210], 1
lea ebx, [esp + 0x10]
sete cl
push ecx
call fcn.004c2550
add esp, 4
lea edi, [esp + 0x18]
call fcn.00554ee0
mov edi, esi
mov eax, dword [edi + 0x20c]
xor esi, esi
cmp eax, esi
jne 0x4bad73
mov eax, dword [esp + 0x18]
add eax, dword [edi + 0x1b4]
mov edx, dword [esp + 0x10]
add edx, eax
cmp dword [edi + 0x210], 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
jne 0x4bad63
lea eax, [esi + 5]
call fcn.00412f20
add dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x24], ecx
jmp 0x4badac
cmp eax, 1
jne 0x4badac
mov eax, dword [esp + 0x18]
add eax, dword [edi + 0x1b4]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x18], eax
mov eax, 5
mov dword [esp + 0x20], ecx
call fcn.00412f20
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp + 0x24], ecx
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
xor ebx, ebx
cmp dword [edi + 0x190], esi
jne 0x4baf28
push 0x6211f4
push 0x160
call fcn.0058a96c
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], esi
cmp eax, esi
je 0x4baded
xor edx, edx
cmp dword [edi + 0x210], 1
sete dl
push edx
push eax
call fcn.004bd9d0
mov esi, eax
mov dword [esp + 0x60], 0xffffffff
cmp dword [edi + 0x190], esi
je 0x4bae21
test esi, esi
je 0x4bae09
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [edi + 0x190]
test eax, eax
je 0x4bae1b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x190], esi
cmp dword [edi + 0x190], 0
je 0x4bb0ac
push 0
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push 0x8080080
push SysReAllocStringLen
mov dword [eax], 0
push 0
push ecx
mov eax, esp
lea ecx, [esp + 0x30]
mov dword [eax], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov esi, dword [edi + 0x190]
mov ecx, edi
mov ebx, 1
mov dword [esp + 0x28], esp
call eax
push eax
mov ecx, esi
call fcn.00540910
mov ecx, dword [edi + 0x190]
test ecx, ecx
je 0x4bae94
lea eax, [edi + 0x168]
test eax, eax
je 0x4bae94
push eax
push 0x640
call fcn.00545b30
mov ecx, dword [edi + 0x190]
test ecx, ecx
je 0x4baeb3
lea eax, [edi + 0x168]
test eax, eax
je 0x4baeb3
push eax
push 0x520c
call fcn.00545b30
mov ecx, dword [edi + 0x190]
test ecx, ecx
je 0x4baed2
lea eax, [edi + 0x168]
test eax, eax
je 0x4baed2
push eax
push 0x520a
call fcn.00545b30
mov ecx, dword [edi + 0x190]
test ecx, ecx
je 0x4baef1
lea eax, [edi + 0x168]
test eax, eax
je 0x4baef1
push eax
push 0x520d
call fcn.00545b30
mov eax, dword [edi + 0x190]
mov ecx, dword [edi + 0x20c]
call fcn.004c2500
mov eax, dword [edi + 0x15c]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
test eax, eax
je 0x4baf1d
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov esi, dword [edi + 0x190]
call fcn.004c2310
cmp dword [edi + 0x190], 0
je 0x4bb0ac
cmp dword [edi + 0x15c], 0
je 0x4bb0ac
lea eax, [esp + 0x38]
push eax
call fcn.004bc4c0
push ecx
mov dword [esp + 0x64], 1
mov esi, esp
mov eax, edi
mov dword [esp + 0x14], esp
call fcn.004bc010
mov eax, dword [edi + 0x190]
push 0
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.004be080
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov esi, dword [edi + 0x190]
mov ecx, edi
call eax
call fcn.004c2470
test ebx, ebx
jne 0x4baff8
mov eax, dword [edi + 0x190]
mov ecx, dword [eax + 0x58]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4baff8
mov eax, dword [edi + 0x190]
mov ecx, dword [eax + 0x58]
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4baff8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [edi + 0x190]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004c2630
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
push 1
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x4bb04b
mov eax, dword [edi + 0x190]
mov ecx, dword [eax + 0x58]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi + 0x190]
mov eax, dword [edx + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x4c]
xor edi, edi
mov dword [esp + 0x50], edi
cmp eax, ecx
je 0x4bb07d
mov esi, dword [eax]
push eax
call fcn.005851f0
mov ecx, dword [esp + 0x50]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x4bb068
push ecx
call fcn.005851f0
mov ecx, dword [esp + 0x3c]
add esp, 4
push ecx
mov dword [esp + 0x50], edi
call fcn.005851f0
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4