Function at 0x4017a0
Capabilities:
Check if file exists
Check mutex on windows
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4186a9
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4244e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0xb
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x41fa50
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004023b0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
mov dword [ebp - 0xa4], esi
setne al
test al, al
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x40183b
push dword [ebp - 0x40]
call fcn.00405896
add esp, 4
test bl, bl
je 0x401907
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [0x41f9fc], cx
mov eax, 9
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push 0x41f9fc
call fcn.004023b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 0x12
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x41fa68
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004023b0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0x30
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push dword [0x426b8c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x2c], 8
jb 0x4018d4
push dword [ebp - 0x40]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x401994
push dword [ebp - 0x28]
call fcn.00405896
add esp, 4
mov edi, 1
jmp 0x401ddf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40199e
push 0x41f9fc
lea ecx, [ebp - 0x40]
call fcn.00401e10
push 0x41fa90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401e10
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0x30
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push dword [0x426b8c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x14], 8
jb 0x40196f
push dword [ebp - 0x28]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x401994
push dword [ebp - 0x40]
call fcn.00405896
add esp, 4
mov edi, 1
jmp 0x401ddf
push str.StartData_
mov edx, 0x426ba8
lea ecx, [ebp - 0x28]
call fcn.00401330
add esp, 4
push 0x41fa34
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401330
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 8
jb 0x4019de
push dword [ebp - 0x28]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push str.StartData_
mov edx, 0x426ba8
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
mov word [ebp - 0x28], ax
call fcn.00401330
add esp, 4
push str.StartLauncher.exe
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x88]
call fcn.00401330
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c], 8
jb 0x401a35
push dword [ebp - 0x40]
call fcn.00405896
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call ebx
cmp eax, 0xffffffff
je 0x401be3
test al, 0x10
jne 0x401be3
push 0x38
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.00409580
mov eax, dword [0x426b8c]
add esp, 0xc
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0xe0], 0x3c
mov dword [ebp - 0xdc], 0x40
mov dword [ebp - 0xd4], str.open
mov dword [ebp - 0xcc], str._from_autorun_
mov dword [ebp - 0xc4], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401d0c
push str.ShellExecuteEx
lea ecx, [ebp - 0x58]
call fcn.00401e10
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
call edi
mov edx, eax
call fcn.00404530
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44], 8
jb 0x401b1a
push dword [ebp - 0x58]
call fcn.00405896
add esp, 4
push 0x41f9fc
lea ecx, [ebp - 0x58]
call fcn.00401e10
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.004046a0
push eax
mov edx, str.StartMenu.exe
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.004013d0
add esp, 4
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x58]
cmp dword [eax + 0x14], 8
jb 0x401b5e
mov eax, dword [eax]
push 0x30
push ecx
push eax
push dword [0x426b8c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x14], 8
jb 0x401b7f
push dword [ebp - 0x28]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x401baa
push dword [ebp - 0xa0]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jb 0x401d0c
push dword [ebp - 0x58]
call fcn.00405896
add esp, 4
xor edi, edi
jmp 0x401d8f
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401d10
test al, 0x10
jne 0x401d10
push 0x38
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.00409580
mov eax, dword [0x426b8c]
add esp, 0xc
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0xe0], 0x3c
mov dword [ebp - 0xdc], 0x40
mov dword [ebp - 0xd4], str.open
mov dword [ebp - 0xcc], str._from_autorun_
mov dword [ebp - 0xc4], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401d0c
push str.ShellExecuteEx
lea ecx, [ebp - 0x58]
call fcn.00401e10
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xc
push eax
call edi
mov edx, eax
call fcn.00404530
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
call fcn.00401300
push 0x41f9fc
lea ecx, [ebp - 0x58]
call fcn.00401e10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.004046a0
push eax
mov edx, 0x41fb58
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa0]
call fcn.004013d0
add esp, 4
lea edx, [ebp - 0x58]
mov ecx, eax
push 0x30
call fcn.00404b90
add esp, 4
lea ecx, [ebp - 0xa0]
call fcn.00401300
lea ecx, [ebp - 0x28]
call fcn.00401300
lea ecx, [ebp - 0x58]
call fcn.00401300
xor edi, edi
jmp 0x401d8f
push 0x41f9fc
lea ecx, [ebp - 0x58]
call fcn.00401e10
push 0x41fb98
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.00401e10
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push dword [0x426b8c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x14], 8
jb 0x401d65
push dword [ebp - 0x28]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x401d8a
push dword [ebp - 0x58]
call fcn.00405896
add esp, 4
mov edi, 1
cmp dword [ebp - 0x74], 8
jb 0x401da3
push dword [ebp - 0x88]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x401dcb
push dword [ebp - 0x70]
call fcn.00405896
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
test esi, esi
je 0x401dea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004050e0
mov esp, ebp
pop ebp
ret