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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d62
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
call fcn.00448c30
push 0x4a7210
xor esi, esi
mov dword [ebp - 0x58], eax
push esi
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xb7
jne 0x406cd2
push 0x4a8420
push 0x4a8468
push 4
call fcn.00453ac0
add esp, 0xc
mov esi, 4
jmp 0x406fc1
push 0
push 1
call fcn.00463550
call fcn.0044bf10
test al, al
jne 0x406cf8
push 0x4a8470
push 0x4a8468
push 3
call fcn.00453ac0
add esp, 0xc
push 0x4a84c8
call fcn.0044c070
push 0x4a84e0
call fcn.0044c070
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.004083d0
test al, al
jne 0x406d37
push 0x4a83b8
call fcn.00402340
add esp, 4
mov esi, 1
jmp 0x406fc1
call fcn.0040bbe0
push 0x65
push 0x66
push dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov ecx, eax
call edx
test eax, eax
je 0x406d6f
push eax
push 0x4a8508
push 0x4a8468
push 1
call fcn.00453ac0
add esp, 0x10
mov esi, 1
jmp 0x406fc1
push 0
push 0
mov esi, 1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x406f8e
cmp edi, 0xffffffff
je 0x406f8e
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x74], 0
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
push 6
xor eax, eax
mov dword [ebp - 0x64], 0
push 0x4a726c
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 2
call fcn.00402010
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x58]
push eax
call esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x4d], al
cmp ecx, 8
jb 0x406e29
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406e1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fed
push ecx
push edx
call fcn.00465ef5
mov al, byte [ebp - 0x4d]
add esp, 8
test al, al
je 0x406e55
push 0x4a8558
push 0x4a8468
push 4
call fcn.00453ac0
push 4
call fcn.00465f2b
mov esi, eax
add esp, 0x10
mov dword [esi], vtable.GuiSilent.0
jmp 0x406f05
push 0x34
call fcn.00465f2b
mov esi, eax
mov dword [ebp - 0x58], esi
push 0x34
push 0
push esi
call fcn.00468120
mov dword [esi + 8], 0
xorps xmm0, xmm0
mov dword [esi + 4], vtable.FsUI::App.0
add esp, 0x10
movq qword [esi + 0xc], xmm0
mov dword [esi + 0x14], 0
mov dword [esi], vtable.GuiManager.1.0
mov dword [esi + 4], vtable.GuiManager.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp - 0x54]
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 7
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
call fcn.0045d090
push 0
push 0
push 0
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp ecx, eax
je 0x406ef7
test ecx, ecx
je 0x406ef4
cmp ecx, 0xffffffff
je 0x406ef4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
push 0x68
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x20], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
movups xmmword [ebp - 0x48], xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4a870c
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x48], vtable.UiTool.0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 9
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
lea ecx, [ebp - 0x48]
call fcn.00407c50
mov dword [ebp - 0x54], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
lea ecx, [ebp - 0x48]
call fcn.00407b90
mov eax, esi
test eax, eax
je 0x406fa4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x18]
mov esi, dword [ebp - 0x54]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x406fc1
push 0x4a85b8
push 0x4a8468
push 1
call fcn.00453ac0
add esp, 0xc
jmp 0x406fa7
mov esi, dword [ebp - 0x54]
test edi, edi
je 0x406fbb
cmp edi, 0xffffffff
je 0x406fbb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x406fc1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x406fd0
cmp eax, 0xffffffff
je 0x406fd0
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret
call fcn.00469eed
int3