Function at 0x40c76b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17e0
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1770
call fcn.0040ef5c
pop ecx
xor ebx, ebx
push ebx
mov dword [0x43e900], eax
call fcn.00404a47
push eax
lea eax, [ebp - 0x17dc]
push eax
call fcn.004055ea
push 0x9e
call fcn.00403888
add esp, 0x10
test eax, eax
je 0x40c7c2
push str.Global_
jmp 0x40c7c7
push str.Local_
push dword [0x43e900]
call fcn.0040f4d0
pop ecx
pop ecx
lea eax, [ebp - 0x17dc]
push eax
push dword [0x43e900]
call fcn.0040f0b0
mov esi, eax
add esi, dword [0x43e900]
pop ecx
call fcn.0040c372
mov dword [esp], 0x2715
call fcn.00403888
pop ecx
test eax, eax
je 0x40c91e
push str.single_instance_mode
call fcn.0040c1e2
pop ecx
push dword [0x43e900]
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 [0x43e900]
push str.semaphore_name__S__code__d__value__p
call fcn.0040c1e2
add esp, 0x10
cmp edi, 0xb7
jne 0x40c906
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040c2d0
xor edi, edi
jmp 0x40c875
mov eax, edi
inc edi
cmp eax, 0x32
jge 0x40c87b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c2d0
mov esi, eax
cmp esi, ebx
je 0x40c860
push esi
push str.other_pid__d
call fcn.0040c1e2
pop ecx
pop ecx
cmp esi, ebx
je 0x40c8ef
push 0x2717
call fcn.00403888
pop ecx
test eax, eax
je 0x40c8a5
push 1
push esi
call fcn.0040dd57
pop ecx
pop ecx
cmp byte [ebp + 8], bl
je 0x40c8ef
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x40c8ce
add eax, 2
push 0x22
push eax
call fcn.004109d7
pop ecx
pop ecx
cmp eax, ebx
jne 0x40c8ce
mov eax, 0x429520
jmp 0x40c8e6
push 0x20
push eax
call fcn.004109d7
pop ecx
pop ecx
cmp eax, ebx
je 0x40c8c7
jmp 0x40c8e0
inc eax
inc eax
cmp word [eax], 0x20
je 0x40c8de
push eax
push esi
call fcn.0040c66c
pop ecx
pop ecx
push str.exiting
call fcn.0040c1e2
push ebx
call fcn.00403eba
pop ecx
pop ecx
jmp 0x40c9e1
call fcn.0040c23b
cmp byte [ebp + 8], bl
je 0x40c9e1
call fcn.0040c60f
jmp 0x40c9e1
push ebx
lea eax, [ebp - 0x38]
push 0x42b768
push eax
mov dword [ebp - 0x17e0], ebx
call fcn.00410061
lea eax, [ebp - 0x38]
push eax
push dword [0x43e900]
call fcn.0040f4e0
add esp, 0x14
push dword [0x43e900]
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 0x40c9bf
cmp dword [ebp - 0x17e0], 0x186a0
jge 0x40c9ca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x43e900]
inc dword [ebp - 0x17e0]
lea eax, [ebp - 0x17dc]
push eax
call fcn.0040c372
push dword [ebp - 0x17e0]
lea eax, [ebp - 0x6c]
push 0x42b768
push eax
call fcn.00410061
lea eax, [ebp - 0x6c]
push eax
push dword [0x43e900]
call fcn.0040f4e0
add esp, 0x18
push dword [0x43e900]
push 1
push 1
push 0
call ebx
mov esi, eax
call edi
cmp eax, 0xb7
je 0x40c960
push esi
call edi
push eax
push dword [0x43e900]
push str.semaphore_name__S__code__d__value__p
call fcn.0040c1e2
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f5c8
leave
ret