Function at 0x402967
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.0040c209
xor edi, edi
push edi
mov ebx, 0x41749c
push ebx
call fcn.0040c50e
mov esi, eax
cmp esi, 0xffffffff
jne 0x4029a2
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x402b9d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
call ebx
add eax, esi
pop ecx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.0040c466
push edi
push 0x417498
lea esi, [ebp - 4]
call fcn.0040c50e
push edi
mov ecx, esi
push ecx
lea edi, [ebp - 0x10]
call fcn.0040c493
push dword [ebp - 0x10]
mov eax, esi
call fcn.0040c23a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
pop ecx
lea eax, [ebp - 4]
call fcn.0040c440
push 0x417498
mov edi, eax
call ebx
add edi, eax
mov dword [esp], 0x41749c
call ebx
add edi, eax
pop ecx
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
call fcn.0040c466
lea ecx, [ebp - 8]
cmp ecx, eax
je 0x402a27
push dword [eax]
mov eax, ecx
call fcn.0040c23a
push dword [ebp - 0xc]
call esi
pop ecx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
mov edi, 0x417494
push edi
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040c7f1
lea eax, [ebp - 0x14]
push eax
push edi
push 1
lea eax, [ebp - 4]
call fcn.0040c7f1
lea eax, [ebp - 0x1c]
push eax
push edi
push 2
lea eax, [ebp - 4]
call fcn.0040c7f1
lea eax, [ebp - 0x20]
push eax
push edi
push 3
lea eax, [ebp - 4]
call fcn.0040c7f1
push str.shell32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x402ad3
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x402ac6
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x402aae
mov eax, 0x41730c
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
push 1
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [ebp - 0xc]
mov edi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
jne 0x402b52
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov edi, 0x41730c
jne 0x402ae1
mov eax, edi
lea ecx, [ebp - 0xc]
push ecx
push 1
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jl 0x402b37
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x18], 0x104
jne 0x402b08
mov eax, edi
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x230]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
jne 0x402b57
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x402b40
mov eax, edi
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
jmp 0x402b57
mov edi, 0x41730c
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [ebp - 8]
cmp eax, ebx
pop ecx
pop ecx
jne 0x402b72
mov eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscat]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret