Function at 0x418362
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.00408ba7
xor ebp, ebp
lea ecx, [esp + 0x14]
mov ebx, str.CSIDL_
push ebp
mov edx, ebx
call fcn.00408e27
mov esi, eax
cmp esi, 0xffffffff
je 0x418593
push ebx
call fcn.0041c299
pop ecx
add eax, esi
lea edx, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.00408d68
mov ebx, 0x43e594
lea ecx, [esp + 0x10]
push ebp
mov edx, ebx
call fcn.00408e27
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
call fcn.00408e13
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00408bc5
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
mov dword [esi], ebp
call fcn.00408bbc
push ebx
call fcn.0041c299
mov esi, eax
mov dword [esp], str.CSIDL_
call fcn.0041c299
pop ecx
lea ecx, [esp + 0x10]
add esi, eax
call fcn.00408d45
add eax, esi
lea edx, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.00408d68
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00408bc5
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
mov dword [esi], ebp
call fcn.00408bbc
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.00408fd0
lea eax, [esp + 0x24]
xor edx, edx
push eax
push ecx
inc edx
lea ecx, [esp + 0x18]
call fcn.00408fd0
lea eax, [esp + 0x20]
push eax
push ecx
push 2
pop edx
lea ecx, [esp + 0x18]
call fcn.00408fd0
lea eax, [esp + 0x1c]
push eax
push ecx
push 3
pop edx
lea ecx, [esp + 0x18]
call fcn.00408fd0
push 0x43f48c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4184d6
push str.SHGetSpecialFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4184cb
lea ecx, [esp + 0x28]
call fcn.00408bd5
push eax
call fcn.0041f079
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 0x418547
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push 1
push ebx
lea ecx, [esp + 0x30]
call fcn.00408bd5
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x418531
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.00408bd5
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 0x418547
lea ecx, [esp + 0x1c]
call fcn.00408bd5
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0041c2f7
pop ecx
pop ecx
lea eax, [esp + 0x30]
push eax
push edi
call fcn.0041c2f7
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.00408bd5
push eax
push edi
call fcn.0041f328
pop ecx
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00408bbc
lea ecx, [esp + 0x20]
call fcn.00408bbc
lea ecx, [esp + 0x24]
call fcn.00408bbc
lea ecx, [esp + 0x28]
call fcn.00408bbc
lea ecx, [esp + 0x10]
call fcn.00408bbc
lea ecx, [esp + 0x14]
call fcn.00408bbc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret