Function at 0x40cb30
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 0x40cc33
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40ce69
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 0x40cc0f
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffd
xor edi, edi
cmp dword [ebp - 0x18], 4
mov ecx, 0
jne 0x40cc09
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.0040f1c0
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x40cc2b
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40cecd
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 0x40ce75
mov dword [ebp - 0x48], edx
sete dl
test ecx, ecx
setne dh
or dh, dl
lea edx, [ebp - 0x40]
je 0x40ce7c
push eax
push ecx
push edx
call fcn.00543680
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 0x40ccad
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 0x40ce4f
cmp byte [ebp - 0x1d], 0
js 0x40cf1a
mov dword [esi + 0x10], edi
cmp byte [esi + 0x2b], 0
js 0x40d06d
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.0040d090
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 0x40cd5f
push 0x649620
call fcn.00562fa8
add esp, 4
cmp dword [0x649620], 0xffffffff
jne 0x40cd5f
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.00562ff7
add esp, 4
mov ecx, dword [0x64961c]
test ecx, ecx
je 0x40cee0
xor eax, eax
mov word [ebp - 0x28], ax
lea ebx, [ebp - 0x34]
mov word [ebx], ax
call dword [0x63e19c]
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
call ecx
test eax, eax
je 0x40cdbe
movzx eax, word [ebp - 0x28]
cmp eax, 0x14c
jne 0x40ce9d
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.00564782
add esp, 4
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00543680
add esp, 0xc
cmp byte [esi + 0x37], 0
js 0x40ce8b
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 0x40d00d
mov eax, dword [ebp + 0x10]
cmp eax, 0x30
jne 0x40cf38
mov dword [esi + 0x14], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00566245
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.0043ce00
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
jmp 0x40ccbf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cbc2
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 0x40ce81
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.00590170
mov eax, dword [ebp - 0x48]
push dword [eax]
call fcn.00562f60
add esp, 4
jmp 0x40cdf9
test eax, eax
je 0x40cd9d
add eax, 0xfffffe40
cmp eax, 4
ja 0x40ceb9
mov ecx, 0x15
bt ecx, eax
jb 0x40cec3
mov eax, 3
jmp 0x40cd9d
mov eax, 2
jmp 0x40cd9d
lea ecx, [ebp - 0x34]
push ebx
push str.ReleaseId
call fcn.0040f1c0
jmp 0x40cc33
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40cdbe
cmp dword [ebp - 0x28], 0
je 0x40cf0e
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
jmp 0x40cdbe
mov dword [esi + 0x40], 0
jmp 0x40cdbe
push dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
mov esi, ebx
mov ebx, edx
call fcn.00562f60
mov edx, ebx
mov ebx, esi
mov esi, dword [ebp - 0x44]
add esp, 4
jmp 0x40ccc9
mov edx, esi
cmp eax, 0xa3
jle 0x40cf5d
add eax, 0xffffff5c
cmp eax, 2
jae 0x40cfd3
mov esi, edx
mov dword [edx + 0x14], 5
jmp 0x40ce39
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x1b
ja 0x40cf92
mov eax, 0x206f780
bt eax, ecx
jae 0x40cf7d
mov esi, edx
mov dword [edx + 0x14], 2
jmp 0x40ce39
mov eax, 0x8010050
bt eax, ecx
jb 0x40cfe5
cmp ecx, 1
mov esi, edx
je 0x40ce32
lea eax, [ecx - 0x46]
cmp eax, 0xe
ja 0x40cfa4
mov ecx, 0x4005
bt ecx, eax
jb 0x40cfe5
mov eax, dword [ebp + 0x10]
add eax, 0xffffff87
cmp eax, 0x14
ja 0x40cfff
mov ecx, eax
mov eax, 0x180330
bt eax, ecx
jb 0x40cfe5
mov eax, 3
bt eax, ecx
jae 0x40cfff
mov esi, edx
mov dword [edx + 0x14], 4
jmp 0x40ce39
cmp dword [ebp + 0x10], 0xbc
je 0x40cfe5
cmp dword [ebp + 0x10], 0xbf
jne 0x40cfff
mov esi, edx
mov dword [edx + 0x14], 3
jmp 0x40ce39
mov eax, dword [ebp + 8]
test byte [eax + 0x119], 2
je 0x40d04f
mov esi, edx
mov dword [edx + 0x14], 0
jmp 0x40ce39
mov edx, esi
cmp eax, 5
je 0x40d02b
cmp eax, 6
mov esi, edx
je 0x40ce26
mov dword [esi + 0x14], 0
jmp 0x40ce39
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 1
je 0x40cff3
cmp eax, 2
mov eax, dword [ebp + 8]
mov esi, edx
jne 0x40d01f
cmp byte [eax + 0x11a], 1
jne 0x40d05d
cmp word [ecx], 9
jne 0x40d05d
mov esi, edx
mov dword [edx + 0x14], 1
jmp 0x40ce39
cmp word [eax + 0x118], 0
jns 0x40cf6f
jmp 0x40cfff
mov eax, dword [ebp - 0x4c]
push dword [eax]
mov edi, esi
mov esi, ebx
mov ebx, edx
call fcn.00562f60
mov edx, ebx
mov ebx, esi
mov esi, edi
add esp, 4
jmp 0x40ccd6