Function at 0x509b68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x17c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x597010]
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.0052c210
add esp, 0xc
mov dword [esi - 4], 0x11c
mov byte [esi + 0x116], 1
mov esi, edi
sub esp, 0x10
movdqa xmm0, xmmword [0x58e760]
movdqu xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edi, [ebp - 0x138]
push edx
push eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete byte [esi + 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
jne 0x509d32
mov edi, dword [ebp - 0x140]
lea eax, [esi + 0x20]
mov ecx, edi
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.0050a0e3
add esp, 4
test al, al
je 0x509d15
lea eax, [esi + 0x24]
mov ecx, dword [ebp - 0x140]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.0050a0e3
add esp, 4
test al, al
je 0x509d15
mov dword [ebp - 0x180], esi
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 0x509d19
cmp dword [ebp - 0x14c], 1
jne 0x509d19
mov eax, dword [ebp - 0x158]
mov byte [ebp + eax - 0x1c], 0
lea ebx, [ebp - 0x164]
mov dword [ebx], 0xffffffff
lea ecx, [ebp - 0x138]
push esi
mov esi, ecx
call fcn.0042def8
push ebx
push esi
call fcn.004b2238
add esp, 8
mov ebx, eax
cmp byte [ebp - 0x12d], 0
jns 0x509ce4
push dword [ebp - 0x138]
call fcn.00528424
add esp, 4
test bl, bl
je 0x509d19
mov eax, dword [ebp - 0x164]
mov esi, dword [ebp - 0x180]
mov dword [esi + 0x28], eax
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
mov edx, 0x580b5a
push eax
call fcn.0050a0e3
add esp, 4
mov ebx, eax
jmp 0x509d21
xor ebx, ebx
jmp 0x509d21
xor ebx, ebx
mov esi, dword [ebp - 0x180]
test edi, edi
je 0x509d2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebp - 0x138]
mov dword [ebp - 0x188], ebx
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x118], xmm0
movdqu xmmword [ebp - 0x128], xmm0
movdqu xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x108], 0xffffffff
lea ebx, [ebp - 0x1c]
mov ecx, ebx
push 0xc
push 0x58e846
call fcn.00474ed0
push edi
mov edi, ebx
push ebx
call fcn.00509800
add esp, 8
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x509d8e
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
test bl, bl
je 0x50a0cc
mov dword [ebp - 0x180], esi
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]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
test bl, 1
je 0x509dd6
lea ecx, [ebp - 0x1c]
push 6
push str.Debug_
call fcn.0044da4c
test bl, 4
je 0x509dea
lea ecx, [ebp - 0x1c]
push 8
push str.Patched_
call fcn.0044da4c
test bl, 2
je 0x509dfe
lea ecx, [ebp - 0x1c]
push 0xb
push str.Prerelease_
call fcn.0044da4c
test bl, 8
je 0x509e12
lea ecx, [ebp - 0x1c]
push 8
push str.Private_
call fcn.0044da4c
test bl, 0x20
je 0x509e26
lea ecx, [ebp - 0x1c]
push 8
push str.Special_
call fcn.0044da4c
movzx eax, byte [ebp - 0x11]
test al, al
mov ebx, dword [ebp - 0x188]
jns 0x509e37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x509e65
dec eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x14c]
push edx
push eax
push 0
push edi
call fcn.0044dba6
cmp byte [ebp - 0x11], 0
jns 0x509e7b
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
jmp 0x509e7b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x144], eax
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x14c], xmm0
lea edi, [ebp - 0x1c]
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, str.Unknown
cmove edx, eax
mov ecx, edi
push edx
call fcn.0042def8
test bl, bl
je 0x509eb9
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x180]
jmp 0x509ee7
mov eax, dword [ebp - 0x130]
mov ecx, eax
shr ecx, 0x10
mov esi, dword [ebp - 0x180]
mov dword [esi + 0x20], ecx
mov ecx, 0xffff
and eax, ecx
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x12c]
mov edx, eax
shr edx, 0x10
mov dword [esi + 0x28], edx
and eax, ecx
lea ecx, [ebp - 0x158]
push eax
push 0x57d3c7
push ecx
call fcn.00465c20
add esp, 0xc
lea ebx, [esi + 0x10]
cmp byte [esi + 0x1b], 0
jns 0x509f0f
push dword [ebx]
call fcn.00528424
add esp, 4
mov eax, dword [ebp - 0x150]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x158]
movsd qword [ebx], xmm0
movzx eax, byte [ebp - 0x141]
test al, al
jns 0x509f35
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x188], eax
test eax, eax
je 0x509fc9
lea esi, [ebp - 0x17c]
mov ecx, esi
push 0x57cbe0
call fcn.0042def8
lea edx, [ebp - 0x14c]
movzx eax, byte [edx + 0xb]
test al, al
cmovs eax, dword [edx + 4]
cmovs edx, dword [edx]
mov ecx, esi
push eax
push edx
call fcn.0044da4c
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x170]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
xor esi, esi
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [eax + 4], esi
push 1
push 0x57cb07
call fcn.0044da4c
mov ecx, dword [eax + 8]
mov dword [ebp - 0x15c], ecx
movsd xmm0, qword [eax]
movsd qword [ebp - 0x164], xmm0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax], esi
cmp byte [ebp - 0x159], 0
jns 0x509fd5
mov eax, dword [ebp - 0x164]
jmp 0x509fdb
mov dword [ebp - 0x184], 0x57cb06
jmp 0x509fe7
lea eax, [ebp - 0x164]
mov dword [ebp - 0x184], eax
mov esi, dword [ebp - 0x180]
cmp byte [esi + 0x1b], 0
jns 0x509fef
mov ebx, dword [ebx]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp byte [ebp - 0x11], 0
jns 0x50a001
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x184]
push ebx
push edx
push eax
push ecx
push edi
push str._s__u._u._u._s_s
lea eax, [ebp - 0x158]
push eax
call fcn.00465c20
add esp, 0x20
lea edi, [esi + 4]
cmp byte [esi + 0xf], 0
jns 0x50a033
push dword [edi]
call fcn.00528424
add esp, 4
mov eax, dword [ebp - 0x150]
mov dword [edi + 8], eax
xor eax, eax
movq xmm0, qword [ebp - 0x158]
movq qword [edi], xmm0
mov byte [ebp - 0x14d], al
mov byte [ebp - 0x158], al
cmp dword [ebp - 0x188], 0
je 0x50a0a4
cmp byte [ebp - 0x159], 0
jns 0x50a076
push dword [ebp - 0x164]
call fcn.00528424
add esp, 4
cmp byte [ebp - 0x165], 0
jns 0x50a08d
push dword [ebp - 0x170]
call fcn.00528424
add esp, 4
cmp byte [ebp - 0x171], 0
jns 0x50a0a4
push dword [ebp - 0x17c]
call fcn.00528424
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x50a0b5
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
cmp byte [ebp - 0x141], 0
jns 0x50a0cc
push dword [ebp - 0x14c]
call fcn.00528424
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
add esp, 0x17c
pop esi
pop edi
pop ebx
pop ebp
ret 4