Function at 0x4021f0
Capabilities:
Delete registry value
Set environment variable

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 0x468431
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x4c700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x180], eax
xorps xmm0, xmm0
mov byte [ebp - 0x179], 1
mov edx, eax
movlpd qword [ebp - 0x164], xmm0
lea ecx, [ebp - 0xf8]
movlpd qword [ebp - 0x15c], xmm0
movlpd qword [ebp - 0x154], xmm0
movlpd qword [ebp - 0x14c], xmm0
movlpd qword [ebp - 0x144], xmm0
movlpd qword [ebp - 0x13c], xmm0
movlpd qword [ebp - 0x134], xmm0
movlpd qword [ebp - 0x12c], xmm0
movups xmmword [ebp - 0x178], xmm0
mov dword [ebp - 0x168], 0x44
call fcn.00402080
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xfc], 0x22
cmp ecx, 0x7ffffffe
je 0x40264f
cmp dword [ebp - 0xe4], 8
lea eax, [ebp - 0xf8]
push ecx
cmovae eax, dword [ebp - 0xf8]
push eax
push 1
lea eax, [ebp - 0xfc]
push eax
push ecx
push dword [ebp - 0x180]
lea ecx, [ebp - 0x114]
call fcn.0040cc90
push 0x22
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.0040bce0
movups xmm0, xmmword [ebp - 0x114]
movups xmmword [ebp - 0xe0], xmm0
movq xmm0, qword [ebp - 0x104]
movq qword [ebp - 0xd0], xmm0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xf8]
cmp dword [ebp - 0xe4], 8
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmovae eax, dword [ebp - 0xf8]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call esi
cmp dword [ebp - 0xe4], 8
lea eax, [ebp - 0xf8]
cmovae eax, dword [ebp - 0xf8]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call esi
push 0
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [0x4c7a78], 8
lea ecx, [ebp - 0xe0]
push dword [0x4c7a74]
mov eax, 0x4c7a64
cmovae eax, dword [0x4c7a64]
push eax
call fcn.0040c240
cmp byte [0x4c9098], 0
je 0x4023dc
mov eax, dword [str.__disable_gpu]
test eax, eax
je 0x4023dc
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4023c0
sub edx, esi
lea ecx, [ebp - 0xe0]
sar edx, 1
push edx
push eax
call fcn.0040c240
mov edi, dword [0x4c8d98]
mov esi, dword [0x4c8d94]
cmp esi, edi
je 0x402434
nop dword [eax]
push 2
push 0x48b4f8
lea ecx, [ebp - 0xe0]
call fcn.0040c240
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40240c
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040c240
push 1
push 0x48b500
lea ecx, [ebp - 0xe0]
call fcn.0040c240
add esi, 0x18
cmp esi, edi
jne 0x4023f0
cmp byte [0x4c7aac], 0
je 0x402503
lea ecx, [ebp - 0x11c]
call int.0041d660
mov byte [ebp - 4], 4
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x100], 0x10
push 0x55
cmovae eax, dword [ebp - 0x114]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0044c936
add esp, 0xc
lea ecx, [ebp - 0xe0]
push 0xa
push 0x48b504
call fcn.0040c240
lea ecx, [ebp - 0xc8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402491
sub ecx, edx
lea eax, [ebp - 0xc8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040c240
push 1
push 0x48b500
lea ecx, [ebp - 0xe0]
call fcn.0040c240
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x100]
cmp edx, 0x10
jb 0x402503
mov ecx, dword [ebp - 0x114]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4024f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402654
push edx
push ecx
call fcn.00449563
add esp, 8
push 0xb
push str.__installed
lea ecx, [ebp - 0xe0]
call fcn.0040c240
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
cmovae eax, dword [ebp - 0xe0]
push eax
call fcn.0044cb6d
add esp, 4
mov esi, eax
lea eax, [ebp - 0x178]
mov edx, esi
push eax
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x180]
sub esp, 0x14
call fcn.004157c0
add esp, 0x20
test eax, eax
jne 0x402589
mov dword [0x4c8d78], 0x17
mov dword [0x4c7a44], 0x48b534
mov dword [0x4c8d7c], 0x138
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4c8d74], eax
mov byte [ebp - 0x179], 0
push esi
call fcn.00458837
mov edx, dword [ebp - 0xcc]
add esp, 4
cmp edx, 8
jb 0x4025d2
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402659
push edx
push ecx
call fcn.00449563
add esp, 8
mov edx, dword [ebp - 0xe4]
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
cmp edx, 8
jb 0x40262b
mov ecx, dword [ebp - 0xf8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402621
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402659
push edx
push ecx
call fcn.00449563
add esp, 8
mov al, byte [ebp - 0x179]
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.004490d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004013e0
call fcn.00458a87
call fcn.00458a87
int3