Function at 0x435750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587339
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x43579a
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 4], ebx
mov edi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4359b9
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4357f5
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x10
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
sub eax, 8
or eax, ecx
jge 0x43582a
push 8
lea ecx, [ebp - 0x18]
call fcn.00401de0
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
push ebx
push str.CurrentVersion
push edx
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005581e8
add esp, 8
cmp eax, ebx
jl 0x4359ce
cmp eax, dword [esi - 8]
jg 0x4359ce
lea edx, [ebp - 0x18]
xor ecx, ecx
push 0x5bff64
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.00422df0
add esp, 8
test al, al
je 0x435890
mov ecx, dword [ebp + 8]
push str.Windows7
call fcn.004019e0
jmp 0x43598f
lea eax, [ebp - 0x18]
push 0x5bff6c
push eax
call fcn.00422df0
add esp, 8
test al, al
je 0x4358b7
mov ecx, dword [ebp + 8]
push str.Windows8
call fcn.004019e0
jmp 0x43598f
lea ecx, [ebp - 0x18]
push 0x5bff74
push ecx
call fcn.00422df0
add esp, 8
test al, al
je 0x43598f
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
mov dword [ebp - 0x28], ebx
push str.CurrentMajorVersionNumber
mov ebx, 4
push ecx
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x435908
mov ecx, dword [ebp + 8]
push str.Windows8.1
call fcn.004019e0
jmp 0x43598f
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push ecx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x43598f
cmp dword [ebp - 0x20], eax
jne 0x43598f
lea ecx, [ebp - 0x1c]
call fcn.00401c70
lea edx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 2
push 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x20
call fcn.00401e30
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push str.ReleaseId
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00405fb0
mov edi, dword [ebp + 8]
push str.Windows10.
mov ecx, edi
call fcn.004019e0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.00406030
lea ecx, [ebp - 0x1c]
call fcn.00405900
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4359b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3