Function at 0x1000c7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ca5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x1001b01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x5c], eax
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x1000c802
mov edx, dword [eax]
xor eax, eax
xorps xmm0, xmm0
mov word [edx], ax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000be80
cmp dword [0x1001bb7c], 0
mov esi, dword [ebp - 0x58]
je 0x1000c89d
push esi
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x44]
call fcn.1000c490
cmp dword [eax + 0x14], 8
jb 0x1000c853
mov eax, dword [eax]
push eax
push str.Looking_for_architecture_specific_registry_value_in__s.
call fcn.100092b0
mov ecx, dword [ebp - 0x30]
add esp, 8
cmp ecx, 8
jb 0x1000c89d
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c893
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000c893
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100092b0
add esp, 8
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x4c]
push ecx
push 0x20219
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000c900
cmp eax, 2
jne 0x1000c8ec
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ecx, str.The_registry_key___s__does_not_exist.
cmovae eax, dword [ebp - 0x2c]
push eax
push ecx
call fcn.100092b0
add esp, 8
jmp 0x1000ca75
mov ecx, str.Failed_to_open_the_registry_key._Error_code:_0x_X
push eax
push ecx
call fcn.100092b0
add esp, 8
jmp 0x1000ca75
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push 0
push 0
push 2
push esi
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
test ecx, ecx
jne 0x1000ca5e
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1000ca5e
mov esi, ecx
shr eax, 1
mov edi, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
je 0x1000c9a8
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x1000c978
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1000cad6
push eax
call fcn.100092b0
add esp, 4
test eax, eax
je 0x1000caa5
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x1000c98b
test edi, edi
je 0x1000c989
push edi
call fcn.100092b0
add esp, 4
mov esi, eax
jmp 0x1000c98b
xor esi, esi
mov ecx, dword [ebp - 0x50]
add edi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
lea eax, [ecx + ecx]
push eax
push 0
push esi
call fcn.10010610
add esp, 0xc
mov dword [ebp - 0x34], edi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 2
push dword [ebp - 0x58]
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1000c9e4
push eax
push str.Failed_to_get_the_value_of_the_install_location_registry_value._Error_code:_0x_X
call fcn.100092b0
add esp, 8
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x45], 0
jmp 0x1000ca2f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c9f0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x5c]
push esi
call fcn.100092b0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], 8
jb 0x1000ca1d
mov eax, dword [eax]
push eax
push str.Found_registered_install_location__s.
call fcn.100092b0
add esp, 8
mov byte [ebp - 0x45], 1
test esi, esi
je 0x1000ca79
sub edi, esi
mov eax, esi
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x1000ca52
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000caa5
push edi
push esi
call fcn.100092b0
add esp, 8
jmp 0x1000ca79
push ecx
push str.Failed_to_get_the_size_of_the_install_location_registry_value_or_its_empty._Error_code:_0x_X
call fcn.100092b0
add esp, 8
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x45], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x1000cab5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000caab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000caab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100092b0
add esp, 8
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000eb4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100092b0
int3