Function at 0x40294a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.0040bd8d
mov edi, 0x41648c
push edi
xor ecx, ecx
call fcn.0040c0af
mov esi, eax
cmp esi, 0xffffffff
je 0x402b7b
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call ebx
add eax, esi
pop ecx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.0040c007
push 0x416488
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.0040c0af
xor esi, esi
push esi
lea ecx, [ebp - 4]
push ecx
lea edi, [ebp - 0xc]
call fcn.0040c034
push dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040bde0
mov eax, edi
call fcn.0040bda0
lea eax, [ebp - 4]
call fcn.0040bfe1
push 0x416488
mov edi, eax
call ebx
add edi, eax
mov dword [esp], 0x41648c
call ebx
add edi, eax
pop ecx
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.0040c007
lea ecx, [ebp - 8]
cmp ecx, eax
je 0x4029fe
push dword [eax]
mov eax, ecx
call fcn.0040bde0
lea eax, [ebp - 0x10]
call fcn.0040bda0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov esi, 0x416484
push esi
push 0
lea eax, [ebp - 4]
call fcn.0040c38f
lea eax, [ebp - 0x14]
push eax
push esi
push 1
lea eax, [ebp - 4]
call fcn.0040c38f
lea eax, [ebp - 0x1c]
push eax
push esi
push 2
lea eax, [ebp - 4]
call fcn.0040c38f
lea eax, [ebp - 0x18]
push eax
push esi
push 3
lea eax, [ebp - 4]
call fcn.0040c38f
push str.shell32.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x402aa7
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x402a9c
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402a84
mov eax, 0x4162fc
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
push 1
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x402b26
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp eax, ebx
mov edi, 0x4162fc
jne 0x402ab7
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
push 1
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jl 0x402b0b
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x20], 0x104
jne 0x402ade
mov eax, edi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x402b2b
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x402b14
mov eax, edi
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
jmp 0x402b2b
mov edi, 0x4162fc
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [ebp - 8]
test eax, eax
pop ecx
pop ecx
pop ebx
jne 0x402b47
mov eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x18]
call fcn.0040bda0
lea eax, [ebp - 0x1c]
call fcn.0040bda0
lea eax, [ebp - 0x14]
call fcn.0040bda0
lea eax, [ebp - 0xc]
call fcn.0040bda0
lea eax, [ebp - 4]
call fcn.0040bda0
lea eax, [ebp - 8]
call fcn.0040bda0
pop edi
pop esi
leave
ret