Function at 0x403b80
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x416b01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x1b]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0xb0], 0
call fcn.004040a0
push 0x10
mov byte [esp + 0xb0], 2
call sub.MFC42u.DLL_operatornew
lea ecx, [eax + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
add esp, 4
mov word [eax], 0
xor eax, eax
mov dword [esp + 0xac], 3
cmp word [str.A3D4312D_C54C_4f1f_9466_BBAD4081789C], ax
je 0x403c03
mov ecx, str.A3D4312D_C54C_4f1f_9466_BBAD4081789C
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x403bf9
lea edx, [eax*2 + str.A3D4312D_C54C_4f1f_9466_BBAD4081789C]
lea ecx, [esp + 0xc]
push edx
push str.A3D4312D_C54C_4f1f_9466_BBAD4081789C
call fcn.00403f90
push str._certreg_single_instance_msgid
call fcn.00401e60
add esp, 4
lea ecx, [esp + 0xb]
lea eax, [eax*2 + str._certreg_single_instance_msgid]
push ecx
push eax
push str._certreg_single_instance_msgid
lea ecx, [esp + 0x18]
call fcn.004040b0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
test eax, eax
mov dword [esi + 0xc8], eax
jne 0x403c7f
push eax
push 0x10010
push str.Can_not_initialize.
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 4
call fcn.00403350
jmp 0x403eb3
xor ecx, ecx
cmp word [str.A3D4312D_C54C_4f1f_9466_BBAD4081789C], cx
je 0x403c99
mov eax, str.A3D4312D_C54C_4f1f_9466_BBAD4081789C
add eax, 2
inc ecx
cmp word [eax], 0
jne 0x403c8f
lea eax, [ecx*2 + str.A3D4312D_C54C_4f1f_9466_BBAD4081789C]
lea ecx, [esp + 0xc]
push eax
push str.A3D4312D_C54C_4f1f_9466_BBAD4081789C
call fcn.00403f90
push str._certreg_single_instance
call fcn.00401e60
add esp, 4
lea ecx, [esp + 0xb]
lea eax, [eax*2 + str._certreg_single_instance]
push ecx
push eax
push str._certreg_single_instance
lea ecx, [esp + 0x18]
call fcn.004040b0
mov edx, dword [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xd0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov al, byte [esi + 0xcc]
jne 0x403d33
test al, al
jne 0x403d37
mov eax, dword [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xd0], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 5
call fcn.00403350
jmp 0x403eb3
test al, al
je 0x403d66
mov ecx, dword [esi + 0xc8]
push 0
push 1
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 6
call fcn.00403350
jmp 0x403eb3
push 0
call sub.MFC42u.DLL_AfxEnableControlContainer
add esp, 4
mov ecx, esi
call sub.MFC42u.DLL_CWinApp::Enable3dControls
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.FtUiKit_u.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.FtUiKit_u.dll_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_]
add esp, 8
mov ecx, eax
mov byte [esp + 0xac], 7
call dword [sym.imp.FtUiKit_u.dll_public:_unsigned_short_int_const____thiscall_DuiLib::CDuiString::operator_unsigned_short_int_const__void_const]
push eax
call dword [sym.imp.FtUiKit_u.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_unsigned_short_int_const__]
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0xac], 3
call dword [sym.imp.FtUiKit_u.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
push 0xbc9200
push 0xf7ecda
mov ecx, esi
call sub.MFC42u.DLL_CWinApp::SetDialogBkColor
push 0x344
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xac], 8
je 0x403e02
mov ecx, dword [esi + 0xc8]
push 0
push ecx
mov ecx, eax
call fcn.00404690
mov edi, eax
jmp 0x403e04
xor edi, edi
push 0
push 0x66
mov ecx, edi
mov byte [esp + 0xb4], 3
mov dword [esi + 0x20], edi
call sub.MFC42u.DLL_CDialog::Create
test eax, eax
jne 0x403e42
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub edx, eax
lea ecx, [esp + 0x14]
sar edx, 1
push edx
push eax
mov dword [esp + 0xb4], 9
call fcn.0040e330
jmp 0x403eb3
push 6
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ShowWindow
push 0
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov al, byte [esi + 0xc4]
test al, al
je 0x403e74
mov eax, dword [esi + 0xc8]
push 0
push 3
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
mov ecx, edi
call sub.MFC42u.DLL_CWnd::RunModalLoop
test edi, edi
je 0x403e8a
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov dword [esi + 0x20], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, eax
mov dword [esp + 0xac], 0xa
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e330
mov ecx, dword [esp + 0xa4]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0xa8
ret