Function at 0x5006a6
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559f8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax], 0x5719b8
mov dword [ebp - 4], 2
mov dword [0x5bac44], 0
mov ecx, dword [0x5bac30]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.00529490
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0xa0], 0
je 0x50091d
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa0]
call dword [sym.imp.Lmc1.dll_public:_void___thiscall_CLmcDev::SetOwen_class_CWnd__]
mov ecx, dword [ebp - 0x34]
call fcn.005059a4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x13544], 0
jl 0x5007e6
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x13544], 0x10
jge 0x5007e6
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0xa0]
call dword [sym.imp.Lmc1.dll_public:_unsigned_short_int___thiscall_CLmcDev::GetCurOutPortData_void_]
mov word [ebp - 0x14], ax
mov ax, word [ebp - 0x14]
mov word [ebp - 0x18], ax
mov word [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa0]
mov ecx, dword [ecx + 0x13544]
shl edx, cl
mov word [ebp - 0x1c], dx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x13548], 0
je 0x5007a9
xor ecx, ecx
cmp dword [ebp - 0x10], 0
sete cl
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x5007bd
mov dx, word [ebp - 0x14]
or dx, word [ebp - 0x1c]
mov word [ebp - 0x14], dx
jmp 0x5007d2
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
not eax
mov cx, word [ebp - 0x14]
and cx, ax
mov word [ebp - 0x14], cx
mov dx, word [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa0]
call dword [sym.imp.Lmc1.dll_public:_int___thiscall_CLmcDev::WritePort_unsigned_short_int_]
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
cmp dword [eax + 0x10c1c], 0
je 0x500839
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
cmp dword [eax + 0x10bac], 1
je 0x500813
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
cmp dword [eax + 0x10bac], 2
jne 0x500827
push 0
push 0
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
mov ecx, eax
call dword [sym.imp.Lmc1.dll_public:_int___thiscall_CLmcDev::SetCurrent_double_]
jmp 0x500839
push 0
push 0
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
mov ecx, eax
call dword [sym.imp.Lmc1.dll_public:_int___thiscall_CLmcDev::SetPowerAnalogOutput_double_]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa0]
cmp dword [edx + 0x134c0], 0
je 0x500869
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa0]
cmp dword [ecx + 0x134bc], 0
jne 0x500869
push 0
push 0
mov ecx, dword [ebp - 0x34]
call fcn.005029aa
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
cmp dword [eax + 0x10bac], 4
jne 0x50088a
push 0
push 0
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_GetLmcDev_void_]
mov ecx, eax
call dword [sym.imp.Lmc1.dll_public:_int___thiscall_CLmcDev::SetSPISimmerCurrent_double_]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00502717
push 0
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_SetLmcDev_class_CLmcDev__]
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xa0]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00502669
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa0]
add edx, 0x10ba8
push edx
call dword [sym.imp.Lmc1.dll_int___cdecl_gf_SaveLmcCfg_struct_LmcCfg___class_CString_]
add esp, 8
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x500903
push 1
mov ecx, dword [ebp - 0x24]
call fcn.00505f90
mov dword [ebp - 0x3c], eax
jmp 0x50090a
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xa0], 0
call dword [sym.imp.Lmc1.dll_void___cdecl_lmc_CloseDriver_void_]
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0xa4], 0
je 0x50094e
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 0xa4], 0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0xa8], 0
je 0x50097f
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0xa8], 0
call dword [sym.imp.Lmc1.dll_void___cdecl_gf_CloseUsbMonitor_void_]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
add ecx, 0xc0
call fcn.00401e50
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
add ecx, 0xb8
call fcn.00401e50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
call fcn.005464e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret