Function at 0x49cbd7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x34]
push edi
mov edi, dword [ebp + 8]
push str.MUTEX_UPDATE_365KANTU
call fcn.00404f50
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x49ce70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49ce70
lea ecx, [ebp - 0x248]
call fcn.004100a0
push esi
lea ecx, [ebp - 0xac]
call fcn.00401da0
lea eax, [ebp - 0x64]
push eax
call fcn.0049cb4d
lea eax, [ebp - 0x1c]
push eax
call fcn.004052e0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00405420
add esp, 0x10
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x49cc6e
mov ecx, dword [eax]
push ebx
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00406b80
lea ecx, [ebp - 0x4c]
call fcn.00401e20
lea ecx, [ebp - 0x1c]
call fcn.00405280
lea ecx, [ebp - 0x130]
call fcn.0040f1d0
lea ecx, [ebp - 0x130]
call fcn.0040f200
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x130]
call fcn.0040f230
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x130]
call fcn.0040fa20
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xac]
call fcn.004050a0
test al, al
je 0x49ccdd
push 2
pop eax
jmp 0x49cd24
lea eax, [ebp - 0x1c]
push eax
call fcn.00401a80
mov ecx, eax
mov dword [esp], 0x522c44
call fcn.0040a100
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00401e20
test bl, bl
je 0x49cd35
push 0x522c30
lea ecx, [ebp - 0x4c]
call fcn.00401da0
lea eax, [ebp - 0x4c]
push eax
call fcn.004019a0
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.00401e20
xor eax, eax
inc eax
push eax
lea ecx, [ebp - 0x248]
call fcn.0041b330
jmp 0x49ce46
lea eax, [ebp - 0x1c]
push 0x50c950
push eax
call fcn.0040cf80
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00407e20
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00405280
lea eax, [ebp - 0x7c]
push eax
call fcn.00406f90
pop ecx
test al, al
je 0x49ce3e
push edi
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
lea eax, [ebp - 0x1b4]
mov dword [esp], str.resourceupdate
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.DuiLib.dll_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_]
pop ecx
mov ecx, eax
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CDuiString::operator_wchar_t_const__]
mov ecx, eax
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__]
mov esi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
pop ecx
lea ecx, [ebp - 0x1b4]
call esi
lea ecx, [ebp - 0x238]
call esi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x49ce3e
lea eax, [ebp - 0xc4]
push eax
call fcn.004016c0
mov dword [esp], 0x410
call fcn.0049e926
pop ecx
test eax, eax
je 0x49cdf3
push 1
mov ecx, eax
call fcn.0049ba91
mov esi, eax
jmp 0x49cdf5
mov esi, ebx
test esi, esi
je 0x49ce33
push ebx
push 0xfe
push 0x166
push ebx
push ebx
push ebx
push 0x81
push 0x50c914
push ebx
mov ecx, esi
call dword [sym.imp.DuiLib.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____]
push 1
mov ecx, esi
call fcn.0049c70c
test al, al
je 0x49ce33
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc4]
call fcn.00401e20
lea ecx, [ebp - 0x7c]
call fcn.00405280
lea ecx, [ebp - 0x94]
call fcn.00401e20
lea ecx, [ebp - 0x64]
call fcn.00401e20
lea ecx, [ebp - 0xac]
call fcn.00401e20
lea ecx, [ebp - 0x248]
call fcn.0041a600
pop ebx
lea ecx, [ebp - 0x34]
call fcn.00405280
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049e964
leave
ret 0x10