Function at 0x401170
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e3df
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43abb0]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
mov ebp, ecx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebp
call fcn.00409ded
push 0x4334a4
mov ebx, 1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401220
push str.Select_Language
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401205
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test edi, edi
je 0x40149c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40149c
lea esi, [ebp + 0xa4]
push esi
mov ecx, ebp
call fcn.00409932
cmp dword [esi + 0x2c], 0
je 0x40123e
push esi
call fcn.004035c0
test eax, eax
je 0x40124f
cmp dword [esi + 0x34], 0
je 0x40125b
mov ecx, esi
call fcn.00403820
test eax, eax
jne 0x40125b
mov esi, 0x3e8
call fcn.00402600
jmp 0x401205
push str.Local_AppWizard_Generated_Applications
mov ecx, ebp
call fcn.0040c421
push 0xa
lea ecx, [esp + 0x3c]
call fcn.0040b8de
lea edi, [esp + 0x38]
mov dword [esp + 0x300], 0
call fcn.00402440
call fcn.0040c5b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4012a0
push 0x80004005
call fcn.00404a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x300], bl
cmp dword [esi + 0x24], 0
je 0x4012d8
mov ecx, dword [esi + 0x28]
cmp dword [ecx - 0xc], 0
je 0x4012d8
lea edx, [ebp + 0xcc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405050
jmp 0x4012f4
cmp dword [esp + 0x44], ebx
jne 0x4012f4
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 8]
call fcn.00408150
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f30
lea esi, [esp + 0x20]
call fcn.00402570
push 0x433550
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x30c], 2
call fcn.00404400
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x30c], 3
call fcn.00404340
add esp, 0xc
mov byte [esp + 0x300], 4
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.Brinst_lang.ini
mov edi, eax
call fcn.004081b0
add esp, 4
mov byte [esp + 0x300], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401379
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x300], 7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 8
mov byte [esp + 0x300], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00405110
mov byte [esp + 0x300], 9
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x401403
push eax
call fcn.004080f0
add esp, 4
test eax, eax
je 0x401403
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x58]
call fcn.00407e80
jmp 0x401411
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebp + 0x20], eax
call fcn.0040921b
mov esi, dword [esp + 0x24]
test esi, esi
je 0x401427
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x304], bl
call fcn.004014c0
mov byte [esp + 0x300], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x300], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x300], 0xffffffff
call fcn.0040bac0
xor eax, eax
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret