Function at 0x40d577
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41b74c
call fcn.0040f840
sub esp, 0x114
push ebx
push esi
push edi
push str.Software
lea ecx, [ebp - 0x1c]
call fcn.0040a6d6
xor ebx, ebx
push 0x4206bc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00409039
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x40d5c8
call fcn.0040917b
push 0x4206b4
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00409039
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x40d5f4
call fcn.0040917b
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 - 0x1c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
cmp ecx, ebx
mov dword [ebp - 0x14], edi
je 0x40d625
call fcn.004091a8
jmp 0x40d627
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40d900
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420650
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d68a
cmp dword [ebp - 0x10], ebx
jne 0x40d68a
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b80], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x42064c
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d6cf
cmp dword [ebp - 0x10], ebx
jne 0x40d6cf
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421ba0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x42065c
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d714
cmp dword [ebp - 0x10], ebx
jne 0x40d714
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x420914], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420998
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d759
cmp dword [ebp - 0x10], ebx
jne 0x40d759
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b8c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420994
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d79e
cmp dword [ebp - 0x10], ebx
jne 0x40d79e
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b90], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420990
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d7e3
cmp dword [ebp - 0x10], ebx
jne 0x40d7e3
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b94], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x42098c
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d828
cmp dword [ebp - 0x10], ebx
jne 0x40d828
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b98], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420988
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d86d
cmp dword [ebp - 0x10], ebx
jne 0x40d86d
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b9c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420984
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d8b2
cmp dword [ebp - 0x10], ebx
jne 0x40d8b2
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b84], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x420980
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d8f7
cmp dword [ebp - 0x10], ebx
jne 0x40d8f7
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x421b88], eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Setup
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00409039
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x40d92c
call fcn.0040917b
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x40d93a
call fcn.004091a8
jmp 0x40d93c
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d99f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push str.Block
push dword [ebp - 0x18]
call esi
mov esi, eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40d996
cmp esi, ebx
jne 0x40d996
lea eax, [ebp - 0x120]
push eax
call fcn.0040fe85
pop ecx
mov dword [0x420910], eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x40d9ae
call fcn.0040917b
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret