Function at 0x40a5ff
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x429730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor esi, esi
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push edi
mov edi, 0x42ac34
push 0x42ac10
mov ecx, edi
call fcn.0040729f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x42ac64], eax
mov dword [ebp - 0x2c], esi
mov ebx, 0x4210bc
jmp 0x40a676
push str.UnregServer
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40a68a
push str.RegServer
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40a69f
push ebx
push dword [ebp - 0x24]
call fcn.00407486
pop ecx
mov dword [ebp - 0x24], eax
pop ecx
cmp eax, esi
jne 0x40a652
jmp 0x40a6b7
push esi
push esi
push 0x64
push edi
call fcn.00409ec6
push esi
push esi
mov ecx, edi
call fcn.00409630
jmp 0x40a6b4
push esi
push 1
push 0x64
push edi
call fcn.00409ec6
push esi
push 1
mov ecx, edi
call fcn.004095c1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 0x420c54
push 0x15
push esi
push 0x420c74
mov dword [ebp - 0x28], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40a817
cmp dword [ebp - 0x28], esi
je 0x40a817
push 0x18
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.0040f990
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x48]
push edx
push 0x18
push eax
call dword [ecx + 0xa0]
test eax, eax
jl 0x40a730
cmp dword [ebp - 0x34], 1
jne 0x40a730
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x18
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x40a730
push 9
push dword [ebp - 0xc]
call fcn.004011d7
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], esi
cmp ebx, esi
je 0x40a817
push str.IGFXHKMUTEXT
lea ecx, [ebp - 0x20]
call fcn.00401cf4
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x40a75d
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a779
xor ebx, ebx
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.004014e1
cmp ebx, esi
je 0x40a817
push 1
push 4
mov ecx, edi
call fcn.00407b1d
push 0x28
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0040f990
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
add esp, 0xc
lea eax, [ebp - 0x74]
mov ebx, str.HkClass
push eax
mov dword [ebp - 0x70], 0x40a10b
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push dword [ebp - 0x30]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.HkWndName
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
je 0x40a810
push 0x42abec
push eax
call fcn.004074c5
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
pop ecx
jmp 0x40a803
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x4c]
push eax
call ebx
test eax, eax
jne 0x40a7f9
mov ecx, edi
call fcn.00407b5f
cmp dword [ebp - 0x24], esi
pop edi
pop esi
pop ebx
je 0x40a828
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0040fa0a
leave
ret 0x10