Function at 0x40af00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c4ad
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
mov dword [0x460cc4], eax
xorps xmm0, xmm0
push 7
xor eax, eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
push 0x44e240
movlpd qword [ebp - 0xec], xmm0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 7
mov word [ebp - 0x108], ax
call fcn.004076f0
mov dword [ebp - 4], 0
xor al, al
mov word [ebp - 0xe8], 0
mov byte [ebp - 0xe7], al
cmp dword [ebp - 0xf8], 0
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0xe4], eax
je 0x40afd1
cmp dword [ebp - 0xf4], 8
lea eax, [ebp - 0x108]
cmovae eax, dword [ebp - 0x108]
jmp 0x40afd3
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0xec], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf0], edi
test edi, edi
je 0x40b01a
call esi
mov ecx, dword [ebp - 0xe4]
cmp eax, 0xb7
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 0xe7], cl
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xf4]
cmp edx, 8
jb 0x40b05e
mov ecx, dword [ebp - 0x108]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b054
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b65f
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 7
mov word [ebp - 0x108], ax
test edi, edi
je 0x40b0b6
cmp byte [ebp - 0xe4], al
je 0x40b0b6
push 0x44e240
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x40b0b0
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
jmp 0x40b61b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x30
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0042a240
add esp, 0xc
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x4c]
movq qword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x4c], xmm0
push 0
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40b119
call esi
test eax, eax
jle 0x40b10e
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x40b119
mov byte [0x460cb9], 1
jmp 0x40b120
mov dword [ebp - 0x58], 0x24
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], vtable.ATL::CComModule.0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 7
mov esi, dword [0x45f388]
mov ecx, dword [0x45f38c]
mov dword [ebp - 0x30], 0
cmp esi, ecx
jae 0x40b17e
mov eax, dword [esi]
test eax, eax
je 0x40b177
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x45f38c]
add esi, 4
cmp esi, ecx
jb 0x40b164
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0xe
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x138]
push str.ui_Default.skn
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
call fcn.004076f0
mov byte [ebp - 4], 8
xor eax, eax
push 0x10
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x10c], 0
push str.ui_SettingUI.dui
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 7
mov word [ebp - 0x120], ax
call fcn.004076f0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x18]
call fcn.00419680
mov dword [0x460cc0], eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x10c]
cmp edx, 8
jb 0x40b297
mov ecx, dword [ebp - 0x120]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b28d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b664
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 7
mov word [ebp - 0x120], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x124]
cmp edx, 8
jb 0x40b2f8
mov ecx, dword [ebp - 0x138]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b669
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
cmp dword [0x460cc0], eax
jne 0x40b338
push 0x30
push str.2345
push str.b_rN0R
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
or esi, 0xffffffff
jmp 0x40b5c2
call fcn.0041b3c0
mov esi, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe4], esi
test esi, esi
je 0x40b360
mov eax, dword [esi]
test eax, eax
je 0x40b360
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xc
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0x58], 1
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x40b37d
push eax
call edi
lea ecx, [ebp - 0x150]
call fcn.00417190
mov edi, eax
mov byte [ebp - 4], 0xd
lea eax, [esi + 0x34]
cmp eax, edi
je 0x40b3c0
mov ecx, eax
call fcn.00407690
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi + 0x34], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x44], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x13c]
cmp edx, 8
jb 0x40b404
mov ecx, dword [ebp - 0x150]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66e
push edx
push ecx
call fcn.00428145
add esp, 8
mov ecx, dword [esi + 0x4c]
xor eax, eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 7
mov word [ebp - 0x150], ax
call fcn.0041c830
mov byte [ebp - 4], 7
mov eax, dword [esi]
test eax, eax
je 0x40b43a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x68
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe4], 0
push 0
push eax
call fcn.0042a240
add esp, 0xc
lea ecx, [ebp - 0xe0]
call fcn.0040e390
mov byte [ebp - 4], 0xe
mov eax, dword [0x460cc0]
push dword [ebp - 0xf0]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xc0]
push eax
push 0x45d9c0
call fcn.00407c70
add esp, 8
movzx eax, ax
lea ecx, [ebp - 0xe0]
push eax
push 0
push 0x8040000
push SysReAllocString
push 0x44e240
push 0
push 0
call fcn.00407b20
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0xdc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 0xdc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40b513
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40b4f3
mov esi, dword [0x460cc0]
test esi, esi
je 0x40b537
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b537
push str.CloseSkin
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b537
push esi
call eax
push dword [ebp - 0x1c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40b572
cmp dword [esi], 0
je 0x40b572
add esi, 0x10
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40b55c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x10]
push 0
mov dword [esi], 0
call eax
add esi, 0x24
cmp dword [esi - 0x10], 0
jne 0x40b550
mov esi, dword [0x45f388]
mov ecx, dword [0x45f38c]
cmp esi, ecx
jae 0x40b59c
mov eax, dword [esi]
test eax, eax
je 0x40b595
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x45f38c]
add esi, 4
cmp esi, ecx
jb 0x40b582
lea ecx, [ebp - 0x5c]
call fcn.004080c0
call fcn.0041b3c0
mov ecx, eax
call fcn.0041b480
mov esi, dword [ebp - 0x70]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe0]
call fcn.0040e810
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40b5e3
push eax
call edi
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b5fe
push eax
call edi
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x5c], vtable.ATL::CComModule.0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004080c0
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40b637
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xec], 0
mov word [ebp - 0xe8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 0x10
call fcn.0042d453
call fcn.0042d453
call fcn.0042d453
call fcn.0042d453
int3