Function at 0x4048d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4259e8
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
push 0x206
mov dword [esp + 0x244], ebx
lea ecx, [esp + 0x32]
xor eax, eax
push ebx
mov dword [esp + 0x28], ebx
push ecx
mov dword [esp + 0x34], esi
mov word [esp + 0x38], ax
call fcn.0041a210
mov ebp, dword [0x433174]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
shr edx, 0x10
add esp, 0xc
mov dword [esp + 0x24], 0x103
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], ebp
test edx, edx
jne 0x404aa0
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
movzx ecx, ax
lea edx, [esp + 0x14]
call fcn.00401f90
mov ebp, dword [esp + 0x14]
mov ecx, str.Favorites
mov dword [esp + 0x240], 1
mov edi, dword [0x433174]
shr ecx, 0x10
mov dword [esp + 0x18], edi
test ecx, ecx
jne 0x404aed
mov edx, str.Favorites
movzx ecx, dx
lea edx, [esp + 0x18]
call fcn.00401f90
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push ebp
push SysReAllocStringLen
mov byte [esp + 0x258], 2
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [0x433174]
mov dword [esi], eax
lea ecx, [esp + 0x2c]
push ecx
push 0x42c5c0
mov edx, esi
mov dword [esp + 0x28], 1
call fcn.004067c0
mov eax, dword [esi]
add esp, 8
push 0x208
lea ecx, [esp + 0x30]
push ecx
xor edx, edx
push eax
mov word [esp + 0x38], dx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
call fcn.004021f0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
je 0x404a35
push esi
call fcn.004063a0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, 0x433164
je 0x404a59
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x404a59
push edi
call fcn.00417bee
add esp, 4
lea eax, [ebp - 0xc]
cmp eax, 0x433164
je 0x404a76
lea edi, [ebp - 0xc]
push edi
call ebx
test eax, eax
jg 0x404a76
push edi
call fcn.00417bee
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004178c7
add esp, 0x230
ret
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x404977
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.00402150
test eax, eax
je 0x404973
mov ebp, dword [esp + 0x14]
lea eax, [edi + edi]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
add eax, 2
push eax
push ebp
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
jmp 0x404977
push str.Favorites
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x4049b1
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.00402150
test eax, eax
je 0x4049ad
mov edi, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push str.Favorites
add eax, 2
push eax
push edi
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
jmp 0x4049b1