Function at 0x4023b8
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.004080d0
push edi
mov ebx, str.CSIDL_
push ebx
lea esi, [ebp - 4]
call fcn.00408269
mov esi, eax
cmp esi, 0xffffffff
je 0x4025cf
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 4]
add eax, esi
push ecx
lea esi, [ebp - 8]
call fcn.004081bc
push edi
mov edi, 0x40f378
push edi
call fcn.00408269
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
push ecx
call fcn.00408251
call fcn.0040819a
lea eax, [ebp - 0xc]
call fcn.00408091
mov eax, esi
call fcn.00408189
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.004081bc
lea esi, [ebp - 4]
call fcn.0040819a
lea eax, [ebp - 0xc]
call fcn.00408091
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
mov esi, 0x40f374
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.004083af
lea eax, [ebp - 0x10]
push eax
push esi
push 1
lea eax, [ebp - 8]
call fcn.004083af
lea eax, [ebp - 0x14]
push eax
push esi
push 2
lea eax, [ebp - 8]
call fcn.004083af
lea eax, [ebp - 0x18]
push eax
push esi
push 3
lea eax, [ebp - 8]
call fcn.004083af
push str.shell32.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x402504
push str.SHGetSpecialFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x4024f9
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x4024e1
mov eax, 0x40f2ba
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 0x40257e
mov eax, dword [ebp - 0x10]
cmp eax, edi
mov esi, 0x40f2ba
jne 0x402512
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 0x402564
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x20], 0x104
jne 0x402539
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 0x402583
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x40256d
mov eax, esi
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x402583
mov esi, 0x40f2ba
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 0x40259c
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.00408091
lea eax, [ebp - 0x14]
call fcn.00408091
lea eax, [ebp - 0x10]
call fcn.00408091
lea eax, [ebp - 0x1c]
call fcn.00408091
lea eax, [ebp - 8]
call fcn.00408091
lea eax, [ebp - 4]
call fcn.00408091
pop edi
pop esi
pop ebx
leave
ret