Function at 0x40d000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [esi], edi
xorps xmm0, xmm0
movups xmmword [esi + 0x20], xmm0
xorps xmm0, xmm0
movsd qword [esi + 0x30], xmm0
mov dword [esi + 0x40], 4
mov dword [esi + 0x44], 3
movsd qword [esi + 0x48], xmm0
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x20], edi
movsd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
lea ebx, [ebp - 0x40]
mov dword [ebx], edi
push ebx
push 1
push edi
push 0x62db10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d103
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40d339
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
xor edi, edi
mov dword [ebp - 0x30], edi
mov ecx, 4
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x18]
mov dword [edx], ecx
lea ecx, [ebp - 0x1c]
mov dword [ecx], edi
push edx
push ecx
push ebx
push edi
push 0x62db6a
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d0df
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffd
xor edi, edi
cmp dword [ebp - 0x18], 4
mov ecx, 0
jne 0x40d0d9
mov ecx, dword [ebp - 0x1c]
cmp eax, 2
cmovb edi, ecx
lea ebx, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ebx
push str.DisplayVersion
call fcn.0040f690
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x40d0fb
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40d39d
lea eax, [esi + 0x20]
mov dword [ebp - 0x4c], eax
lea edx, [esi + 0x2c]
lea ebx, [ebp - 0x28]
movsx eax, byte [ebx + 0xb]
test eax, eax
cmovs eax, dword [ebx + 4]
mov ecx, dword [ebx]
cmovns ecx, ebx
test eax, eax
js 0x40d345
mov dword [ebp - 0x48], edx
sete dl
test ecx, ecx
setne dh
or dh, dl
lea edx, [ebp - 0x40]
je 0x40d34c
push eax
push ecx
push edx
call fcn.00530880
add esp, 0xc
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x39]
mov dword [ebp - 0x15], eax
mov dl, byte [ebp - 0x35]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40d17d
push eax
mov dword [ebp - 0x44], esi
mov esi, ebx
mov ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
test ecx, ecx
jne 0x40d31f
cmp byte [ebp - 0x1d], 0
js 0x40d3ea
mov dword [esi + 0x10], edi
cmp byte [esi + 0x2b], 0
js 0x40d53d
mov dword [esi + 0x20], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x15]
mov dword [esi + 0x24], eax
mov dword [esi + 0x27], ecx
mov byte [esi + 0x2b], dl
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push dword [esi + 0xc]
call fcn.0040d560
add esp, 4
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov eax, dword [0x649620]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40d22f
push 0x649620
call fcn.00562c08
add esp, 4
cmp dword [0x649620], 0xffffffff
jne 0x40d22f
push 0x62339e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64961c], eax
push 0x649620
call fcn.00562c57
add esp, 4
mov ecx, dword [0x64961c]
test ecx, ecx
je 0x40d3b0
xor eax, eax
mov word [ebp - 0x28], ax
lea ebx, [ebp - 0x34]
mov word [ebx], ax
call dword [0x63e1bc]
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
call ecx
test eax, eax
je 0x40d28e
movzx eax, word [ebp - 0x28]
cmp eax, 0x14c
jne 0x40d36d
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
movzx ecx, word [ebp - 0x34]
xor eax, eax
cmp ecx, 0x8664
setne al
inc eax
xor edx, edx
cmp ecx, 0xaa64
cmovne edx, eax
mov dword [esi + 0x44], edx
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x114]
mov dword [esi + 0x18], eax
movzx eax, word [edi + 0x116]
mov dword [esi + 0x1c], eax
lea ebx, [edi + 0x14]
push ebx
call fcn.005643e2
add esp, 4
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00530880
add esp, 0xc
cmp byte [esi + 0x37], 0
js 0x40d35b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [ecx], xmm0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 4]
cmp eax, 0xa
jne 0x40d4dd
mov eax, dword [ebp + 0x10]
cmp eax, 0x30
jne 0x40d408
mov dword [esi + 0x14], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, esi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push 1
mov dword [ebp - 0x44], esi
mov esi, ebx
mov ebx, edx
call fcn.0043c600
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
jmp 0x40d18f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d092
push str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x40d351
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
push 0x622e92
call fcn.0058fdd0
mov eax, dword [ebp - 0x48]
push dword [eax]
call fcn.00562bc0
add esp, 4
jmp 0x40d2c9
test eax, eax
je 0x40d26d
add eax, 0xfffffe40
cmp eax, 4
ja 0x40d389
mov ecx, 0x15
bt ecx, eax
jb 0x40d393
mov eax, 3
jmp 0x40d26d
mov eax, 2
jmp 0x40d26d
lea ecx, [ebp - 0x34]
push ebx
push str.ReleaseId
call fcn.0040f690
jmp 0x40d103
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40d28e
cmp dword [ebp - 0x28], 0
je 0x40d3de
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
jmp 0x40d28e
mov dword [esi + 0x40], 0
jmp 0x40d28e
push dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
mov esi, ebx
mov ebx, edx
call fcn.00562bc0
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
add esp, 4
jmp 0x40d199
mov edx, esi
cmp eax, 0xa3
jle 0x40d42d
add eax, 0xffffff5c
cmp eax, 2
jae 0x40d4a3
mov esi, edx
mov dword [edx + 0x14], 5
jmp 0x40d309
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x1b
ja 0x40d462
mov eax, 0x206f780
bt eax, ecx
jae 0x40d44d
mov esi, edx
mov dword [edx + 0x14], 2
jmp 0x40d309
mov eax, 0x8010050
bt eax, ecx
jb 0x40d4b5
cmp ecx, 1
mov esi, edx
je 0x40d302
lea eax, [ecx - 0x46]
cmp eax, 0xe
ja 0x40d474
mov ecx, 0x4005
bt ecx, eax
jb 0x40d4b5
mov eax, dword [ebp + 0x10]
add eax, 0xffffff87
cmp eax, 0x14
ja 0x40d4cf
mov ecx, eax
mov eax, 0x180330
bt eax, ecx
jb 0x40d4b5
mov eax, 3
bt eax, ecx
jae 0x40d4cf
mov esi, edx
mov dword [edx + 0x14], 4
jmp 0x40d309
cmp dword [ebp + 0x10], 0xbc
je 0x40d4b5
cmp dword [ebp + 0x10], 0xbf
jne 0x40d4cf
mov esi, edx
mov dword [edx + 0x14], 3
jmp 0x40d309
mov eax, dword [ebp + 8]
test byte [eax + 0x119], 2
je 0x40d51f
mov esi, edx
mov dword [edx + 0x14], 0
jmp 0x40d309
mov edx, esi
cmp eax, 5
je 0x40d4fb
cmp eax, 6
mov esi, edx
je 0x40d2f6
mov dword [esi + 0x14], 0
jmp 0x40d309
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 1
je 0x40d4c3
cmp eax, 2
mov eax, dword [ebp + 8]
mov esi, edx
jne 0x40d4ef
cmp byte [eax + 0x11a], 1
jne 0x40d52d
cmp word [ecx], 9
jne 0x40d52d
mov esi, edx
mov dword [edx + 0x14], 1
jmp 0x40d309
cmp word [eax + 0x118], 0
jns 0x40d43f
jmp 0x40d4cf
mov eax, dword [ebp - 0x4c]
push dword [eax]
mov edi, esi
mov esi, ebx
mov ebx, edx
call fcn.00562bc0
mov edx, ebx
mov ebx, esi
mov esi, edi
add esp, 4
jmp 0x40d1a6