Function at 0x40c080
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 [0x646040]
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 0x62fb10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c183
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40c3b9
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 0x62fb6a
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c15f
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffd
xor edi, edi
cmp dword [ebp - 0x18], 4
mov ecx, 0
jne 0x40c159
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.00424e80
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x40c17b
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40c41d
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 0x40c3c5
mov dword [ebp - 0x48], edx
sete dl
test ecx, ecx
setne dh
or dh, dl
lea edx, [ebp - 0x40]
je 0x40c3cc
push eax
push ecx
push edx
call fcn.005426d0
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 0x40c1fd
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 0x40c39f
cmp byte [ebp - 0x1d], 0
js 0x40c46a
mov dword [esi + 0x10], edi
cmp byte [esi + 0x2b], 0
js 0x40c5bd
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.0040c5e0
add esp, 4
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov eax, dword [0x64b620]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40c2af
push 0x64b620
call fcn.00565714
add esp, 4
cmp dword [0x64b620], 0xffffffff
jne 0x40c2af
push 0x62539e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b61c], eax
push 0x64b620
call fcn.00565763
add esp, 4
mov ecx, dword [0x64b61c]
test ecx, ecx
je 0x40c430
xor eax, eax
mov word [ebp - 0x28], ax
lea ebx, [ebp - 0x34]
mov word [ebx], ax
call dword [0x6401dc]
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
call ecx
test eax, eax
je 0x40c30e
movzx eax, word [ebp - 0x28]
cmp eax, 0x14c
jne 0x40c3ed
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.00565872
add esp, 4
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.005426d0
add esp, 0xc
cmp byte [esi + 0x37], 0
js 0x40c3db
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 0x40c55d
mov eax, dword [ebp + 0x10]
cmp eax, 0x30
jne 0x40c488
mov dword [esi + 0x14], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
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.00425470
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
jmp 0x40c20f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c112
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 0x40c3d1
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 0x624e92
call fcn.005912b0
mov eax, dword [ebp - 0x48]
push dword [eax]
call fcn.00564050
add esp, 4
jmp 0x40c349
test eax, eax
je 0x40c2ed
add eax, 0xfffffe40
cmp eax, 4
ja 0x40c409
mov ecx, 0x15
bt ecx, eax
jb 0x40c413
mov eax, 3
jmp 0x40c2ed
mov eax, 2
jmp 0x40c2ed
lea ecx, [ebp - 0x34]
push ebx
push str.ReleaseId
call fcn.00424e80
jmp 0x40c183
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40c30e
cmp dword [ebp - 0x28], 0
je 0x40c45e
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
jmp 0x40c30e
mov dword [esi + 0x40], 0
jmp 0x40c30e
push dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
mov esi, ebx
mov ebx, edx
call fcn.00564050
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
add esp, 4
jmp 0x40c219
mov edx, esi
cmp eax, 0xa3
jle 0x40c4ad
add eax, 0xffffff5c
cmp eax, 2
jae 0x40c523
mov esi, edx
mov dword [edx + 0x14], 5
jmp 0x40c389
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x1b
ja 0x40c4e2
mov eax, 0x206f780
bt eax, ecx
jae 0x40c4cd
mov esi, edx
mov dword [edx + 0x14], 2
jmp 0x40c389
mov eax, 0x8010050
bt eax, ecx
jb 0x40c535
cmp ecx, 1
mov esi, edx
je 0x40c382
lea eax, [ecx - 0x46]
cmp eax, 0xe
ja 0x40c4f4
mov ecx, 0x4005
bt ecx, eax
jb 0x40c535
mov eax, dword [ebp + 0x10]
add eax, 0xffffff87
cmp eax, 0x14
ja 0x40c54f
mov ecx, eax
mov eax, 0x180330
bt eax, ecx
jb 0x40c535
mov eax, 3
bt eax, ecx
jae 0x40c54f
mov esi, edx
mov dword [edx + 0x14], 4
jmp 0x40c389
cmp dword [ebp + 0x10], 0xbc
je 0x40c535
cmp dword [ebp + 0x10], 0xbf
jne 0x40c54f
mov esi, edx
mov dword [edx + 0x14], 3
jmp 0x40c389
mov eax, dword [ebp + 8]
test byte [eax + 0x119], 2
je 0x40c59f
mov esi, edx
mov dword [edx + 0x14], 0
jmp 0x40c389
mov edx, esi
cmp eax, 5
je 0x40c57b
cmp eax, 6
mov esi, edx
je 0x40c376
mov dword [esi + 0x14], 0
jmp 0x40c389
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 1
je 0x40c543
cmp eax, 2
mov eax, dword [ebp + 8]
mov esi, edx
jne 0x40c56f
cmp byte [eax + 0x11a], 1
jne 0x40c5ad
cmp word [ecx], 9
jne 0x40c5ad
mov esi, edx
mov dword [edx + 0x14], 1
jmp 0x40c389
cmp word [eax + 0x118], 0
jns 0x40c4bf
jmp 0x40c54f
mov eax, dword [ebp - 0x4c]
push dword [eax]
mov edi, esi
mov esi, ebx
mov ebx, edx
call fcn.00564050
mov edx, ebx
mov ebx, esi
mov esi, edi
add esp, 4
jmp 0x40c226