Function at 0x40efcf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17e0
call fcn.00413c90
mov eax, dword [0x43bc80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1770
call fcn.00412d69
pop ecx
xor ebx, ebx
push ebx
mov dword [0x448ca8], eax
call fcn.00404acf
push eax
lea eax, [ebp - 0x17dc]
push eax
call fcn.00405b67
push 0x9e
call fcn.004038cb
add esp, 0x10
test eax, eax
je 0x40f026
push str.Global_
jmp 0x40f02b
push str.Local_
push dword [0x448ca8]
call fcn.00413b80
pop ecx
pop ecx
lea eax, [ebp - 0x17dc]
push eax
push dword [0x448ca8]
call fcn.00413700
mov esi, eax
add esi, dword [0x448ca8]
pop ecx
call fcn.0040ebd6
mov dword [esp], 0x2715
call fcn.004038cb
pop ecx
test eax, eax
je 0x40f182
push str.single_instance_mode
call fcn.0040ea46
pop ecx
push dword [0x448ca8]
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
push edi
push dword [0x448ca8]
push str.semaphore_name__S__code__d__value__p
call fcn.0040ea46
add esp, 0x10
cmp edi, 0xb7
jne 0x40f16a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040eb34
xor edi, edi
jmp 0x40f0d9
mov eax, edi
inc edi
cmp eax, 0x32
jge 0x40f0df
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040eb34
mov esi, eax
cmp esi, ebx
je 0x40f0c4
push esi
push str.other_pid__d
call fcn.0040ea46
pop ecx
pop ecx
cmp esi, ebx
je 0x40f153
push 0x2718
call fcn.004038cb
pop ecx
test eax, eax
je 0x40f109
push 1
push esi
call fcn.00410640
pop ecx
pop ecx
cmp byte [ebp + 8], bl
je 0x40f153
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x40f132
add eax, 2
push 0x22
push eax
call fcn.00415087
pop ecx
pop ecx
cmp eax, ebx
jne 0x40f132
mov eax, 0x4316a0
jmp 0x40f14a
push 0x20
push eax
call fcn.00415087
pop ecx
pop ecx
cmp eax, ebx
je 0x40f12b
jmp 0x40f144
inc eax
inc eax
cmp word [eax], 0x20
je 0x40f142
push eax
push esi
call fcn.0040eed0
pop ecx
pop ecx
push str.exiting
call fcn.0040ea46
push ebx
call fcn.00403efd
pop ecx
pop ecx
jmp 0x40f245
call fcn.0040ea9f
cmp byte [ebp + 8], bl
je 0x40f245
call fcn.0040ee73
jmp 0x40f245
push ebx
lea eax, [ebp - 0x38]
push 0x433de8
push eax
mov dword [ebp - 0x17e0], ebx
call fcn.00414711
lea eax, [ebp - 0x38]
push eax
push dword [0x448ca8]
call fcn.00413b90
add esp, 0x14
push dword [0x448ca8]
push 1
push 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f223
cmp dword [ebp - 0x17e0], 0x186a0
jge 0x40f22e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x448ca8]
inc dword [ebp - 0x17e0]
lea eax, [ebp - 0x17dc]
push eax
call fcn.0040ebd6
push dword [ebp - 0x17e0]
lea eax, [ebp - 0x6c]
push 0x433de8
push eax
call fcn.00414711
lea eax, [ebp - 0x6c]
push eax
push dword [0x448ca8]
call fcn.00413b90
add esp, 0x18
push dword [0x448ca8]
push 1
push 1
push 0
call ebx
mov esi, eax
call edi
cmp eax, 0xb7
je 0x40f1c4
push esi
call edi
push eax
push dword [0x448ca8]
push str.semaphore_name__S__code__d__value__p
call fcn.0040ea46
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c78
leave
ret