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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472fb5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4334a6
mov edx, dword [esi]
lea ecx, [ebp - 0x40]
call fcn.00418480
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00419130
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4334cb
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call edi
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4334e8
mov eax, dword [esi]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call edi
cmp dword [esi + 0x14], 8
mov edx, dword [esi + 0x10]
jb 0x433500
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp eax, edx
jne 0x433521
push eax
mov edx, esi
call fcn.004146b0
add esp, 4
test eax, eax
je 0x433551
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call edi
sub esp, 8
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00429950
mov esi, eax
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x43356c
mov eax, dword [esi]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call edi
cmp dword [esi + 0x14], 8
jb 0x433581
mov esi, dword [esi]
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call edi
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4335c8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4335be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4336f7
push edx
push ecx
call fcn.00451449
add esp, 8
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push str.TwitchStudioAgent.exe
cmovae edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004185a0
add esp, 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000001
call edi
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push 0x80000002
call edi
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x43364d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433643
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4336fc
push edx
push ecx
call fcn.00451449
add esp, 8
push 0
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x433690
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433686
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433701
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4336da
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4336d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433701
push edx
push ecx
call fcn.00451449
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
call fcn.00460976
call fcn.00460976
call fcn.00460976
int3