Function at 0x428c60
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x4bf3ec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x1801000
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1bc], eax
jne 0x428fba
test edi, edi
je 0x428fba
test ecx, ecx
je 0x428cb6
mov eax, dword [ecx]
test eax, eax
je 0x428cb6
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x428cb6
mov dword [0x4c1858], eax
mov dword [0x4c185c], ecx
jmp 0x428cbb
mov eax, dword [0x4c1858]
push esi
push 0x310
test eax, eax
je 0x428cc9
call eax
jmp 0x428cd1
call fcn.0044ad03
add esp, 4
mov esi, eax
mov dword [edi], esi
test esi, esi
jne 0x428cec
lea eax, [esi + 3]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
push 0x310
push 0
push esi
call fcn.00440700
push str.atiadlxy.dll
push str.atiadlxx.dll
call fcn.0043d550
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x428d51
mov dword [edi], eax
mov eax, dword [0x4c185c]
push esi
test eax, eax
je 0x428d34
call eax
pop esi
mov eax, 6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
call fcn.0044ace8
add esp, 4
mov eax, 6
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.00428930
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x428da2
mov ecx, dword [0x4c185c]
mov dword [edi], 0
push esi
test ecx, ecx
je 0x428d87
call ecx
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
call fcn.0044ace8
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 8]
push 1
push fcn.004288d0
call eax
add esp, 0xc
test eax, eax
je 0x428dff
mov eax, dword [0x4c185c]
mov dword [edi], 0
push esi
test eax, eax
je 0x428de1
call eax
pop ebx
pop esi
mov eax, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
call fcn.0044ace8
add esp, 4
mov eax, 8
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
push str.TRUE
push str.ADL_4KWORKAROUND_CANCEL
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0043c9d0
push 0x1a4
xor edi, edi
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.00440700
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
lea eax, [ebp - 0x1ac]
add esp, 0x10
mov dword [ebp - 0x1ac], 0x1a8
push edi
push eax
push edi
push edi
call ebx
test eax, eax
je 0x428f65
test byte [ebp - 0x108], 4
jne 0x428e71
push 0
lea eax, [ebp - 0x1ac]
inc edi
push eax
push edi
push 0
call ebx
test eax, eax
jne 0x428e50
jmp 0x428f65
cmp dword [esi + 0x30c], 0
mov dword [ebp - 0x1b4], 0
jle 0x428f65
xor eax, eax
mov dword [ebp - 0x1b0], eax
mov ebx, dword [esi + 0x308]
lea ecx, [ebp - 0x1a8]
add eax, 0x218
add eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x428ec3
test dl, dl
je 0x428ebf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x428ec3
add eax, 2
add ecx, 2
test dl, dl
jne 0x428ea3
xor eax, eax
jmp 0x428ec8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x428f3b
mov edi, dword [esi + 0x304]
xor edx, edx
test edi, edi
jle 0x428f3b
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [esi + 0x300]
mov ebx, dword [eax + ebx + 0x10c]
mov dword [ebp - 0x1b8], ebx
imul eax, dword [ecx + 0x68], 0x624
add eax, dword [esi + 0x308]
cmp dword [eax + 0x10c], ebx
jne 0x428f2d
mov edi, dword [esi + 0x308]
mov ebx, dword [ebp - 0x1b0]
mov eax, dword [eax + 0x108]
cmp eax, dword [ebx + edi + 0x108]
mov edi, dword [esi + 0x304]
mov ebx, dword [ebp - 0x1b8]
je 0x428f37
inc edx
add ecx, 0x70
cmp edx, edi
jl 0x428ef1
jmp 0x428f3b
or dword [ecx + 8], 2
mov edx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x1b0]
inc edx
add eax, 0x624
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x1b0], eax
cmp edx, dword [esi + 0x30c]
jl 0x428e90
mov ecx, dword [ebp - 0x1bc]
test ecx, ecx
je 0x428fa7
lea eax, [esi + 0x100]
mov dword [ecx], eax
lea eax, [esi + 0x200]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x300]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x304]
push esi
mov dword [ecx + 8], eax
call fcn.0043d460
push esi
call fcn.0043cd50
push esi
call fcn.0043d650
add esp, 0xc
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef85
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
pop edi
call fcn.0043ef85
mov esp, ebp
pop ebp
ret