Function at 0x4024ad
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.00409ca5
push edi
mov ebx, str.CSIDL_
push ebx
lea esi, [ebp - 4]
call fcn.00409e3e
mov esi, eax
cmp esi, 0xffffffff
je 0x4026c4
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 4]
add eax, esi
push ecx
lea esi, [ebp - 8]
call fcn.00409d91
push edi
mov edi, 0x4113a8
push edi
call fcn.00409e3e
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
push ecx
call fcn.00409e26
call fcn.00409d6f
lea eax, [ebp - 0xc]
call fcn.00409c66
mov eax, esi
call fcn.00409d5e
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.00409d91
lea esi, [ebp - 4]
call fcn.00409d6f
lea eax, [ebp - 0xc]
call fcn.00409c66
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
mov esi, 0x4113a4
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.00409fbb
lea eax, [ebp - 0x10]
push eax
push esi
push 1
lea eax, [ebp - 8]
call fcn.00409fbb
lea eax, [ebp - 0x14]
push eax
push esi
push 2
lea eax, [ebp - 8]
call fcn.00409fbb
lea eax, [ebp - 0x18]
push eax
push esi
push 3
lea eax, [ebp - 8]
call fcn.00409fbb
push str.shell32.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x4025f9
push str.SHGetSpecialFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x4025ee
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x4025d6
mov eax, 0x4112ea
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 0x402673
mov eax, dword [ebp - 0x10]
cmp eax, edi
mov esi, 0x4112ea
jne 0x402607
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 0x402659
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x20], 0x104
jne 0x40262e
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 0x402678
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x402662
mov eax, esi
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x402678
mov esi, 0x4112ea
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 0x402691
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.00409c66
lea eax, [ebp - 0x14]
call fcn.00409c66
lea eax, [ebp - 0x10]
call fcn.00409c66
lea eax, [ebp - 0x1c]
call fcn.00409c66
lea eax, [ebp - 8]
call fcn.00409c66
lea eax, [ebp - 4]
call fcn.00409c66
pop edi
pop esi
pop ebx
leave
ret