Function at 0x433f50
Capabilities:
Delete file
Get common file path
Query environment variable
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x36f0
call fcn.004a1410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [esi + 0x860], 0
mov word [ebp - 0x404], ax
call fcn.0049eae0
add esp, 0xc
lea edx, [ebp - 0x404]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x404]
push eax
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x43403e
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x802]
push edx
mov word [ebp - 0x804], cx
call fcn.0049eae0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x804]
push ecx
call edi
push str.i_B914A2E8_22C5_4aa0_B3AB_CA72AAEAE6BE.tmp
lea edx, [ebp - 0x804]
push edx
call edi
push 0
push 0
push 4
push 0
push 7
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x434022
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
jne 0x4341e7
xor edx, edx
push 0x176e
push edx
lea eax, [ebp - 0x36e2]
mov ebx, 2
push eax
mov dword [ebp - 0x36e8], 0
mov dword [ebp - 0x36ec], ebx
mov dword [ebp - 0x36f0], 0xbb8
mov word [ebp - 0x36e4], dx
call fcn.0049eae0
xor ecx, ecx
push 0x176e
push ecx
lea edx, [ebp - 0x1f72]
push edx
mov word [ebp - 0x1f74], cx
call fcn.0049eae0
add esp, 0x18
lea eax, [ebp - 0x36e8]
push eax
push 0xf003f
push 0
push str.Environment
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434189
lea ecx, [ebp - 0x36f0]
push ecx
mov ecx, dword [ebp - 0x36e8]
lea edx, [ebp - 0x36e4]
push edx
lea eax, [ebp - 0x36ec]
push eax
push 0
push 0x4d47b4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x434135
mov eax, dword [esi + 0x864]
mov edx, dword [ebp - 0x36ec]
mov dword [esi + 0x868], edx
test eax, eax
je 0x434108
push eax
call fcn.004a0a01
add esp, 4
push 0x1770
call fcn.004a0979
push 0xbb7
lea ecx, [ebp - 0x36e4]
push ecx
push eax
mov dword [esi + 0x864], eax
call fcn.004a092d
add esp, 0x10
mov dword [esi + 0x860], ebx
jmp 0x43413f
mov dword [esi + 0x860], 1
mov edx, dword [ebp - 0x36e8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x44
push str._USERPROFILE_Local_SettingsTemp
push ebx
push 0
push 0x4d47b4
push edx
call edi
mov eax, dword [ebp - 0x36e8]
push 0x44
push str._USERPROFILE_Local_SettingsTemp
push ebx
push 0
push str.TEMP
push eax
call edi
push 0x4d4758
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x36e8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xbb8
lea edx, [ebp - 0x1f74]
push edx
push str._USERPROFILE_Local_SettingsTemp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1f74]
push eax
push 0x4d47b4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x200
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.0049eae0
add esp, 0xc
lea edx, [ebp - 0x404]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [esi + 0x5c]
test esi, esi
je 0x4341fc
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.00430670
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret