Function at 0x4014a0
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Delete file
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x40d090]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x40bb10
push edi
mov esi, eax
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4016db
push entry0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.00401010
cmp dword [esp + 0x10], 3
jne 0x4016d0
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x401533
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x40]
call fcn.00401a50
push 0x206
lea ecx, [esp + 0x5e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x64], ax
call fcn.00403350
add esp, 0xc
push 0x104
lea edx, [esp + 0x5c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x58]
push 0x5c
push eax
call fcn.0040268b
add esp, 8
lea edx, [esp + 0x58]
xor ecx, ecx
push edx
mov word [eax + 2], cx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x50], edi
jne 0x4015ba
cmp dword [esp + 0x54], 8
jb 0x4016db
mov eax, dword [esp + 0x40]
push eax
call fcn.004028a1
add esp, 4
jmp 0x4016db
lea ebx, [esp + 0x18]
lea edi, [esp + 0x3c]
call fcn.00401730
mov esi, eax
call fcn.004017c0
mov esi, eax
call fcn.00401780
cmp word [eax], 0x5c
je 0x4015e9
push 1
mov eax, 0x40bb0c
mov ecx, edi
call fcn.00401800
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + 4]
call fcn.004010b0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40168b
call fcn.00401180
lea esi, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x18], 0
call fcn.00401220
test al, al
je 0x40162d
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x401655
push 0x1770
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x401655
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 4]
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x24]
call fcn.00401dd0
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x401678
mov eax, dword [eax + 4]
jmp 0x40167b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x20]
call fcn.00401700
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0x60]
mov word [ecx + 4], dx
call fcn.004018e0
call fcn.00401280
add esp, 0x1c
cmp dword [esp + 0x54], 8
jb 0x4016d0
mov eax, dword [esp + 0x40]
push eax
call fcn.004028a1
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040260d
mov esp, ebp
pop ebp
ret 0x10