Function at 0x41a560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5ba318]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push 0x568100
push SysReAllocString
mov dword [ebp - 0x3c], ecx
call esi
test eax, eax
je 0x41a5a6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053996e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push 0
push str.D5F0EE5A_1156_4fc0_9901_AE490D5500E2
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41a605
mov ecx, dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.D5F0EE5A_1156_4fc0_9901_AE490D5500E2
push ecx
call edi
test eax, eax
je 0x41a605
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053996e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push str.Version
push ecx
call esi
test eax, eax
je 0x41a665
mov eax, dword [ebp - 0x2c]
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Version
push eax
call edi
test eax, eax
je 0x41a665
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053996e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
push str.Revision
push eax
mov dword [ebp - 0x38], 4
call esi
mov edi, 1
test eax, eax
jne 0x41a719
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41a719
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
cmp ecx, 0x76c
jge 0x41a6b9
push 0x80004005
call fcn.004013d0
lea edx, [eax - 1]
cmp edx, 0xb
jbe 0x41a6cb
push 0x80004005
call fcn.004013d0
dec eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
add ecx, 0xfffff894
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
call fcn.0053b2cf
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
jne 0x41a70a
push 0x80070057
call fcn.004013d0
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0xe0], eax
mov dword [ecx + 0xe4], edx
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push str.Extended
push edx
mov dword [ebp - 0x38], 4
call esi
test eax, eax
jne 0x41a749
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0xe8], eax
mov edx, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
mov ecx, dword [ebp - 0x34]
push ecx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053996e
mov esp, ebp
pop ebp
ret