Function at 0x470320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509349
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], 0x533de0
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 0
xor al, al
je 0x470382
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x448]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4705d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x458], 4
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x448]
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x454]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x450], 0
jne 0x470468
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x448]
call esi
mov dx, word [ebp - 0x30]
lea eax, [ebp - 0x30]
xor ecx, ecx
test dx, dx
je 0x470468
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x470440
cmp ecx, 3
jne 0x470468
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x450], eax
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x450]
mov dword [0x5769e0], eax
mov eax, dword [ebp - 0x454]
mov dword [0x5769e4], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x45c], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x4704d0
push 0xa
lea edx, [ebp - 0x444]
mov dword [ebp - 0x444], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00480720
add esp, 4
mov dword [0x5769e8], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x47055e
mov di, word [ebp - 0x238]
mov ecx, 0x5769f0
test di, di
je 0x470532
lea esi, [ebp - 0x238]
movzx edx, di
sub esi, ecx
nop dword [eax]
movzx eax, word [esi + ecx + 2]
mov word [ecx], dx
add ecx, 2
mov edx, eax
test ax, ax
jne 0x470520
xor eax, eax
mov word [ecx], ax
xor ecx, ecx
lea eax, [ebp - 0x238]
test di, di
je 0x47054e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x470544
movzx eax, word [ebp + ecx*2 - 0x23a]
sub eax, 0x30
mov dword [0x5769ec], eax
mov eax, dword [0x5770cc]
test al, 1
jne 0x470595
or eax, 1
mov dword [0x5770cc], eax
mov byte [ebp - 4], 1
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5770d0], eax
mov byte [ebp - 4], 0
jmp 0x47059a
mov eax, dword [0x5770d0]
test eax, eax
je 0x4705cc
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5770d0]
test eax, eax
je 0x4705cc
cmp dword [ebp - 0x444], 1
sete al
jmp 0x4705ce
xor al, al
mov byte [0x576af5], al
call fcn.00470620
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x44c], 0x533de0
test eax, eax
je 0x470604
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
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.004d0217
mov esp, ebp
pop ebp
ret