Function at 0x402f60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
push ebx
push esi
push edi
push str.NVCOLOR.EXE
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x18], edi
je 0x4033bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403013
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
push esi
push str.NVIDIA_Display_Optimizer_Navigation
call ebx
push esi
push str.NVIDIA_Display_Optimizer_General
mov edi, eax
call ebx
cmp edi, esi
mov ebx, eax
je 0x402fe5
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x402fd3
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, esi
je 0x4033bf
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403001
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x38], esi
mov ecx, 0x13
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0xd8], si
mov dword [esp + 0x34], eax
mov ecx, 0x7f
lea edi, [esp + 0xda]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], esi
stosw word es:[edi], ax
mov dword [esp + 0xc], esi
mov dword [0x41d018], ebx
call fcn.00401000
push 0x41d020
mov dword [esp + 0x18], esi
call fcn.00401080
add esp, 4
test eax, eax
je 0x4033b4
lea ecx, [esp + 0xc]
push ecx
push 0x41d020
call fcn.00402f00
add esp, 8
test eax, eax
je 0x4030a6
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x41d020
call fcn.00402ec0
add esp, 4
cmp eax, 1
jne 0x4030f6
push 0x100
lea edx, [esp + 0x2dc]
push edx
push 0x8c16
push esi
call fcn.00406bd0
add esp, 0x10
push esi
push str.NVIDIA
lea eax, [esp + 0x2e0]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x7f00
push esi
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 0x402760
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push 4
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], eax
mov ecx, 0xa
lea esi, [esp + 0x38]
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], str.NVIDIA_Display_Optimizer_Navigation
rep movsd dword es:[edi], dword [esi]
push 0x41d020
mov dword [esp + 0x68], 0x402420
mov dword [esp + 0x88], str.NVIDIA_Display_Optimizer_General
call fcn.00402e90
mov esi, dword [sym.imp.USER32.dll_RegisterClassW]
add esp, 4
lea ecx, [esp + 0x38]
push ecx
call esi
test ax, ax
je 0x40327e
lea edx, [esp + 0x60]
push edx
call esi
test ax, ax
je 0x40327e
lea eax, [esp + 0xc]
xor edi, edi
mov dword [esp + 0x10], edi
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 1
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test dword [0x41d1e0], 0xf0
jbe 0x40327e
mov esi, 0x41d960
lea esp, [esp]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403218
mov eax, dword [esi - 0x454]
test eax, eax
je 0x403218
push str.NVIDIA_Display_Optimizer_Navigation
lea ecx, [esp + 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x41d1e0]
mov edx, edi
shl edx, 8
xor edx, eax
and edx, 0xf00
xor eax, edx
mov dword [0x41d1e0], eax
mov dword [esp + 0x14], 1
jmp 0x40322b
push str.NVIDIA_Display_Optimizer_General
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esi]
mov edx, dword [esi - 4]
mov eax, dword [esi - 0x10]
push 0
push ebx
push 0
push 0
push ecx
mov ecx, dword [esi - 0x14]
push edx
push eax
push ecx
push 0x80000000
lea edx, [esp + 0xfc]
push edx
mov eax, edx
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi*4 + 0x41d020], eax
mov ecx, dword [0x41d1e0]
shr ecx, 4
inc edi
and ecx, 0xf
add esi, 0x90c
cmp edi, ecx
jb 0x4031d0
mov eax, dword [0x41d1e0]
xor esi, esi
test eax, 0xf0
jbe 0x4032ae
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi*4 + 0x41d020]
push 5
push edx
call edi
mov eax, dword [0x41d1e0]
shr eax, 4
inc esi
and eax, 0xf
cmp esi, eax
jb 0x403292
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0x41d1e0]
shr ecx, 8
and ecx, 0xf
mov edx, dword [ecx*4 + 0x41d020]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x41cf04]
test eax, eax
je 0x4033b4
mov eax, dword [0x41d1e0]
xor edi, edi
test eax, 0xf0
jbe 0x403341
mov esi, 0x4263a8
lea esp, [esp]
mov eax, dword [esi + 0x40]
push eax
call dword [0x41cf0c]
push esi
lea ecx, [esp + 0x90]
push str.setgamma__s_all_1.0
push ecx
call fcn.00407e9b
add esp, 0x10
lea edx, [esp + 0x88]
push edx
call dword [0x41cf04]
mov eax, dword [0x41d1e0]
shr eax, 4
inc edi
and eax, 0xf
add esi, 4
cmp edi, eax
jb 0x403300
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
je 0x4033b4
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x4033b4
mov eax, dword [0x41d1e0]
mov edx, eax
and edx, 0xf
cmp dl, 0xc
je 0x403391
shr eax, 8
lea ecx, [esp + 0x1c]
and eax, 0xf
mov edx, dword [eax*4 + 0x41d020]
push ecx
push edx
call edi
test eax, eax
jne 0x4033a3
lea eax, [esp + 0x1c]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call esi
test eax, eax
jne 0x403364
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10