Function at 0x44e480
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x6673c0]
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 0x44e7da
test edi, edi
je 0x44e7da
test ecx, ecx
je 0x44e4d6
mov eax, dword [ecx]
test eax, eax
je 0x44e4d6
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x44e4d6
mov dword [0x6b8bf4], eax
mov dword [0x6b8bf8], ecx
jmp 0x44e4db
mov eax, dword [0x6b8bf4]
push esi
push 0x310
test eax, eax
je 0x44e4e9
call eax
jmp 0x44e4f1
call fcn.00458b75
add esp, 4
mov esi, eax
mov dword [edi], esi
test esi, esi
jne 0x44e50c
lea eax, [esi + 3]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
push 0x310
push 0
push esi
call fcn.00452360
push str.atiadlxy.dll
push str.atiadlxx.dll
call fcn.00450340
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x44e571
mov dword [edi], eax
mov eax, dword [0x6b8bf8]
push esi
test eax, eax
je 0x44e554
call eax
pop esi
mov eax, 6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
call fcn.00458ee2
add esp, 4
mov eax, 6
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0044e150
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44e5c2
mov ecx, dword [0x6b8bf8]
mov dword [edi], 0
push esi
test ecx, ecx
je 0x44e5a7
call ecx
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
call fcn.00458ee2
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 8]
push 1
push fcn.0044e0f0
call eax
add esp, 0xc
test eax, eax
je 0x44e61f
mov eax, dword [0x6b8bf8]
mov dword [edi], 0
push esi
test eax, eax
je 0x44e601
call eax
pop ebx
pop esi
mov eax, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
call fcn.00458ee2
add esp, 4
mov eax, 8
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
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.0044f7c0
push 0x1a4
xor edi, edi
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.00452360
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 0x44e785
test byte [ebp - 0x108], 4
jne 0x44e691
push 0
lea eax, [ebp - 0x1ac]
inc edi
push eax
push edi
push 0
call ebx
test eax, eax
jne 0x44e670
jmp 0x44e785
cmp dword [esi + 0x30c], 0
mov dword [ebp - 0x1b4], 0
jle 0x44e785
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 0x44e6e3
test dl, dl
je 0x44e6df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44e6e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x44e6c3
xor eax, eax
jmp 0x44e6e8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44e75b
mov edi, dword [esi + 0x304]
xor edx, edx
test edi, edi
jle 0x44e75b
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 0x44e74d
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 0x44e757
inc edx
add ecx, 0x70
cmp edx, edi
jl 0x44e711
jmp 0x44e75b
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 0x44e6b0
mov ecx, dword [ebp - 0x1bc]
test ecx, ecx
je 0x44e7c7
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.00450250
push esi
call fcn.0044fb40
push esi
call fcn.00450440
add esp, 0xc
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
pop edi
call fcn.004510dc
mov esp, ebp
pop ebp
ret