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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x423720]
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, 0x424c88
push 0x424c64
mov ecx, edi
call fcn.00404fe4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x424cb8], eax
mov dword [ebp - 0x2c], esi
mov ebx, 0x41cbd8
jmp 0x4082cb
push str.UnregServer
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4082df
push str.RegServer
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4082f4
push ebx
push dword [ebp - 0x24]
call fcn.0040515d
cmp eax, esi
pop ecx
mov dword [ebp - 0x24], eax
pop ecx
jne 0x4082a7
jmp 0x40830c
push esi
push esi
push 0x64
push edi
call fcn.004078dd
push esi
push esi
mov ecx, edi
call fcn.00407b90
jmp 0x408309
push esi
push 1
push 0x64
push edi
call fcn.004078dd
push esi
push 1
mov ecx, edi
call fcn.00407b21
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 0x41c874
push 0x15
push esi
push 0x41c894
mov dword [ebp - 0x28], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x408442
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x408442
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x18
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x40835b
cmp dword [ebp - 0xc], esi
jle 0x408359
cmp dword [ebp - 0xc], 0xb
jg 0x408359
inc ebx
jmp 0x40835b
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
mov dword [ebp - 0x28], esi
je 0x408442
push str.IGFXHKMUTEXT
lea ecx, [ebp - 0x20]
call fcn.00401ccd
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x408388
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 0x4083a4
xor ebx, ebx
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.004014cf
cmp ebx, esi
je 0x408442
push 1
push 4
mov ecx, edi
call fcn.004057c3
push 0x28
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0040c850
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
add esp, 0xc
lea eax, [ebp - 0x58]
mov ebx, str.HkClass
push eax
mov dword [ebp - 0x54], 0x407c09
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x44], 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 0x40843b
push 0x424c50
push eax
call fcn.0040519c
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
pop ecx
jmp 0x40842e
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
jne 0x408424
mov ecx, edi
call fcn.00405805
cmp dword [ebp - 0x24], esi
pop edi
pop esi
pop ebx
je 0x408453
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.0040c8ca
leave
ret 0x10