Function at 0x409450
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 4], 0
xor ebx, ebx
call fcn.004033b0
push ebx
push ebx
call fcn.00403430
push 0x40f30c
push 0x40f320
push eax
mov dword [0x411538], eax
call section..text
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x409496
push str.Error_parsing_command_line
jmp 0x40986d
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4094cb
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0xc1d
call fcn.00401900
add esp, 8
push eax
push 0
push 0
push 1
call fcn.00403a10
add esp, 0x14
jmp 0x40987b
cmp eax, 4
jne 0x4094d5
lea ebx, [eax - 3]
jmp 0x4094e4
cmp eax, 2
jb 0x4094e4
mov dword [0x411554], 1
mov ecx, dword [0x411538]
push 0
push 1
push ecx
call fcn.00405260
add esp, 0xc
mov dword [0x41153c], eax
test eax, eax
je 0x409864
cmp eax, 0xffffffff
je 0x409864
mov edx, dword [edi + 0xc]
push 0xf01ff
push edx
push eax
call fcn.004052e0
add esp, 0xc
test eax, eax
jne 0x40959a
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi + 0xc]
cmp word [ecx + eax*2 - 2], 0x77
lea eax, [ecx + eax*2 - 2]
jne 0x409541
xor edx, edx
mov word [eax], dx
mov eax, dword [edi + 0xc]
mov ecx, dword [0x41153c]
push 0xf01ff
push eax
push ecx
call fcn.004052e0
add esp, 0xc
test eax, eax
jne 0x40959a
mov edx, dword [edi + 0xc]
mov eax, dword [0x41153c]
push 0xa0000000
push edx
push eax
call fcn.004052e0
add esp, 0xc
test eax, eax
jne 0x40959a
test ebx, ebx
jne 0x40987b
mov ecx, dword [edi + 0xc]
push ecx
push str.Unable_to_open_the_service__S
push ebx
push ebx
push 1
call fcn.00403a10
add esp, 0x14
jmp 0x40987b
mov edx, dword [0x41153c]
push 1
push edx
call fcn.00405460
add esp, 8
mov dword [0x411550], eax
test eax, eax
jne 0x4095d6
test ebx, ebx
jne 0x40987b
mov eax, dword [edi + 0xc]
push eax
push str.Unable_to_query_the_service__S_status
push ebx
push ebx
push 1
call fcn.00403a10
add esp, 0x14
jmp 0x40987b
mov ecx, dword [edi + 0xc]
push ecx
push 0x4090f0
call fcn.00401680
add esp, 8
mov dword [0x411534], eax
test eax, eax
jne 0x409602
test ebx, ebx
jne 0x40987b
push str.Unable_to_initialize_GUI_manager
jmp 0x40986d
mov edx, dword [eax]
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0x10
push 0x10
push 1
push 0x7ef
push edx
call esi
push 0
push 0x10
push 0x10
mov dword [0x411548], eax
mov eax, dword [0x411534]
mov ecx, dword [eax]
push 1
push 0x7ee
push ecx
call esi
mov dword [0x41154c], eax
cmp dword [edi + 0x10], 4
jne 0x40966d
mov edx, dword [0x411534]
push 0
add edx, 0x18
push edx
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40987b
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40987b
cmp dword [0x40f334], 0
jne 0x40970e
mov eax, dword [0x411534]
add eax, 0x218
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4096a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40970e
mov ecx, dword [0x411534]
push 0
add ecx, 0x18
push ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4096da
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x7d5
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40987b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x40987b
mov edx, dword [edi + 0xc]
push edx
push ebx
push 0xc1c
call fcn.00401900
add esp, 8
push eax
push ebx
push ebx
push 1
call fcn.00403a10
add esp, 0x14
jmp 0x40987b
push 4
push 0
push 0x96
call fcn.00401950
add esp, 8
push eax
mov eax, dword [0x411538]
push 0
push 0xf003f
push eax
call fcn.00404020
mov edx, dword [0x411538]
push 3
mov dword [0x411540], eax
mov ecx, dword [edi + 0xc]
push ecx
push str.Apache_Software_FoundationProcrun_2.0
push 0x2001f
push edx
call fcn.00404020
add esp, 0x28
mov dword [0x411544], eax
test eax, eax
je 0x40983d
cmp eax, 0xffffffff
je 0x40983d
mov eax, dword [0x411534]
mov ecx, dword [eax]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x96
call fcn.00401950
mov edx, dword [0x411534]
add esp, 8
push eax
add edx, 0x18
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [0x411534]
mov dword [ecx + 0x10], eax
mov eax, dword [0x411534]
cmp dword [eax + 0x10], 0
je 0x40987b
cmp dword [edi + 0x10], 3
jne 0x4097da
mov edx, dword [eax + 0x10]
push 0
push 0x7d1
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x40987b
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
lea ebx, [ebx]
mov eax, dword [0x411534]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
call ebx
test eax, eax
jne 0x40982b
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x409800
jmp 0x40987b
test ebx, ebx
jne 0x409859
push ebx
push 0xc32
call fcn.00401900
push eax
push ebx
push ebx
push 1
call fcn.00403a10
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
jne 0x40987b
push str.Unable_to_open_the_Service_Manager
push 0
push 0
push 1
call fcn.00403a10
add esp, 0x10
mov eax, dword [0x41154c]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
test eax, eax
je 0x40988d
push eax
call esi
mov eax, dword [0x411548]
test eax, eax
je 0x409899
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4098a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4098b4
push edi
call fcn.00401600
add esp, 4
mov ecx, dword [0x41153c]
push ecx
call fcn.00403090
add esp, 4
call fcn.004033d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]