Function at 0x4ca471
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cdac5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [eax + 0x38]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
push dword [ebp + 8]
lea esi, [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.0040257b
mov dword [esp + 0x80], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x80], 1
lea eax, [esp + 0x1c]
push eax
mov esi, edi
call fcn.004ca36f
mov esi, eax
mov dword [esp + 0x20], esi
call fcn.00402522
mov dword [esp + 0x24], eax
call fcn.00402502
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x2c]
mov dword [esp + 0x30], eax
call fcn.004cb4b6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
and eax, 4
mov dword [esp + 0x28], eax
je 0x4ca535
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
sub eax, esi
sub eax, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, dword [esp + 0x48]
add ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
add eax, esi
and edx, 1
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x24], edx
je 0x4ca584
lea esi, [esp + 0x64]
mov ecx, edi
call fcn.004ca916
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
sub ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x24]
push ecx
push dword [esp + 0x70]
lea esi, [esp + 0x48]
push dword [esp + 0x70]
call fcn.00402542
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00425ecf
mov byte [esp + 0x80], 2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x74]
test al, al
jne 0x4ca5d4
mov esi, dword [edi + 0x18]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x24], ebx
je 0x4ca5e6
mov dword [esp + 0x14], 0x20000
mov eax, dword [edi]
push ebx
mov ecx, edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call dword [eax + 0x24]
push esi
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
or ecx, 0x400
push ecx
mov ecx, dword [ebp + 8]
call fcn.004cb9bd
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
add esp, 0x14
lea ecx, [edx + eax + 5]
cmp dword [esp + 0x28], ebx
je 0x4ca645
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x5c]
sub ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x4c]
lea ecx, [ecx + eax - 5]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x60]
sub eax, dword [esp + 0x48]
add eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x48]
push eax
push ecx
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x24]
push esi
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x24]
mov ecx, dword [ebp + 8]
call fcn.004cb9bd
add esp, 0x14
cmp byte [edi + 0x6c], bl
jne 0x4ca6ac
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
seta al
mov byte [edi + 0x6c], al
cmp al, bl
je 0x4ca6f6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
test al, al
je 0x4ca6f6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x74]
test al, al
je 0x4ca6f6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x7c]
test al, al
je 0x4ca6f6
lea esi, [esp + 0x54]
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
push 1
lea eax, [esp + 0x34]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x18]
call fcn.00402907
mov byte [esp + 0x80], bl
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4ca71c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0x1c], ebx
or dword [esp + 0x80], 0xffffffff
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4