Function at 0x416f42
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
push edi
call fcn.0040845c
xor ebp, ebp
lea ecx, [esp + 0x14]
mov ebx, str.CSIDL_
push ebp
mov edx, ebx
call fcn.004086dc
mov esi, eax
cmp esi, 0xffffffff
je 0x417173
push ebx
call fcn.0041ae79
pop ecx
add eax, esi
lea edx, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.0040861d
mov ebx, 0x43b720
lea ecx, [esp + 0x10]
push ebp
mov edx, ebx
call fcn.004086dc
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
call fcn.004086c8
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040847a
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
mov dword [esi], ebp
call fcn.00408471
push ebx
call fcn.0041ae79
mov esi, eax
mov dword [esp], str.CSIDL_
call fcn.0041ae79
pop ecx
lea ecx, [esp + 0x10]
add esi, eax
call fcn.004085fa
add eax, esi
lea edx, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.0040861d
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0040847a
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
mov dword [esi], ebp
call fcn.00408471
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ebp
push eax
push ecx
xor edx, edx
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00408885
lea eax, [esp + 0x24]
xor edx, edx
push eax
push ecx
inc edx
lea ecx, [esp + 0x18]
call fcn.00408885
lea eax, [esp + 0x20]
push eax
push ecx
push 2
pop edx
lea ecx, [esp + 0x18]
call fcn.00408885
lea eax, [esp + 0x1c]
push eax
push ecx
push 3
pop edx
lea ecx, [esp + 0x18]
call fcn.00408885
push 0x43c264
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4170b6
push str.SHGetSpecialFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4170ab
lea ecx, [esp + 0x28]
call fcn.0040848a
push eax
call fcn.0041dc59
pop ecx
push 1
push eax
lea eax, [esp + 0x38]
push eax
push ebp
call esi
mov ebp, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
jne 0x417127
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push 1
push ebx
lea ecx, [esp + 0x30]
call fcn.0040848a
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x417111
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x104
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
lea ecx, [esp + 0x30]
call fcn.0040848a
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jns 0x417127
lea ecx, [esp + 0x1c]
call fcn.0040848a
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0041aed7
pop ecx
pop ecx
lea eax, [esp + 0x30]
push eax
push edi
call fcn.0041aed7
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.0040848a
push eax
push edi
call fcn.0041df08
pop ecx
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00408471
lea ecx, [esp + 0x20]
call fcn.00408471
lea ecx, [esp + 0x24]
call fcn.00408471
lea ecx, [esp + 0x28]
call fcn.00408471
lea ecx, [esp + 0x10]
call fcn.00408471
lea ecx, [esp + 0x14]
call fcn.00408471
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret