Function at 0x4032e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c836
mov eax, dword fs:[0]
push eax
sub esp, 0x7f0
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x7e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0x804]
mov dword fs:[0], eax
mov eax, dword [esp + 0x814]
mov dword [esp + 0x28], 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 0x40338f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40338f
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 0x40337f
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x4036d0
push 1
push esi
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x4036d0
mov dword [esp + 0x34], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x80c], ebx
mov edi, dword [0x4a2070]
lea ecx, [esp + 0x34]
add edi, 0x10
push edi
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4a13ac]
lea edx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00404f90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00408760
mov eax, 0xa
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00416920
mov byte [esp + 0x80c], 1
mov edx, dword [0x4a05a4]
push 0x46c340
mov eax, 1
push 0x79
mov dword [esp + 0x2b4], eax
mov dword [esp + 0x1ec], eax
push edx
lea eax, [esp + 0x13c]
mov esi, 0x162
push eax
lea edi, [esi - 0x22]
call fcn.00433600
mov ecx, dword [0x4a05a4]
push 0x46c340
push 0x75
push ecx
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x288], 0x12
mov dword [esp + 0x270], esi
mov dword [esp + 0x274], edi
call fcn.00433600
mov eax, dword [esp + 0x144]
add esp, 0x20
push 0x24
push 0x1a
push 0x29
push 0x1a
push ebx
push eax
lea ecx, [esp + 0x84]
call fcn.004307b0
mov ecx, dword [0x4a05a4]
push 0x46c340
push 0x76
push ecx
lea edx, [esp + 0x134]
mov esi, 0x2b0
push edx
lea edi, [esi + 0x22]
mov ebp, 9
call fcn.00433600
mov dword [esp + 0x230], esi
mov dword [esp + 0x234], ebp
mov dword [esp + 0x238], edi
mov eax, 0x2b
push 0x46c340
mov dword [esp + 0x240], eax
mov eax, dword [0x4a05a4]
push 0x7a
push eax
lea ecx, [esp + 0x150]
lea esi, [edi - 0x44]
push ecx
lea edi, [esi + 0x22]
call fcn.00433600
mov eax, 0x2b
mov edx, 0x35
mov dword [esp + 0x26c], eax
mov eax, 0x1e
mov dword [esp + 0x254], edx
mov edx, dword [esp + 0x48]
lea ecx, [esi + 0x37]
mov dword [esp + 0x250], eax
mov eax, dword [edx]
mov dword [esp + 0x260], esi
add esp, 0x20
mov esi, 0x28a
mov dword [esp + 0x244], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x238], ecx
mov dword [esp + 0x23c], esi
cmp eax, ebx
je 0x40357c
push eax
lea ecx, [esp + 0x1c8]
call fcn.00402610
mov eax, dword [0x4a05a4]
push 0x46c340
push 0x78
push eax
lea ecx, [esp + 0x138]
mov esi, 0xea
push ecx
lea edi, [esi + 0x24]
call fcn.00433600
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, 1
mov dword [esp + 0x270], eax
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x88], eax
add esp, 0xc
mov eax, esp
mov dword [esp + 0x25c], esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x260], edi
mov dword [esp + 0x84], edx
push ecx
mov dword [eax], ebx
mov eax, esp
lea ecx, [esp + 0x20]
lea esi, [esp + 0x74]
mov dword [eax], ecx
call fcn.00404510
mov ecx, esi
cmp eax, ebx
je 0x4036f8
call fcn.00430590
mov edx, dword [esp + 0x70]
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 0x40363e
mov eax, dword [esp + 0x70]
push ecx
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esp + 0x70]
push 0xffffffffffffffec
push ecx
call esi
mov ecx, eax
and ecx, 0xffffff7f
or ecx, 0x40000
cmp eax, ecx
je 0x403663
mov edx, dword [esp + 0x70]
push ecx
push 0xffffffffffffffec
push edx
call edi
mov eax, dword [esp + 0x70]
push 0x469428
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x70]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x34]
call fcn.00404ef0
mov esi, eax
call fcn.00404da0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x80c], bl
call fcn.00416b10
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4036b5
push eax
call fcn.0044332a
add esp, 4
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x4036ce
push eax
call fcn.0044332a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7e8]
xor ecx, esp
call fcn.0044331b
add esp, 0x7fc
ret
mov byte [esp + 0x80c], bl
call fcn.00416b10
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x403719
push eax
call fcn.0044332a
add esp, 4
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x403732
push eax
call fcn.0044332a
add esp, 4
xor eax, eax
jmp 0x4036d0