Function at 0x402e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d960
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4d0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
push 3
push 0x4b7e68
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00403330
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
mov edx, str.SOFTWAREMicrosoftVisualStudio14.0VCRuntimes_
lea ecx, [ebp - 0x40]
call fcn.00403cc0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x402f1d
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.004022a0
add esp, 0xc
push 7
push str.Version
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403330
mov edx, str.Reading_reg_key_for
mov byte [ebp - 4], 3
mov ecx, 0x4e8a30
call fcn.00403d20
mov edx, 0x4b7eb4
mov ecx, eax
call fcn.00403d20
mov edx, str._bit:
mov ecx, eax
call fcn.00403d20
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00403fd0
mov edx, 0x4b7ea8
mov ecx, eax
call fcn.00403d20
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.00403fd0
push eax
call fcn.00404240
add esp, 4
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push 0x20219
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403024
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402ff2
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004022a0
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4031b1
push 1
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.004022a0
add esp, 0xc
jmp 0x4031b1
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4030c9
mov edx, str.Failed_to_get_size_of_registry_key
mov ecx, 0x4e8b10
call fcn.00403d20
push eax
call fcn.00404240
add esp, 4
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x403097
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004022a0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x4031b1
push 1
inc eax
push eax
push dword [ebp - 0x40]
call fcn.004022a0
add esp, 0xc
jmp 0x4031b1
push dword [ebp - 0x74]
call fcn.004669e6
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edi, eax
lea eax, [ebp - 0x74]
cmovae ecx, dword [ebp - 0x28]
push eax
push edi
push 0
push 0
push ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403137
mov edx, str.Failed_to_read_registry_key
mov ecx, 0x4e8b10
call fcn.00403d20
push eax
call fcn.00404240
add esp, 4
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push edi
call fcn.004669d8
mov dword [esi + 0x14], 0xf
add esp, 8
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x4031a1
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
cmp byte [edi + eax - 1], 0
jne 0x40314e
dec eax
mov dword [ebp - 0x74], eax
push eax
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00403330
push 1
push edi
mov byte [ebp - 4], 4
call fcn.004669d8
add esp, 8
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x70]
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00403430
lea ecx, [ebp - 0x70]
call fcn.004031f0
lea ecx, [ebp - 0x28]
call fcn.004031f0
lea ecx, [ebp - 0x40]
call fcn.004031f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004664cd
mov esp, ebp
pop ebp
ret