Function at 0x51c130
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test al, 1
push edi
jne case.0x51c683.35
test ah, 0x40
jne case.0x51c683.35
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 0x3c]
jne 0x51c20a
mov eax, dword [ebp + 0xc]
sub eax, 0x1b
je 0x51c1c6
sub eax, 0x3d
je 0x51c1a0
dec eax
jne case.0x51c683.35
mov eax, dword [esi + 0x194]
xor ecx, ecx
cmp eax, 2
sete cl
dec ecx
and ecx, 2
mov eax, ecx
push eax
push esi
mov dword [esi + 0x194], eax
call fcn.005182b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x194]
xor edx, edx
cmp eax, 1
setne dl
mov eax, edx
push eax
push esi
mov dword [esi + 0x194], eax
call fcn.005182b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je case.0x51c683.35
fld qword [esi + 0x78]
mov eax, dword [esi + 0x88]
push 0
fstp qword [esi + 0x148]
fld qword [esi + 0x80]
push 0
mov dword [esi + 0x158], eax
fstp qword [esi + 0x150]
push esi
mov eax, 8
call fcn.00519050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x51c671
mov edi, dword [ebp + 0xc]
lea eax, [edi - 0x21]
cmp eax, 0x48
ja case.0x51c22b.35
movzx ecx, byte [eax + 0x51c744]
jmp dword [ecx*4 + 0x51c704]
fld qword [0x5d92f0]
fstp qword [esi + 0x148]
fld qword [0x5d92f0]
jmp 0x51c2cf
fld qword [0x5d8c90]
fstp qword [esi + 0x148]
fld qword [0x5d92f0]
jmp 0x51c2cf
fld qword [0x5d6138]
fstp qword [esi + 0x148]
fld qword [0x5d92f0]
jmp 0x51c2cf
fld qword [0x5d92f0]
fstp qword [esi + 0x148]
fld qword [0x5d8c90]
jmp 0x51c2cf
fld qword [0x5d8c90]
fstp qword [esi + 0x148]
fld qword [0x5d8c90]
jmp 0x51c2cf
fld qword [0x5d6138]
fstp qword [esi + 0x148]
fld qword [0x5d8c90]
jmp 0x51c2cf
fld qword [0x5d92f0]
jmp 0x51c2c3
fld qword [0x5d8c90]
jmp 0x51c2c3
fld qword [0x5d6138]
fstp qword [esi + 0x148]
fld qword [0x5d6138]
push 0x11
fstp qword [esi + 0x150]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x51c32c
fld qword [0x5d8c90]
fld qword [esi + 0x150]
fucompp
fnstsw ax
test ah, 0x44
jp 0x51c30c
fld qword [0x5d8c90]
fld qword [esi + 0x148]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x51c32c
fld qword [esi + 0x150]
fld qword [esi + 0x148]
fpatan
fld st(0)
fcos
fstp qword [esi + 0x148]
fsin
fstp qword [esi + 0x150]
push 0x2710
push 1
call fcn.005173d0
mov ecx, dword [esi + 8]
mov edx, 1
shl edx, cl
push 0
lea eax, [esi + 0xc]
dec edx
push edx
push eax
push 5
mov ecx, dword [esi + 0x2a4]
mov edx, dword [esi + 0x40]
push ecx
push edx
push esi
call dword [esi + 0x2a8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
lea ecx, [ecx + ecx + 0xe]
mov edi, ecx
jmp 0x51c3fa
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
test ax, ax
setl dl
lea edx, [edx + edx + 0xf]
jmp 0x51c3f8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setge cl
dec ecx
and ecx, 0xfffffffb
add ecx, 0x11
mov edi, ecx
jmp 0x51c3fa
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
test ax, ax
setge dl
dec edx
and edx, 0xfffffffd
add edx, 0xe
jmp 0x51c3f8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setge cl
dec ecx
and ecx, 0xfffffffa
add ecx, 0x10
mov edi, ecx
jmp 0x51c3fa
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
test ax, ax
setge dl
lea edx, [edx + edx + 0xd]
mov edi, edx
fld qword [0x5d6138]
sub esp, 8
mov eax, edi
fstp qword [esp]
mov ecx, esi
call fcn.005177c0
push 0x2710
push 1
call fcn.005173d0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x2a4]
mov eax, 1
shl eax, cl
push 0
lea ecx, [esi + 0xc]
dec eax
push eax
mov eax, dword [esi + 0x40]
push ecx
push edi
push edx
push eax
push esi
call dword [esi + 0x2a8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi]
test al, 2
je 0x51c62a
cmp edi, 9
je 0x51c4ce
cmp edi, 0x20
jne 0x51c62a
mov ecx, dword [esi + 0x198]
cmp ecx, 0xffffffff
je 0x51c4ce
test al, 0x20
je 0x51c4a4
mov eax, dword [esi + 0x158]
test eax, eax
je 0x51c4a4
mov eax, dword [esi + 0x19c]
mov edx, 1
shl edx, cl
push 0x2710
push 1
xor eax, edx
mov dword [esi + 0x19c], eax
call fcn.005173d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0x9c]
push 0x2710
push 1
xor ecx, eax
mov dword [esi + 0x9c], ecx
call fcn.005173d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [esi + 0x98]
jge 0x51c57c
test eax, eax
je 0x51c62a
mov eax, dword [esi + 0x198]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
dec eax
mov dword [esi + 0x198], eax
mov ebx, 8
jns 0x51c51d
push 0
push 1
push 0x28
mov ecx, esi
mov dword [esi + 0x198], ebx
call fcn.00516e90
push eax
call edi
mov ecx, dword [esi + 0x198]
mov eax, dword [esi + 0x98]
mov edx, 1
shl edx, cl
test eax, edx
jne 0x51c567
dec dword [esi + 0x198]
jns 0x51c552
push 0
push 1
push 0x28
mov ecx, esi
mov dword [esi + 0x198], ebx
call fcn.00516e90
push eax
call edi
mov ecx, dword [esi + 0x198]
mov eax, 1
shl eax, cl
test dword [esi + 0x98], eax
je 0x51c534
push 0x2710
push 1
call fcn.005173d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
je 0x51c62a
mov edx, dword [esi + 0x198]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
inc edx
mov eax, edx
mov ebx, 8
cmp eax, ebx
mov dword [esi + 0x198], edx
jbe 0x51c5bc
push 0
push 0
push 0x28
mov ecx, esi
mov dword [esi + 0x198], 0
call fcn.00516e90
push eax
call edi
mov ecx, dword [esi + 0x198]
mov eax, dword [esi + 0x98]
mov edx, 1
shl edx, cl
test eax, edx
jne 0x51c615
mov ecx, dword [esi + 0x198]
inc ecx
mov eax, ecx
cmp eax, ebx
mov dword [esi + 0x198], ecx
jbe 0x51c600
push 0
push 0
push 0x28
mov ecx, esi
mov dword [esi + 0x198], 0
call fcn.00516e90
push eax
call edi
mov ecx, dword [esi + 0x198]
mov eax, 1
shl eax, cl
test dword [esi + 0x98], eax
je 0x51c5d3
push 0x2710
push 1
call fcn.005173d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x18]
push edx
push eax
mov dword [esp + 0x2c], ecx
push 0x4e
mov ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xffffff9a
mov dword [esp + 0x28], edi
call fcn.00516e90
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
add eax, 0xffffffdf
cmp eax, 0x38
ja case.0x51c683.35
movzx eax, byte [eax + 0x51c7a0]
jmp dword [eax*4 + 0x51c790]
mov ecx, dword [esi + 8]
mov edx, 1
shl edx, cl
push 0
lea eax, [esi + 0xc]
dec edx
push edx
push eax
push 8
jmp 0x51c34c
mov eax, dword [esi + 0x194]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
push eax
push esi
mov dword [esi + 0x194], eax
call fcn.005182b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0
push 0
push 0x60d
push esi
call sym.vidcap60.exe__PanInst_Message_16
mov edi, eax
sub edi, 2
neg edi
sbb edi, edi
and edi, 2
push edi
push 0
push 0x60e
push esi
call sym.vidcap60.exe__PanInst_Message_16
push edi
push esi
call fcn.005182b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14