Function at 0x40bc03
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17e0
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1770
call fcn.0041d128
pop ecx
xor ebx, ebx
push ebx
mov dword [0x45f168], eax
call fcn.004047c0
push eax
lea eax, [ebp - 0x17dc]
push eax
call fcn.00405377
push 0x9e
call fcn.00403858
add esp, 0x10
test eax, eax
je 0x40bc5a
push str.Global_
jmp 0x40bc5f
push str.Local_
push dword [0x45f168]
call fcn.0041d6a0
pop ecx
pop ecx
lea eax, [ebp - 0x17dc]
push eax
push dword [0x45f168]
call fcn.0041d280
mov esi, eax
add esi, dword [0x45f168]
pop ecx
call fcn.0040b80a
mov dword [esp], 0x2715
call fcn.00403858
pop ecx
test eax, eax
je 0x40bdb6
push str.single_instance_mode
call fcn.0040b684
pop ecx
push dword [0x45f168]
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 [0x45f168]
push str.semaphore_name__S__code__d__value__p
call fcn.0040b684
add esp, 0x10
cmp edi, 0xb7
jne 0x40bd9e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040b768
xor edi, edi
jmp 0x40bd0d
mov eax, edi
inc edi
cmp eax, 0x32
jge 0x40bd13
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b768
mov esi, eax
cmp esi, ebx
je 0x40bcf8
push esi
push str.other_pid__d
call fcn.0040b684
pop ecx
pop ecx
cmp esi, ebx
je 0x40bd87
push 0x2717
call fcn.00403858
pop ecx
test eax, eax
je 0x40bd3d
push 1
push esi
call fcn.0040cc74
pop ecx
pop ecx
cmp byte [ebp + 8], bl
je 0x40bd87
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x40bd66
add eax, 2
push 0x22
push eax
call fcn.0041eba7
pop ecx
pop ecx
cmp eax, ebx
jne 0x40bd66
mov eax, 0x439440
jmp 0x40bd7e
push 0x20
push eax
call fcn.0041eba7
pop ecx
pop ecx
cmp eax, ebx
je 0x40bd5f
jmp 0x40bd78
inc eax
inc eax
cmp word [eax], 0x20
je 0x40bd76
push eax
push esi
call fcn.0040bb04
pop ecx
pop ecx
push str.exiting
call fcn.0040b684
push ebx
call fcn.00403e4b
pop ecx
pop ecx
jmp 0x40be79
call fcn.0040b6d3
cmp byte [ebp + 8], bl
je 0x40be79
call fcn.0040baa7
jmp 0x40be79
push ebx
lea eax, [ebp - 0x38]
push 0x43b540
push eax
mov dword [ebp - 0x17e0], ebx
call fcn.0041e231
lea eax, [ebp - 0x38]
push eax
push dword [0x45f168]
call fcn.0041d6b0
add esp, 0x14
push dword [0x45f168]
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 0x40be57
cmp dword [ebp - 0x17e0], 0x186a0
jge 0x40be62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x45f168]
inc dword [ebp - 0x17e0]
lea eax, [ebp - 0x17dc]
push eax
call fcn.0040b80a
push dword [ebp - 0x17e0]
lea eax, [ebp - 0x6c]
push 0x43b540
push eax
call fcn.0041e231
lea eax, [ebp - 0x6c]
push eax
push dword [0x45f168]
call fcn.0041d6b0
add esp, 0x18
push dword [0x45f168]
push 1
push 1
push 0
call ebx
mov esi, eax
call edi
cmp eax, 0xb7
je 0x40bdf8
push esi
call edi
push eax
push dword [0x45f168]
push str.semaphore_name__S__code__d__value__p
call fcn.0040b684
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
leave
ret