Function at 0x40d9bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41b7b0
call fcn.0040f840
sub esp, 0x114
push ebx
push esi
push edi
push str.Software
lea ecx, [ebp - 0x14]
call fcn.0040a6d6
mov esi, 0x4206bc
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x4206b4
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push esi
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x4206ac
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push esi
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 5
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push str.Path
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00409039
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00408fd6
mov al, byte [0x421aac]
push 0x40
mov byte [ebp - 0x120], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x104
stosw word es:[edi], ax
cmp ecx, ebx
stosb byte es:[edi], al
je 0x40dafa
call fcn.004091a8
jmp 0x40dafc
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40db72
mov ecx, dword [ebp + 8]
push 0x420af8
call fcn.00408fe9
push 0x4206b4
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 7
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x420af4
lea ecx, [ebp - 0x10]
call fcn.00408f82
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.00409039
lea ecx, [ebp - 0x10]
call fcn.00408fd6
jmp 0x40dc04
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x421aac
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.0040963e
cmp edi, ebx
je 0x40dbfb
push 0x420af8
mov ecx, esi
call fcn.00408fe9
push 0x4206b4
lea ecx, [ebp + 8]
call fcn.0040a6d6
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 9
call fcn.00409039
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x420af4
lea ecx, [ebp + 8]
call fcn.00408f82
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 0xa
call fcn.00409039
lea ecx, [ebp + 8]
call fcn.00408fd6
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.00408fd6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4