Function at 0x4060b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408afb
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xd088
call fcn.00408940
mov eax, dword [0x40c024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40610b
test al, 0x10
jne 0x40610b
mov al, 1
jmp 0x40610d
xor al, al
test al, al
jne 0x4064c7
push esi
lea ecx, [ebp - 0xd098]
call fcn.004051a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0xd088], 0
je 0x4063c1
cmp dword [ebp - 0xd084], 8
lea eax, [ebp - 0xd098]
push 0
cmovae eax, dword [ebp - 0xd098]
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [ebp - 0xd064], edi
test edi, edi
je 0x4063c1
mov dword [ebp - 0x501c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x5024], xmm0
mov dword [ebp - 0x5024], 0
mov dword [ebp - 0x5020], 0
mov dword [ebp - 0x501c], 0
cmp edi, 0x7fffffff
ja 0x406d88
cmp edi, 0x1000
jb 0x4061df
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x406d8d
push eax
call fcn.00407bdf
add esp, 4
test eax, eax
je 0x406497
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4061ea
push edi
call fcn.00407bdf
add esp, 4
mov esi, eax
push dword [ebp - 0xd064]
add edi, esi
mov dword [ebp - 0x5024], esi
push 0
push esi
mov dword [ebp - 0x501c], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x5020], edi
push 0
push 0
push dword [ebp - 0xd064]
mov byte [ebp - 4], 1
lea eax, [ebp - 0xd098]
cmp dword [ebp - 0xd084], 8
push esi
cmovae eax, dword [ebp - 0xd098]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
movups xmmword [ebp - 0xd080], xmm0
test eax, eax
jne 0x40629d
mov dword [ebp - 0xd070], eax
mov dword [ebp - 0xd06c], 0xf
mov byte [ebp - 0xd080], al
test esi, esi
je 0x4063e6
sub edi, esi
cmp edi, 0x1000
jb 0x40628e
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x406497
mov esi, ecx
push edi
push esi
call fcn.00407c0f
add esp, 8
jmp 0x4063e6
sub edi, esi
lea eax, [edi - 1]
cmp eax, 0x7fffffff
ja 0x406d92
cmp eax, 0x10
jae 0x4062dd
push eax
mov dword [ebp - 0xd070], eax
lea eax, [ebp - 0xd080]
push esi
push eax
mov dword [ebp - 0xd06c], 0xf
call sub.VCRUNTIME140.dll_memcpy
mov byte [ebp + edi - 0xd081], 0
jmp 0x406390
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40631b
mov eax, 0x80000000
mov dword [ebp - 0xd068], 0x7fffffff
add eax, 0x23
push eax
call fcn.00407bdf
add esp, 4
test eax, eax
je 0x406497
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
mov eax, dword [ebp - 0xd068]
jmp 0x406362
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0xd068], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x406343
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x406d97
jmp 0x4062f9
test ecx, ecx
je 0x406360
push ecx
call fcn.00407bdf
mov edx, eax
mov dword [ebp - 0xd064], eax
mov eax, dword [ebp - 0xd068]
add esp, 4
jmp 0x406368
xor edx, edx
mov dword [ebp - 0xd064], edx
lea ecx, [edi - 1]
mov dword [ebp - 0xd080], edx
push ecx
push esi
push edx
mov dword [ebp - 0xd070], ecx
mov dword [ebp - 0xd06c], eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0xd064]
mov byte [ecx + edi - 1], 0
add esp, 0xc
test esi, esi
je 0x4063e6
cmp edi, 0x1000
jb 0x4063b5
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x406497
mov esi, ecx
push edi
push esi
call fcn.00407c0f
add esp, 8
jmp 0x4063e6
xorps xmm0, xmm0
mov dword [ebp - 0xd070], 0
movups xmmword [ebp - 0xd080], xmm0
mov dword [ebp - 0xd06c], 0xf
mov byte [ebp - 0xd080], 0
cmp dword [ebp - 0xd06c], 0x10
lea eax, [ebp - 0xd080]
cmovae eax, dword [ebp - 0xd080]
push eax
push str.exe_path:_s_not_exists
lea eax, [ebp - 0x5018]
push 0x2800
push eax
call fcn.00404670
mov ecx, dword [ebp - 0xd06c]
add esp, 0x10
cmp ecx, 0x10
jb 0x40644a
mov edx, dword [ebp - 0xd080]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406440
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406497
push ecx
push edx
call fcn.00407c0f
add esp, 8
mov ecx, dword [ebp - 0xd084]
mov dword [ebp - 0xd070], 0
mov dword [ebp - 0xd06c], 0xf
mov byte [ebp - 0xd080], 0
cmp ecx, 8
jb 0x4064a7
mov edx, dword [ebp - 0xd098]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40649d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40649d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c0f
add esp, 8
lea eax, [ebp - 0x5018]
mov edx, 0x11c
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 4
xor al, al
jmp 0x406d6a
call fcn.00401c40
test eax, eax
je 0x406507
push eax
push str.NvAPI_Initialize_failed__status:_d
lea eax, [ebp - 0x5018]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x5018]
mov edx, 0x122
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
xor al, al
jmp 0x406d6a
lea eax, [ebp - 0xd05c]
mov dword [ebp - 0xd05c], 0
push eax
call fcn.00401290
add esp, 4
test eax, eax
je 0x40655b
push eax
push str.NvAPI_DRS_CreateSession_failed__status:_d
lea eax, [ebp - 0x5018]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x5018]
mov edx, 0x129
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
xor al, al
jmp 0x406d6a
push dword [ebp - 0xd05c]
call fcn.00401430
add esp, 4
test eax, eax
je 0x4065a4
push eax
push str.NvAPI_DRS_LoadSettings_failed__status:_d
lea eax, [ebp - 0x5018]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x5018]
mov edx, 0x12f
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
xor al, al
jmp 0x406d6a
mov ecx, dword [ebp - 0xd05c]
mov edx, esi
call fcn.004055f0
mov ecx, dword [ebp - 0xd05c]
mov edx, 0x40a04c
call fcn.004055f0
lea eax, [ebp - 0xd060]
mov dword [ebp - 0xd060], 0
push eax
push str.QQNT
push dword [ebp - 0xd05c]
call fcn.00401770
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
test eax, eax
jne 0x4068a3
push str.NvAPI_DRS_FindProfileByName_found
lea eax, [ebp - 0x5018]
push 0x2800
push eax
call fcn.00404670
add esp, 0xc
lea eax, [ebp - 0x5018]
mov edx, 0x13e
mov ecx, str.nv::RepairNvidiaConfig
push eax
call fcn.00407570
add esp, 4
push 0x5008
lea eax, [ebp - 0xd054]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xd058], 0x13008
lea eax, [ebp - 0xd050]
push esi
push eax
call edi
push 0x40a04c
lea eax, [ebp - 0xc050]
push eax
call edi
lea eax, [ebp - 0xd058]
push eax
push dword [ebp - 0xd060]
push dword [ebp - 0xd05c]
call fcn.00401840
add esp, 0xc
test eax, eax
je 0x4066ac
push eax
push str.NvAPI_DRS_CreateApplication_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x152
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push 0x5008
lea eax, [ebp - 0xd054]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xd058], 0x13008
lea eax, [ebp - 0xd050]
push 0x40a04c
push eax
call edi
push 0x40a04c
lea eax, [ebp - 0xc050]
push eax
call edi
lea eax, [ebp - 0xd058]
push eax
push dword [ebp - 0xd060]
push dword [ebp - 0xd05c]
call fcn.00401840
add esp, 0xc
test eax, eax
je 0x406737
push eax
push str.NvAPI_DRS_CreateApplication_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x15e
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push 0x301c
lea eax, [ebp - 0x8044]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x8048], 0x13020
lea eax, [ebp - 0x8044]
push str.NVIDIA_Predefined_FXAA_Usage
push eax
call edi
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0x1034cb89
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0
call fcn.00401ac0
add esp, 0xc
test eax, eax
je 0x4067dc
push eax
push str.NvAPI_DRS_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x16d
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0x98c1ac
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x7030], 0
call fcn.00401ac0
add esp, 0xc
test eax, eax
je 0x406853
push eax
push str.NvAPI_DRS_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x177
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push str.nvapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40692c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibraryW_failed__error:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x182
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
xor al, al
jmp 0x406d6a
push 0x1010
lea eax, [ebp - 0x382c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3830], 0x11014
lea eax, [ebp - 0x382c]
push str.QQNT
push eax
call edi
lea eax, [ebp - 0xd060]
push eax
lea eax, [ebp - 0x3830]
push eax
push dword [ebp - 0xd05c]
call fcn.004015d0
add esp, 0xc
test eax, eax
je 0x406625
push eax
push str.NvAPI_DRS_CreateProfile_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x145
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
xor al, al
jmp 0x406d6a
push str.nvapi_QueryInterface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x406977
push str.GetProcAddress_failed.
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
add esp, 0xc
lea eax, [ebp - 0x2818]
mov edx, 0x189
mov ecx, str.nv::RepairNvidiaConfig
push eax
call fcn.00407570
add esp, 4
xor al, al
jmp 0x406d6a
push 0x8a2cf5f5
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x406a02
push str.NvAPI_QueryInterface_0x8A2CF5F5__failed__error.
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
add esp, 0xc
lea eax, [ebp - 0x2818]
mov edx, 0x190
mov ecx, str.nv::RepairNvidiaConfig
push eax
call fcn.00407570
add esp, 4
push 0x577dd202
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x406a02
push str.NvAPI_QueryInterface_0x577DD202__failed__error.
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
add esp, 0xc
lea eax, [ebp - 0x2818]
mov edx, 0x193
mov ecx, str.nv::RepairNvidiaConfig
push eax
call fcn.00407570
add esp, 4
xor al, al
jmp 0x406d6a
push 0
push 0
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0xabac21
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0
call esi
add esp, 0x14
test eax, eax
je 0x406a7a
push eax
push str.NvAPI_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x1a0
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0xabab21
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0
call esi
add esp, 0x14
test eax, eax
je 0x406af2
push eax
push str.NvAPI_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x1ab
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0x598949
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0
call esi
add esp, 0x14
test eax, eax
je 0x406b6a
push eax
push str.NvAPI_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x1b6
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0x80857a28
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0
call esi
add esp, 0x14
test eax, eax
je 0x406be2
push eax
push str.NvAPI_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x1c2
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0xa879cf
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0x8416747
call fcn.00401ac0
add esp, 0xc
test eax, eax
je 0x406c59
push eax
push str.NvAPI_DRS_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x1ce
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0x10fdec23
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0
call fcn.00401ac0
add esp, 0xc
test eax, eax
je 0x406cd0
push eax
push str.NvAPI_DRS_SetSetting_failed__status:_d
lea eax, [ebp - 0x2818]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0x2818]
mov edx, 0x1d9
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
lea eax, [ebp - 0x8048]
mov dword [ebp - 0x7044], 0x5a375c
push eax
push dword [ebp - 0xd060]
mov dword [ebp - 0x7040], 0
push dword [ebp - 0xd05c]
mov dword [ebp - 0x703c], 0
mov dword [ebp - 0x602c], 0x96861077
call fcn.00401ac0
add esp, 0xc
test eax, eax
je 0x406d47
push eax
push str.NvAPI_DRS_SetSetting_failed__status:_d
lea eax, [ebp - 0xa850]
push 0x2800
push eax
call fcn.00404670
lea eax, [ebp - 0xa850]
mov edx, 0x1e4
push eax
mov ecx, str.nv::RepairNvidiaConfig
call fcn.00407570
add esp, 0x14
push dword [ebp - 0xd05c]
call fcn.00401500
add esp, 4
push dword [ebp - 0xd05c]
call fcn.00401360
add esp, 4
call fcn.00401d50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407bd1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00407b90
call fcn.00404750
call fcn.004047f0
call fcn.00404750
int3