Function at 0x402431
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00408e8d
push edi
mov ebx, str.CSIDL_
push ebx
lea esi, [ebp - 4]
call fcn.00409026
mov esi, eax
cmp esi, 0xffffffff
je 0x402648
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 4]
add eax, esi
push ecx
lea esi, [ebp - 8]
call fcn.00408f79
push edi
mov edi, 0x410388
push edi
call fcn.00409026
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
push ecx
call fcn.0040900e
call fcn.00408f57
lea eax, [ebp - 0xc]
call fcn.00408e4e
mov eax, esi
call fcn.00408f46
push edi
mov esi, eax
call sub.MSVCRT.dll_strlen
push ebx
add esi, eax
call sub.MSVCRT.dll_strlen
pop ecx
add esi, eax
pop ecx
lea eax, [ebp - 4]
push eax
mov eax, esi
lea esi, [ebp - 0xc]
call fcn.00408f79
lea esi, [ebp - 4]
call fcn.00408f57
lea eax, [ebp - 0xc]
call fcn.00408e4e
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
mov esi, 0x410384
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.0040916c
lea eax, [ebp - 0x10]
push eax
push esi
push 1
lea eax, [ebp - 8]
call fcn.0040916c
lea eax, [ebp - 0x14]
push eax
push esi
push 2
lea eax, [ebp - 8]
call fcn.0040916c
lea eax, [ebp - 0x18]
push eax
push esi
push 3
lea eax, [ebp - 8]
call fcn.0040916c
push str.shell32.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x40257d
push str.SHGetSpecialFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x402572
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x40255a
mov eax, 0x4102ca
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
push 1
push eax
lea eax, [ebp - 0x128]
push eax
push edi
call dword [ebp - 0xc]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, edi
jne 0x4025f7
mov eax, dword [ebp - 0x10]
cmp eax, edi
mov esi, 0x4102ca
jne 0x40258b
mov eax, esi
lea ecx, [ebp - 0xc]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jl 0x4025dd
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x20], 0x104
jne 0x4025b2
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x128]
push ecx
push edi
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
setge bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x4025fc
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x4025e6
mov eax, esi
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x4025fc
mov esi, 0x4102ca
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
cmp dword [ebp - 4], edi
pop ecx
pop ecx
je 0x402615
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x18]
call fcn.00408e4e
lea eax, [ebp - 0x14]
call fcn.00408e4e
lea eax, [ebp - 0x10]
call fcn.00408e4e
lea eax, [ebp - 0x1c]
call fcn.00408e4e
lea eax, [ebp - 8]
call fcn.00408e4e
lea eax, [ebp - 4]
call fcn.00408e4e
pop edi
pop esi
pop ebx
leave
ret