Function at 0x42ed58
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ae634
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
lea eax, [esp + 0x78]
push eax
call fcn.0042f156
pop ecx
xor ebx, ebx
mov dword [esp + 0x140], ebx
call fcn.004bb630
mov byte [esp + 0x140], 1
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x42edcb
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004776d9
pop ecx
pop ecx
mov byte [esp + 0x140], 2
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], ebx
jae 0x42edf3
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.0051f390
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x42ee43
push str.NvAPI_DISP_GetDisplayIdByDisplayName
lea esi, [esp + 0x44]
call fcn.00409096
push 0x1b1
push edi
mov eax, esi
push eax
mov ecx, 0x5ca8e0
lea edi, [esp + 0xa0]
mov byte [esp + 0x14c], 3
call fcn.004bb350
push 0x5ffb6c
mov eax, edi
push eax
call fcn.005676bc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x144], 5
push 1
push dword [esp + 0x2c]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
call fcn.0042f3ed
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp esi, eax
jne 0x42eeb5
push str.Driver_supports_0_hypersampling_resolutions.
lea esi, [esp + 0x44]
call fcn.00409096
mov byte [esp + 0x140], 6
push 0x1c2
mov ecx, 0x5ca8e0
mov eax, esi
call fcn.00401f44
sub eax, esi
sar eax, 2
xor ecx, ecx
cmp eax, ebx
jbe 0x42eee8
mov edx, dword [esp + 0x30]
mov edi, dword [edx]
cmp edi, dword [ebp + 8]
jne 0x42eed3
mov edi, dword [edx + 4]
cmp edi, dword [ebp + 0xc]
je 0x42eedd
inc ecx
add edx, 0xc
cmp ecx, eax
jb 0x42eec4
jmp 0x42eee8
mov esi, dword [esi + ecx*4]
mov dword [esp + 0x28], esi
cmp esi, ebx
jne 0x42ef0c
push str.Target_resolution_wasnt_found_in_what_driver_supports
lea esi, [esp + 0x44]
call fcn.00409096
mov byte [esp + 0x140], 7
push 0x1d0
mov ecx, 0x5ca8e0
mov eax, esi
jmp 0x42eeb0
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x2c]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x20]
call fcn.0042f3ed
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ecx
sub eax, edx
sar eax, 2
add esp, 0xc
xor edi, edi
cmp eax, ebx
jbe 0x42ef45
cmp dword [edx + edi*4], esi
je 0x42ef8d
inc edi
cmp edi, eax
jb 0x42ef3b
lea eax, [esp + 0x28]
cmp eax, ecx
jae 0x42f070
cmp edx, eax
ja 0x42f070
mov esi, eax
sub esi, edx
sar esi, 2
cmp ecx, dword [esp + 0x1c]
jne 0x42ef79
push 1
lea eax, [esp + 0x18]
call fcn.00430a56
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [edx + esi*4]
cmp ecx, ebx
je 0x42f08f
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x42f08f
lea eax, [esp + 0x94]
push eax
call fcn.00409ac6
mov edi, eax
push str.Hypersampling_factor
push edi
mov byte [esp + 0x148], 8
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
push str._is_already_enabled.
push edi
call fcn.0040fa1f
pop ecx
pop ecx
lea eax, [esp + 0x40]
push eax
mov eax, edi
call fcn.00409b30
mov byte [esp + 0x140], 9
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x42efe8
lea eax, [esp + 0x40]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x44]
call fcn.0040b028
lea eax, [esp + 0x94]
mov byte [esp + 0x140], 5
call fcn.004021a3
cmp dword [esp + 0x30], ebx
je 0x42f023
push dword [esp + 0x30]
call fcn.0055e74f
pop ecx
lea esi, [esp + 0x14]
call fcn.004c601a
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040aadd
call fcn.004bb700
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.0040b028
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret 8
cmp ecx, dword [esp + 0x1c]
jne 0x42f089
push 1
lea eax, [esp + 0x18]
call fcn.00430a56
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp ecx, ebx
je 0x42f08f
mov dword [ecx], esi
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add ecx, 4
mov dword [esp + 0x18], ecx
stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
push ebx
sub ecx, edx
sub esp, 0x14
sar ecx, 2
push 5
mov dword [esp + 0x60], ecx
pop ecx
mov edi, esp
push 1
push dword [esp + 0x40]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
lea esi, [esp + 0x60]
mov dword [esp + 0x60], 0x20014
mov dword [esp + 0x70], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00523210
mov edi, eax
add esp, 0x20
cmp edi, ebx
je 0x42f013
push str.NvAPI_DISP_SetHyperSamplingSettings
lea esi, [esp + 0x44]
call fcn.00409096
push 0x1fa
push edi
mov eax, esi
push eax
mov ecx, 0x5ca8e0
lea edi, [esp + 0xa0]
mov byte [esp + 0x14c], 0xa
call fcn.004bb350
push 0x5ffb6c
mov eax, edi
jmp 0x42ee3d