Function at 0x407090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441e30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x120
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.00417c12
add esp, 4
push 0x11c
lea esi, [eax + 4]
push ebx
push esi
mov dword [ebp - 0x2c], eax
call fcn.0042a570
add esp, 0xc
push esi
mov dword [esi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
mov dword [ebp - 0x50], edi
cmp edi, ebx
jne 0x407113
push 0x11c
push ebx
push esi
call fcn.0042a570
add esp, 0xc
cmp edi, ebx
mov ecx, dword [ebp - 0x2c]
setne al
mov byte [ecx], al
cmp al, bl
je 0x407715
call fcn.00417cef
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40713d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
call fcn.00417cef
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40716a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
call fcn.00417cef
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407197
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
call fcn.00417cef
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4071c4
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
call fcn.00401c70
mov byte [ebp - 4], 5
push 0x449500
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
call fcn.00401a40
push 0x449508
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00401a40
push str.kernel32
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40723d
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x38], ebx
cmp esi, ebx
je 0x407235
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x38], edx
jmp 0x407240
mov dword [ebp - 0x38], ebx
push str.Windows_10
lea ecx, [ebp - 0x3c]
call fcn.00401a40
push str.Windows_11
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00401a40
mov byte [ebp - 4], 9
call fcn.00417cef
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40727c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x38]
dec edx
neg edx
sbb edx, edx
and edx, 0xffffff00
lea ecx, [ebp - 0x1c]
push ecx
add edx, 0x100
or edx, 0x20019
push edx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x407570
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
push 0x44959c
push eax
mov dword [ebp - 0x14], ebx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40733d
cmp dword [ebp - 0x18], 1
jne 0x40733d
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f10
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ebx
push 0x44959c
push eax
call esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.00426c4d
add esp, 8
cmp eax, ebx
jl 0x407440
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx - 8]
jg 0x407440
xor edx, edx
mov dword [ecx - 0xc], eax
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4073dc
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], ebx
jl 0x4073dc
push eax
mov edx, ecx
push edx
call fcn.00427b7a
add esp, 8
cmp eax, ebx
je 0x4073dc
sub eax, dword [ebp - 0x20]
sar eax, 1
cmp eax, 0xffffffff
je 0x4073dc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push str.CurrentBuildNumber
push edx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4073dc
cmp dword [ebp - 0x18], 1
jne 0x4073dc
push eax
lea ecx, [ebp - 0x30]
call fcn.00401f10
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ebx
push str.CurrentBuildNumber
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00408060
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004278a0
add esp, 4
cmp eax, 0x55f0
jl 0x4073dc
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
push edx
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00407bb0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push str.DisplayVersion
push ecx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40744a
cmp dword [ebp - 0x18], 1
jne 0x40744a
push eax
lea ecx, [ebp - 0x24]
call fcn.00401f10
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.DisplayVersion
push ecx
call esi
mov edi, dword [ebp - 0x24]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00426c4d
add esp, 8
cmp eax, ebx
jl 0x407440
cmp eax, dword [edi - 8]
jg 0x407440
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
jmp 0x4074ac
push 0x80070057
call fcn.00401090
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push str.ReleaseId
push edx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4074ac
cmp dword [ebp - 0x18], 1
jne 0x4074ac
push eax
lea ecx, [ebp - 0x24]
call fcn.00401f10
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ebx
push str.ReleaseId
push eax
call esi
mov edi, dword [ebp - 0x24]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00426c4d
add esp, 8
cmp eax, ebx
jl 0x407440
cmp eax, dword [edi - 8]
jg 0x407440
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push str.CurrentBuild
push ecx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x407519
cmp dword [ebp - 0x18], 1
jne 0x407519
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f10
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.CurrentBuild
push ecx
call esi
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.00426c4d
add esp, 8
cmp eax, ebx
jl 0x407440
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx - 8]
jg 0x407440
xor edx, edx
mov dword [ecx - 0xc], eax
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 0x44962c
push edx
call esi
cmp dword [ebp - 0x14], ebx
je 0x407566
cmp dword [ebp - 0x18], 4
jne 0x407566
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push 0x44962c
push eax
call esi
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x34]
push 0x449400
push edx
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x407580
lea edx, [ebp - 0x20]
push edx
call fcn.00401ea0
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x407590
lea eax, [ebp - 0x24]
push eax
call fcn.00401ea0
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x4075ab
cmp dword [ebp - 0x38], ebx
jne 0x4075a2
lea edx, [ebp - 0x4c]
push edx
jmp 0x4075a6
lea eax, [ebp - 0x48]
push eax
call fcn.00401ea0
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4075be
mov edx, dword [ebp - 0x2c]
add edx, 0x18
push edx
call fcn.00401bc0
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4075ce
lea eax, [ebp - 0x28]
push eax
call fcn.00401ea0
mov ecx, dword [ebp + 0x1c]
cmp ecx, ebx
je 0x4075de
lea edx, [ebp - 0x34]
push edx
call fcn.00401ea0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40766a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40768d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00417c4c
add esp, 4
jmp 0x40773b
cmp dword [ebp - 0x50], ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18