Function at 0x405743
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, 0x413ff8
mov dword [0x414068], 0x411118
mov dword [0x413fd0], esi
push 0x4110d0
push esi
mov dword [0x413ff8], 0x84
mov dword [0x41405c], 0x300
call fcn.0040597a
mov eax, 0x40f278
mov ecx, eax
test ecx, ecx
je 0x4057b3
push 0x10
push eax
push 0x413fe8
call fcn.00407280
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x411258
mov dword [0x41407c], eax
push ebx
mov dword [ebp - 8], edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.00405702
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 0x10], eax
je 0x405836
push str.UnregServer
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405807
push str.RegServer
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40581c
push ebx
push dword [ebp + 0x10]
jmp 0x4057d1
push edi
push edi
push 0x64
push esi
call fcn.004042c2
push edi
push 1
push esi
call fcn.00405cf7
jmp 0x405830
push edi
push 1
push 0x64
push esi
call fcn.004042c2
push edi
push 1
push esi
call fcn.00405b7e
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.004030e3
mov ebx, str.IgfxExt_Mutex_Name
push ebx
call fcn.004070f0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.00403309
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x405867
mov eax, 0x40f214
push 0x104
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00407cf0
lea eax, [ebp - 0x164]
push eax
call fcn.00406512
mov ebx, eax
push ebx
call fcn.004070f0
add esp, 0x14
lea ecx, [ebp - 0x18]
push eax
push ebx
call fcn.00403309
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4058a6
mov eax, 0x40f214
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4058c0
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x40595a
mov ecx, esi
call fcn.004056b7
push 1
push 4
push esi
call fcn.004059fd
push 0x28
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00407220
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], 0x406098
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 0x405949
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 0x405930
push esi
call fcn.00405a92
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00405ace
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea ecx, [ebp - 0x18]
call fcn.004030e3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10