Function at 0x4042d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4187eb
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0
push 0x4193ff
lea ecx, [ebp - 0x1a4]
call fcn.00402010
mov dword [ebp - 4], 0
mov al, byte [0x419419]
mov byte [ebp - 0x174], al
push 0xff
push 0
lea ecx, [ebp - 0x173]
push ecx
call fcn.00409c60
add esp, 0xc
mov dword [ebp - 0x24c], 0x100
mov ecx, dword [ebp - 0x258]
call fcn.004085d0
push str.SOFTWAREMicrosoft.NETFrameworkpolicy
lea ecx, [ebp - 0x1a4]
call fcn.004076f0
lea edx, [ebp - 0x240]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x1a4]
call fcn.00402ef0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x4043bd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004021e0
jmp 0x4046e2
mov dword [ebp - 0x238], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4046c3
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x174]
cmp eax, 0x56
je 0x404427
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x174]
cmp eax, 0x76
jne 0x4046a5
mov dword [ebp - 0x23c], 0
mov cl, byte [0x41941a]
mov byte [ebp - 0x74], cl
push 0x63
push 0
lea edx, [ebp - 0x73]
push edx
call fcn.00409c60
add esp, 0xc
lea ecx, [ebp - 0x18c]
call fcn.00402050
mov byte [ebp - 4], 1
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x174]
push eax
call fcn.0040c70f
add esp, 4
push eax
lea ecx, [ebp - 0x18c]
call fcn.004076f0
lea ecx, [ebp - 0x18c]
push ecx
push 0x419448
lea edx, [ebp - 0x1a4]
push edx
lea eax, [ebp - 0x204]
push eax
call fcn.00405b10
add esp, 0xc
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x26c]
push edx
lea eax, [ebp - 0x1bc]
push eax
call fcn.00401bf0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x204]
call fcn.004021e0
mov dword [ebp - 0x248], 0x64
lea ecx, [ebp - 0x254]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x1bc]
call fcn.00402ef0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404543
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.004021e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.004021e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004021e0
jmp 0x4046e2
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x1ec]
call fcn.004075b0
mov byte [ebp - 4], 5
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404642
mov dword [ebp - 0x250], 1
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x1ec]
call fcn.00402360
lea ecx, [ebp - 0x74]
push ecx
push 0x41944c
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.00405b10
add esp, 0xc
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x260]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00401c30
add esp, 0xc
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x1d4]
call fcn.004022b0
lea ecx, [ebp - 0x21c]
call fcn.004021e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.004021e0
mov dword [ebp - 0x248], 0x64
mov edx, dword [ebp - 0x23c]
add edx, 1
mov dword [ebp - 0x23c], edx
jmp 0x40455c
cmp dword [ebp - 0x250], 0
je 0x40466b
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, dword [ebp - 0x258]
call fcn.004077b0
mov ecx, eax
call fcn.00407710
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1ec]
call fcn.004076d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.004021e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18c]
call fcn.004021e0
mov dword [ebp - 0x24c], 0x100
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
jmp 0x4043c7
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004021e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a758
mov esp, ebp
pop ebp
ret