Function at 0x401b50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c39b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0
call fcn.00417a77
mov dword [edi], vtable.CControllerApp.0
mov dword [edi + 0xcc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
lea ecx, [edi + 0xe0]
mov byte [ebp - 4], 2
mov dword [edi + 0xdc], 0
call fcn.0055bae0
push str.LocalPharos_Controller_Instance
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
mov dword [edi + 0xf4], 0xb
call fcn.0040e240
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401c2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x28
call fcn.004148ab
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x401c55
push 0x800
push dword [0x5fa20c]
mov ecx, eax
call fcn.0055b8b0
jmp 0x401c57
xor eax, eax
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00401830
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [edi + 0xd4], ecx
mov esi, dword [edi + 0xd8]
mov byte [ebp - 4], 6
mov dword [edi + 0xd8], edx
test esi, esi
je 0x401cb4
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x401cb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x401cb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 4
test esi, esi
je 0x401ce3
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x401ce3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x401ce3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
call fcn.0055ae90
push 0xa
lea ecx, [eax + 0x34]
push 0x5840ac
call fcn.004015a0
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x18], 5
call fcn.0055ae90
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x3c], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x44], xmm0
call fcn.0055ae90
push str._CControllerApp::CControllerApp__Initializing
mov dword [eax + 0x4c], 0xe7
call fcn.0055b120
add esp, 4
lea eax, [ebp - 0x10]
push eax
call fcn.00558da0
push dword [eax]
mov byte [ebp - 4], 7
push str._CControllerApp::CControllerApp__Current_directory___s_
push 2
call fcn.0055b030
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x401d81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret