Function at 0x412080
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x535b21
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x584460]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x584460]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
call fcn.0042764c
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.00406ce0
xor ebx, ebx
mov dword [esp + 0x1b8], ebx
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x4120f7
push 0x80070057
call fcn.00402e30
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x412116
push esi
lea ecx, [esp + 0x14]
call fcn.00402d50
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.00512bdb
mov eax, dword [esp + 0x18]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4120ed
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x10]
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0x10]
mov ecx, 0x564458
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41216b
cmp dx, bx
je 0x412164
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41216b
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x412142
xor eax, eax
or edi, 0xffffffff
jmp 0x412174
sbb eax, eax
mov edi, 0xffffffff
sbb eax, edi
cmp eax, ebx
setne al
cmp al, bl
je 0x412204
call fcn.00412480
test eax, eax
jne 0x4121fb
push 0x30
push str.Power_Peak_Time_Mode
push str.This_PC_do_not_support_power_peak_time_mode.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, str.PowerCtrlClient.exe
call fcn.004128f0
mov ecx, str.PowerCtrlService.exe
call fcn.004128f0
mov dword [esp + 0x1b8], edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4121d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00511b7f
mov esp, ebp
pop ebp
ret
call fcn.00418b60
test al, al
je 0x41218a
push str.Power_Management_Mutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [esp + 0x14]
mov dword [esi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412275
push 0x564640
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
je 0x4121b1
push esi
call dword [sym.imp.USER32.dll_IsIconic]
cmp eax, 1
jne 0x412260
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4121b1
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4121b1
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
push ebx
push ebx
push ebx
call fcn.00424e40
lea ecx, [esi + 0xbc]
cmp eax, ebx
jne 0x4122a7
xor edx, edx
jmp 0x4122c2
mov edx, eax
lea edi, [edx + 2]
lea esp, [esp]
mov si, word [edx]
add edx, 2
cmp si, bx
jne 0x4122b0
sub edx, edi
sar edx, 1
or edi, 0xffffffff
push edx
push eax
call fcn.00406ef0
lea esi, [esp + 0x18]
mov dword [0x585cac], 0x64
call fcn.00411200
push eax
mov ecx, 0x58c370
mov byte [esp + 0x1bc], 1
call fcn.00406e10
mov byte [esp + 0x1b8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x56430c
push 0x58c370
call fcn.00410d10
add esp, 8
test al, al
je 0x41233c
push 0xd
push str.Malgun_Gothic
mov ecx, 0x58c450
call fcn.00406ef0
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0x58c2c0
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.00412a70
lea edx, [esp + 0x34]
push edx
call fcn.00413170
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
mov byte [esp + 0x1b8], 2
mov dword [ecx + 0x20], eax
mov ecx, eax
call fcn.0042b3c4
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b8], bl
call fcn.004133d0
mov dword [esp + 0x1b8], edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x4121c7