Function at 0x40d210
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 + 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 eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 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 0x62e930
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d30d
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40d53d
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 0x62e98a
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d2e9
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffd
xor edi, edi
cmp dword [ebp - 0x18], 4
mov ecx, 0
jne 0x40d2e3
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.004136e0
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x40d305
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40d5a1
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 0x40d550
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x40]
je 0x40d340
test ecx, ecx
je 0x40d549
push eax
push ecx
push edx
call fcn.00530a10
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 0x40d381
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 0x40d523
cmp byte [ebp - 0x1d], 0
js 0x40d672
mov dword [esi + 0x10], edi
cmp byte [esi + 0x2b], 0
js 0x40d73d
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.0040d760
add esp, 4
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov eax, dword [0x649610]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40d433
push 0x649610
call fcn.00564ee8
add esp, 4
cmp dword [0x649610], 0xffffffff
jne 0x40d433
push 0x62479e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64960c], eax
push 0x649610
call fcn.00564f37
add esp, 4
mov ecx, dword [0x64960c]
test ecx, ecx
je 0x40d5b4
xor eax, eax
mov word [ebp - 0x28], ax
lea ebx, [ebp - 0x34]
mov word [ebx], ax
call dword [0x63e64c]
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
call ecx
test eax, eax
je 0x40d492
movzx eax, word [ebp - 0x28]
cmp eax, 0x14c
jne 0x40d571
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.005666c2
add esp, 4
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00530a10
add esp, 0xc
cmp byte [esi + 0x37], 0
js 0x40d55f
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 0x40d5f0
mov eax, dword [ebp + 0x10]
cmp eax, 0x30
jne 0x40d690
mov dword [esi + 0x14], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
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.0043d7b0
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
jmp 0x40d393
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d29c
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x40d555
push str....._third_partylibc_srcinclude_string_view:314:_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
push 0x624173
call fcn.00591ed0
mov eax, dword [ebp - 0x48]
push dword [eax]
call fcn.00564ea0
add esp, 4
jmp 0x40d4cd
test eax, eax
je 0x40d471
add eax, 0xfffffe40
cmp eax, 4
ja 0x40d58d
mov ecx, 0x15
bt ecx, eax
jb 0x40d597
mov eax, 3
jmp 0x40d471
mov eax, 2
jmp 0x40d471
lea ecx, [ebp - 0x34]
push ebx
push str.ReleaseId
call fcn.004136e0
jmp 0x40d30d
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40d492
cmp dword [ebp - 0x28], 0
je 0x40d5e4
xor eax, eax
inc eax
mov ecx, esi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
jmp 0x40d492
mov dword [esi + 0x40], 0
jmp 0x40d492
mov edx, esi
cmp eax, 5
je 0x40d60e
cmp eax, 6
mov esi, edx
je 0x40d4fa
mov dword [esi + 0x14], 0
jmp 0x40d50d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 1
je 0x40d640
cmp eax, 2
mov eax, dword [ebp + 8]
mov esi, edx
jne 0x40d602
cmp byte [eax + 0x11a], 1
jne 0x40d65a
cmp word [ecx], 9
jne 0x40d65a
mov esi, edx
mov dword [edx + 0x14], 1
jmp 0x40d50d
mov eax, dword [ebp + 8]
test byte [eax + 0x119], 2
je 0x40d632
mov esi, edx
mov dword [edx + 0x14], 0
jmp 0x40d50d
cmp word [eax + 0x118], 0
js 0x40d64c
mov esi, edx
mov dword [edx + 0x14], 2
jmp 0x40d50d
push dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
mov esi, ebx
mov ebx, edx
call fcn.00564ea0
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
add esp, 4
jmp 0x40d39d
mov edi, esi
cmp eax, 0x78
jle 0x40d6b7
lea ecx, [eax - 0x79]
cmp ecx, 9
jbe 0x40d709
add eax, 0xffffff5c
cmp eax, 2
jae 0x40d6fb
mov esi, edi
mov dword [edi + 0x14], 5
jmp 0x40d50d
cmp eax, 0x1b
ja 0x40d6e9
mov ecx, 0x206f780
bt ecx, eax
jae 0x40d6d4
mov esi, edi
mov dword [edi + 0x14], 2
jmp 0x40d50d
mov ecx, 0x8010050
bt ecx, eax
jb 0x40d713
cmp eax, 1
mov esi, edi
je 0x40d506
add eax, 0xffffffba
cmp eax, 0xe
ja 0x40d6fb
mov ecx, 0x4005
bt ecx, eax
jb 0x40d713
mov esi, edi
mov dword [edi + 0x14], 0
jmp 0x40d50d
mov edx, 0x330
bt edx, ecx
jae 0x40d721
mov esi, edi
mov dword [edi + 0x14], 3
jmp 0x40d50d
mov edx, 3
bt edx, ecx
jae 0x40d69f
mov esi, edi
mov dword [edi + 0x14], 4
jmp 0x40d50d
mov eax, dword [ebp - 0x4c]
push dword [eax]
mov edi, esi
mov esi, ebx
mov ebx, edx
call fcn.00564ea0
mov edx, ebx
mov ebx, esi
mov esi, edi
add esp, 4
jmp 0x40d3aa