Function at 0x4196e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444a1f
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x45c054]
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 esi, edx
mov ebx, ecx
mov dword [ebp - 0xdc], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xd8], 0
call fcn.00401750
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe4], esp
push esi
call fcn.00409080
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00418cc0
add esp, 0x18
mov dword [ebp - 4], 1
mov ecx, ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xd8], 4
call fcn.00401740
mov esi, dword [eax]
lea eax, [ebp - 0x34]
add esi, 0x30
push eax
mov ecx, esi
call fcn.004160f0
add esp, 4
test eax, eax
je 0x419af4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00417fe0
mov byte [ebp - 4], 3
mov ebx, 4
mov dword [ebp - 0xd8], ebx
and ebx, 0xfffffffb
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x419848
mov edi, dword [ebp - 0x30]
cmp esi, edi
je 0x4197f1
nop word [eax + eax]
mov ecx, esi
call fcn.0040a9e0
add esi, 0x18
cmp esi, edi
jne 0x4197e0
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x419823
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b22
push ecx
push esi
call fcn.00422558
mov edi, dword [ebp - 0xe0]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 5
cmp dword [ebp - 0xc0], 0
je 0x419889
cmp dword [ebp - 0xa8], 0
je 0x419889
cmp dword [ebp - 0x90], 0
je 0x419889
lea eax, [ebp - 0x28]
mov byte [ebp - 0xd1], 1
push eax
lea ecx, [ebp - 0xd0]
call fcn.00418210
mov byte [ebp - 4], 6
or ebx, 1
jmp 0x4198a2
lea ecx, [ebp - 0x70]
mov byte [ebp - 0xd1], 0
call fcn.00418d70
mov dword [ebp - 4], 7
or ebx, 2
mov edx, eax
mov dword [ebp - 0xd8], ebx
lea ecx, [ebp - 0x58]
call fcn.0041cc10
mov dword [ebp - 4], 9
test bl, 2
je 0x4198cf
and ebx, 0xfffffffd
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xd8], ebx
call fcn.0040a9e0
mov byte [ebp - 4], 0xa
test bl, 1
je 0x41992f
and ebx, 0xfffffffe
mov dword [ebp - 0xd8], ebx
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41991b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419911
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b27
push edx
push ecx
call fcn.00422558
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x419a56
push str._2nd_instance
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.00409f20
add esp, 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419a41
mov esi, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
cmp esi, edi
jne 0x419a30
push 0x11
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push str.ims_client:__show
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004099b0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0041cb50
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x419a16
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419a0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b2c
push edx
push ecx
call fcn.00422558
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x419a41
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.0041cb50
add esi, 0x18
cmp esi, edi
jne 0x419a30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.0040a9e0
jmp 0x419a8a
test eax, eax
jne 0x419b31
cmp byte [ebp - 0xd1], al
je 0x419a7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xdc]
push ecx
mov ecx, edi
call fcn.00419390
jmp 0x419a8a
mov edx, dword [ebp - 0xdc]
mov ecx, edi
call fcn.00418e40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.0040a9e0
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x88]
call fcn.0040a9e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa0]
call fcn.0040a9e0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb8]
call fcn.0040a9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.0040a9e0
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.0042254a
mov esp, ebp
pop ebp
ret
push str.Parse_Java_command_line:_check_line
lea ecx, [ebp - 0x70]
call fcn.00409b10
mov byte [ebp - 4], 2
lea edx, [ebp - 0x70]
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040a7a0
add esp, 4
lea eax, [ebp - 0x1c]
push 0x45a18c
push eax
call fcn.0042400c
call fcn.0042702f
call fcn.0042702f
call fcn.0042702f
mov edx, eax
mov ecx, str.Mutex_access_failed
call fcn.00418750
int3