Function at 0x401460
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x52f4a8]
xor eax, esp
mov dword [esp + 0xac], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xffffffffffffffff
call fcn.00477de0
or eax, 0x20
add esp, 4
push eax
call fcn.00477de0
add esp, 4
push esi
call dword [sym.imp.LibDui.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
add esp, 4
call fcn.00401230
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x401719
push str.BackHomeNewSoft
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4014d8
mov esi, 1
test edi, edi
je 0x4014e3
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x401563
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.BackHome_main
call esi
push 0
push str.BackHome_login
mov edi, eax
call esi
test eax, eax
je 0x401530
push 0
push 0xf120
push 0x112
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00476050
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
je 0x401719
push 0
push 0xf120
push 0x112
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00476050
mov esp, ebp
pop ebp
ret 0x10
push str.d3d9.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
test eax, eax
jne 0x401588
push 0x30
push 0x50d0b0
push 0x50d0bc
push 0
call edi
push 0x98
push str..App.cpp
push 1
push 8
call fcn.00478bb0
add esp, 0x10
test eax, eax
je 0x4015b3
mov dword [eax], vtable.CCommon.0
mov dword [eax + 4], 0
mov esi, eax
jmp 0x4015b5
xor esi, esi
mov dword [0x5384e8], esi
test esi, esi
je 0x401719
cmp dword [esi + 4], 0
jne 0x401602
push str.common.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test eax, eax
jne 0x401602
push 0x30
push 0x50d0b0
push 0x50d100
push eax
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00476050
mov esp, ebp
pop ebp
ret 0x10
sub esp, 0x84
mov esi, esp
mov dword [esp + 0x90], esp
call fcn.004010b0
call fcn.00434a40
lea eax, [esp + 0x94]
add esp, 0x84
push eax
call fcn.00401170
add esp, 4
mov ecx, eax
call dword [sym.imp.LibDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push eax
lea ecx, [esp + 0x98]
call fcn.0046b7b0
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
cmp dword [esp + 0xb0], 0x10
mov eax, dword [esp + 0x9c]
jae 0x40166b
lea eax, [esp + 0x9c]
push eax
call fcn.00478b00
add esp, 4
push 0xa6
push str..App.cpp
push 1
push 0x2220
call fcn.00478bb0
add esp, 0x10
test eax, eax
je 0x401699
push eax
call fcn.0040a380
jmp 0x40169b
xor eax, eax
mov dword [0x5384ec], eax
test eax, eax
je 0x40170d
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0x10
push 0x96c80000
push str.hpysoft
push 0
mov ecx, eax
call dword [sym.imp.LibDui.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, dword [0x5384ec]
push 0x71
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CWindowWnd::SetIcon_unsigned_int_]
mov ecx, dword [0x5384ec]
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, dword [0x5384ec]
push 5
call dword [sym.imp.LibDui.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.LibDui.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00478880
lea ecx, [esp + 0x94]
call fcn.00401740
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00476050
mov esp, ebp
pop ebp
ret 0x10