Function at 0x5afe80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x64a040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edi + 0x1c], eax
lea esi, [ebp - 0x134]
xor ebx, ebx
push 0x118
push ebx
push esi
call fcn.00582870
add esp, 0xc
mov dword [esi - 4], 0x11c
mov byte [esi + 0x116], 1
mov esi, edi
sub esp, 0x10
movdqa xmm0, xmmword [0x6416e0]
movdqu xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea ecx, [ebp - 0x138]
push edx
push eax
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete byte [edi + 0x2c]
mov dword [ebp - 0x13c], ebx
lea eax, [ebp - 0x140]
mov dword [eax], 0xffffffff
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0x184], edi
jne 0x5b026c
mov edi, dword [ebp - 0x140]
lea eax, [esi + 0x20]
mov ecx, edi
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.004356a0
add esp, 4
test al, al
je 0x5b0265
lea eax, [esi + 0x24]
mov ecx, dword [ebp - 0x140]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.004356a0
add esp, 4
test al, al
je 0x5b0265
mov dword [ebp - 0x180], edi
mov eax, dword [ebp - 0x140]
xor ecx, ecx
dec ecx
lea esi, [ebp - 0x1c]
mov dword [esi + 7], ecx
mov dword [esi + 4], ecx
mov dword [esi], ecx
lea edx, [ebp - 0x14c]
mov dword [edx], ecx
lea ecx, [ebp - 0x158]
mov dword [ecx], 0xa
push ecx
push esi
push edx
push 0
push str.CurrentBuildNumber
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b025e
cmp dword [ebp - 0x14c], 1
jne 0x5b025e
mov eax, dword [ebp - 0x158]
mov byte [ebp + eax - 0x1c], 0
lea ebx, [ebp - 0x164]
mov dword [ebx], 0xffffffff
lea edi, [ebp - 0x138]
mov ecx, edi
push esi
call fcn.00547e70
push ebx
push edi
call fcn.00418170
add esp, 8
mov ebx, eax
cmp byte [ebp - 0x12d], 0
js 0x5b02c9
test bl, bl
mov ecx, dword [ebp - 0x184]
je 0x5b025e
mov eax, dword [ebp - 0x164]
mov dword [ecx + 0x28], eax
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
mov edx, 0x63493a
push eax
call fcn.004356a0
add esp, 4
mov edi, dword [ebp - 0x180]
test edi, edi
mov dword [ebp - 0x180], eax
je 0x5b0044
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x118], xmm0
movdqu xmmword [ebp - 0x128], xmm0
movdqu xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x108], 0xffffffff
lea edi, [ebp - 0x1c]
mov ecx, edi
push 0xc
push 0x6417b2
call fcn.0056adc0
lea eax, [ebp - 0x138]
push eax
push edi
call fcn.005b04a0
add esp, 8
mov ebx, eax
mov ecx, edi
call fcn.0053cc40
test bl, bl
je 0x5b0247
xor esi, esi
dec esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
mov ebx, dword [ebp - 0x11c]
pxor xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
test bl, 1
jne 0x5b0330
test bl, 4
jne 0x5b0344
test bl, 2
jne 0x5b0358
test bl, 8
jne 0x5b036c
test bl, 0x20
jne 0x5b0380
movsx eax, byte [ebp - 0x11]
test eax, eax
mov ebx, dword [ebp - 0x180]
jns 0x5b0105
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x5b0463
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x144], eax
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x14c], xmm0
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
xor esi, dword [ebp - 0x118]
test esi, 0x40004
mov eax, str.Windows_NT
mov edx, 0x62d270
cmove edx, eax
mov ecx, edi
push edx
call fcn.00547e70
test bl, bl
je 0x5b0394
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x184]
lea ecx, [ebp - 0x158]
push eax
push 0x62d52d
push ecx
call fcn.00538cf0
add esp, 0xc
lea ebx, [esi + 0x10]
cmp byte [esi + 0x1b], 0
js 0x5b02dc
mov eax, dword [ebp - 0x150]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x158]
mov dword [ebp - 0x180], ebx
movsd qword [ebx], xmm0
movsx ebx, byte [ebp - 0x141]
test ebx, ebx
jns 0x5b01ae
mov ebx, dword [ebp - 0x148]
mov eax, 0x62ac20
test ebx, ebx
jne 0x5b03c8
cmp byte [esi + 0x1b], 0
js 0x5b02eb
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov esi, dword [esi + 0x24]
cmp byte [ebp - 0x11], 0
jns 0x5b01d7
mov edi, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x180]
push edx
push esi
push ecx
push edi
push str._s__u._u._u._s_s
lea eax, [ebp - 0x158]
push eax
call fcn.00538cf0
add esp, 0x20
mov eax, dword [ebp - 0x184]
lea esi, [eax + 4]
cmp byte [eax + 0xf], 0
js 0x5b02fe
mov eax, dword [ebp - 0x150]
mov dword [esi + 8], eax
xor eax, eax
movq xmm0, qword [ebp - 0x158]
movq qword [esi], xmm0
mov byte [ebp - 0x14d], al
mov byte [ebp - 0x158], al
test ebx, ebx
jne 0x5b027b
cmp byte [ebp - 0x11], 0
js 0x5b030d
cmp byte [ebp - 0x141], 0
js 0x5b031d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor eax, eax
jmp 0x5b002d
xor eax, eax
jmp 0x5b0033
mov dword [ebp - 0x180], 0
jmp 0x5b0044
cmp byte [ebp - 0x159], 0
jns 0x5b0292
push dword [ebp - 0x164]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x165], 0
jns 0x5b02a9
push dword [ebp - 0x170]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x171], 0
jns 0x5b0230
push dword [ebp - 0x17c]
call fcn.0057dc2b
add esp, 4
jmp 0x5b0230
push dword [ebp - 0x138]
call fcn.0057dc2b
add esp, 4
jmp 0x5afffc
push dword [ebx]
call fcn.0057dc2b
add esp, 4
jmp 0x5b0182
mov ecx, dword [ebp - 0x180]
mov ecx, dword [ecx]
mov dword [ebp - 0x180], ecx
jmp 0x5b01c5
push dword [esi]
call fcn.0057dc2b
add esp, 4
jmp 0x5b0209
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
jmp 0x5b023a
push dword [ebp - 0x14c]
call fcn.0057dc2b
add esp, 4
jmp 0x5b0247
lea ecx, [ebp - 0x1c]
push 6
push str.Debug_
call fcn.00520160
jmp 0x5b00d0
lea ecx, [ebp - 0x1c]
push 8
push str.Patched_
call fcn.00520160
jmp 0x5b00d9
lea ecx, [ebp - 0x1c]
push 0xb
push str.Prerelease_
call fcn.00520160
jmp 0x5b00e2
lea ecx, [ebp - 0x1c]
push 8
push str.Private_
call fcn.00520160
jmp 0x5b00eb
lea ecx, [ebp - 0x1c]
push 8
push str.Special_
call fcn.00520160
jmp 0x5b00f4
mov eax, dword [ebp - 0x130]
mov ecx, eax
shr ecx, 0x10
mov esi, dword [ebp - 0x184]
mov dword [esi + 0x20], ecx
and eax, 0xffff
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x12c]
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x28], ecx
and eax, 0xffff
jmp 0x5b0160
lea esi, [ebp - 0x17c]
mov ecx, esi
push 0x62b6c5
call fcn.00547e70
lea eax, [ebp - 0x14c]
movsx edx, byte [eax + 0xb]
test edx, edx
cmovs edx, dword [eax + 4]
cmovs eax, dword [eax]
mov ecx, esi
push edx
push eax
call fcn.00520160
movsd xmm0, qword [eax]
lea ecx, [ebp - 0x170]
movsd qword [ecx], xmm0
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
xor esi, esi
mov dword [eax + 8], esi
xorps xmm0, xmm0
movsd qword [eax], xmm0
push 1
push 0x62b0d0
call fcn.00520160
movsd xmm0, qword [eax]
movsd qword [ebp - 0x164], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x15c], ecx
mov dword [eax + 8], esi
xorps xmm0, xmm0
movsd qword [eax], xmm0
cmp byte [ebp - 0x159], 0
js 0x5b0452
lea eax, [ebp - 0x164]
jmp 0x5b0458
mov eax, dword [ebp - 0x164]
mov esi, dword [ebp - 0x184]
jmp 0x5b01bb
dec eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x14c]
push edx
push eax
push 0
push edi
call fcn.00556980
cmp byte [ebp - 0x11], 0
jns 0x5b0123
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
jmp 0x5b0123