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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor edi, edi
mov dword [ebp + 0x10], eax
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov esi, 0x413d20
mov dword [0x413d90], 0x411150
mov dword [0x413cf4], esi
push 0x411108
push esi
mov dword [0x413d20], 0x84
mov dword [0x413d84], 0x300
call fcn.00407af5
mov eax, 0x40f2f8
mov ecx, eax
test ecx, ecx
je 0x40792a
push 0x10
push eax
push 0x413d10
call fcn.00409430
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x411290
mov dword [0x413da4], eax
push ebx
mov dword [ebp - 8], edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.00407879
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 0x10], eax
je 0x4079ad
push str.UnregServer
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40797e
push str.RegServer
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407993
push ebx
push dword [ebp + 0x10]
jmp 0x407948
push edi
push edi
push 0x64
push esi
call fcn.00406439
push edi
push 1
push esi
call fcn.00407e72
jmp 0x4079a7
push edi
push 1
push 0x64
push esi
call fcn.00406439
push edi
push 1
push esi
call fcn.00407cf9
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.004052de
mov ebx, str.IgfxExt_Mutex_Name
push ebx
call fcn.00409190
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.00405504
mov eax, dword [ebp - 0x14]
mov ebx, 0x40f264
cmp eax, edi
jne 0x4079e0
mov eax, ebx
push 0x104
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00409fd0
add esp, 0xc
cmp dword [ebp - 0x14], edi
je 0x4079fd
mov ebx, dword [ebp - 0x14]
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407a17
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x407ab1
mov ecx, esi
call fcn.0040782e
push 1
push 4
push esi
call fcn.00407b78
push 0x28
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004092c0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
mov ebx, str.IgfxExt_Wnd_Class
push eax
mov dword [ebp - 0x3c], 0x407ad1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
push edi
push dword [ebp + 8]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push str.IgfxExt_Wnd_Name
push ebx
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
lea eax, [ebp - 0x5c]
push edi
push eax
call ebx
test eax, eax
je 0x407aa0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0x5c]
push edi
push eax
jmp 0x407a87
push esi
call fcn.00407c0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00407c49
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea ecx, [ebp - 0x18]
call fcn.004052de
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10