Function at 0x4228c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5038dc
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x654], 0x532484
mov dword [ebp - 0x650], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x654]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
lea ecx, [ebp - 0x654]
call esi
lea eax, [ebp - 0x650]
push eax
push 0x20119
push 0
push 0x533470
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422c1e
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x658]
mov dword [ebp - 0x660], 4
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x65c]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x658], 0
jne 0x422a0b
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dx, word [ebp - 0x30]
lea eax, [ebp - 0x30]
xor ecx, ecx
test dx, dx
je 0x422a0b
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4229e3
cmp ecx, 3
jne 0x422a0b
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x658], eax
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x65c], eax
mov eax, dword [ebp - 0x658]
mov dword [0x56c398], eax
mov eax, dword [ebp - 0x65c]
mov dword [0x56c39c], eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x664], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422a78
push ecx
lea edx, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0042b600
add esp, 4
mov dword [0x56c3a0], eax
jmp 0x422a7d
mov eax, dword [0x56c3a0]
cmp dword [0x56c398], 0xa
jne 0x422a97
cmp eax, 0x55f0
jb 0x422a97
mov dword [0x56c398], 0xb
lea eax, [ebp - 0x668]
mov dword [ebp - 0x668], 0x208
push eax
lea eax, [ebp - 0x648]
push eax
push 0
push 0
push str.ReleaseId
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422aec
push ecx
lea edx, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0xffffffff
lea ecx, [ebp - 0x648]
call fcn.0042b600
add esp, 4
mov dword [0x56c4b0], eax
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x66c], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422b7a
mov si, word [ebp - 0x238]
mov eax, 0x56c3a8
test si, si
je 0x422b4f
lea edx, [ebp - 0x238]
movzx ecx, si
sub edx, eax
nop dword [eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x422b40
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x238]
test si, si
je 0x422b6a
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x422b60
movzx eax, word [ebp + ecx*2 - 0x23a]
sub eax, 0x30
mov dword [0x56c3a4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56c388]
cmp eax, dword [ecx + 4]
jle 0x422bd6
push 0x56c388
call fcn.004d3d9f
add esp, 4
cmp dword [0x56c388], 0xffffffff
jne 0x422bd6
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 [0x56c38c], eax
mov byte [ebp - 4], 0
push 0x56c388
call fcn.004d3d4e
add esp, 4
mov esi, dword [0x56c38c]
test esi, esi
je 0x422c12
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x525578]
call esi
test eax, eax
je 0x422c12
cmp dword [ebp - 0x64c], 1
sete al
jmp 0x422c14
xor al, al
mov byte [0x56c4ad], al
call fcn.00422c70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x654], 0x532484
test eax, eax
je 0x422c4a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x650], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret