Function at 0x403740
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c7e6
mov eax, dword fs:[0]
push eax
sub esp, 0x7e4
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x7e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0x7f8]
mov dword fs:[0], eax
call fcn.004093c0
push str.E55BEE14_68F1_4da0_8549_5CD11B60DB0F
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
je 0x4037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4037e4
push 0x469428
push 0x469370
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4037d4
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x403b21
push 1
push esi
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x403b21
mov dword [esp + 0x2c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x800], ebx
mov edi, dword [0x4a2070]
lea eax, [esp + 0x2c]
add edi, 0x10
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4a13ac]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], eax
call fcn.00404f90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00408760
mov eax, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00416920
mov byte [esp + 0x800], 1
mov ecx, dword [0x4a05a4]
push 0x46c340
push 0x79
mov eax, 1
push ecx
lea edx, [esp + 0x134]
mov esi, 0x162
push edx
mov dword [esp + 0x2b4], eax
mov dword [esp + 0x1ec], eax
lea edi, [esi - 0x22]
call fcn.00433600
mov eax, dword [0x4a05a4]
push 0x46c340
push 0x89
push eax
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + 0x280], 0x12
mov dword [esp + 0x268], esi
mov dword [esp + 0x26c], edi
call fcn.00433600
mov edx, dword [esp + 0x13c]
add esp, 0x20
push 0x24
push 0x1a
push 0x29
push 0x1a
push ebx
push edx
lea ecx, [esp + 0x7c]
call fcn.004307b0
mov eax, dword [0x4a05a4]
push 0x46c340
push 0x8a
push eax
lea ecx, [esp + 0x12c]
mov esi, 0x2e3
push ecx
lea edi, [esi + 0x22]
mov ebp, 8
call fcn.00433600
mov dword [esp + 0x228], esi
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x230], edi
mov edx, dword [0x4a05a4]
push 0x46c340
mov eax, 0x2a
push 0x8b
mov dword [esp + 0x23c], eax
push edx
lea eax, [esp + 0x148]
lea esi, [edi - 0x44]
push eax
lea edi, [esi + 0x22]
call fcn.00433600
mov eax, 0x2a
mov dword [esp + 0x264], eax
mov eax, 0x19
lea ecx, [esi + 0x39]
mov dword [esp + 0x248], eax
mov eax, dword [0x4a13b8]
mov dword [esp + 0x258], esi
add esp, 0x20
mov edx, 0x2f
mov esi, 0x28c
mov dword [esp + 0x23c], ebp
mov dword [esp + 0x240], edi
mov dword [esp + 0x22c], edx
mov dword [esp + 0x230], ecx
mov dword [esp + 0x234], esi
cmp eax, ebx
je 0x4039d5
push eax
lea ecx, [esp + 0x1c0]
call fcn.00402610
mov ecx, dword [0x4a05a4]
push 0x46c340
push 0x78
push ecx
lea edx, [esp + 0x130]
mov esi, 0x103
push edx
lea edi, [esi + 0xc]
call fcn.00433600
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x268], eax
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x88], eax
add esp, 0xc
mov eax, esp
mov dword [esp + 0x254], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x258], edi
mov dword [esp + 0x78], edx
push ecx
mov dword [eax], ebx
mov eax, esp
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x6c]
mov dword [eax], ecx
call fcn.00404510
mov ecx, esi
cmp eax, ebx
je 0x403b49
call fcn.00430590
mov edx, dword [esp + 0x68]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, eax
or ecx, 0xa0000
cmp eax, ecx
je 0x403a8f
mov eax, dword [esp + 0x68]
push ecx
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffec
push ecx
call esi
mov ecx, eax
and ecx, 0xffffff7f
or ecx, 0x40000
cmp eax, ecx
je 0x403ab4
mov edx, dword [esp + 0x68]
push ecx
push 0xffffffffffffffec
push edx
call edi
mov eax, dword [esp + 0x68]
push 0x469428
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x68]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x2c]
call fcn.00404ef0
mov esi, eax
call fcn.00404da0
lea ecx, [esp + 0x64]
mov byte [esp + 0x800], bl
call fcn.00416b10
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x403b06
push eax
call fcn.0044332a
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
je 0x403b1f
push eax
call fcn.0044332a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x7f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7e0]
xor ecx, esp
call fcn.0044331b
add esp, 0x7f0
ret
mov byte [esp + 0x800], bl
call fcn.00416b10
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x403b6a
push eax
call fcn.0044332a
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
je 0x403b83
push eax
call fcn.0044332a
add esp, 4
xor eax, eax
jmp 0x403b21