Function at 0x10038640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10116420
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push esi
push edi
lea edi, [ebp - 0xac]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10159140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.10031df0
lea ecx, [ebp - 0x3c]
call fcn.1002ba00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10038170
call fcn.1002dc00
movzx ecx, al
test ecx, ecx
je 0x10038707
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.1003a390
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xac]
call fcn.1002c520
push eax
push str.Looking_for_architecture_specific_registry_value_in__s.
call fcn.1002e1a0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.10011040
mov dword [ebp - 0x70], 0
mov esi, esp
lea ecx, [ebp - 0x70]
push ecx
push 0x20219
push 0
lea ecx, [ebp - 0x3c]
call fcn.1002c520
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.1007e7c0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x1003878e
cmp dword [ebp - 0x78], 2
jne 0x1003875c
lea ecx, [ebp - 0x3c]
call fcn.1002c520
push eax
push str.The_registry_key___s__does_not_exist.
call fcn.1002e1a0
add esp, 8
jmp 0x1003876d
mov eax, dword [ebp - 0x78]
push eax
push str.Failed_to_open_the_registry_key._Error_code:_0x_X
call fcn.1002e1a0
add esp, 8
mov byte [ebp - 0x9d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10011040
mov al, byte [ebp - 0x9d]
jmp 0x1003891e
mov dword [ebp - 0x80], 0
mov esi, esp
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 2
mov edx, dword [ebp - 0x48]
push edx
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp esi, esp
call fcn.1007e7c0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x100387c7
cmp dword [ebp - 0x80], 0
jne 0x1003880c
mov ecx, dword [ebp - 0x78]
push ecx
push str.Failed_to_get_the_size_of_the_install_location_registry_value_or_its_empty._Error_code:_0x_X
call fcn.1002e1a0
add esp, 8
mov esi, esp
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.1007e7c0
mov byte [ebp - 0x9e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10011040
mov al, byte [ebp - 0x9e]
jmp 0x1003891e
lea ecx, [ebp - 0x9f]
call fcn.1002b960
push eax
mov eax, dword [ebp - 0x80]
shr eax, 1
push eax
lea ecx, [ebp - 0x98]
call fcn.1002d050
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x80]
push ecx
push 0
lea ecx, [ebp - 0x98]
call fcn.1002d210
push eax
push 0
push 2
mov edx, dword [ebp - 0x48]
push edx
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp esi, esp
call fcn.1007e7c0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x100388b6
mov ecx, dword [ebp - 0x78]
push ecx
push str.Failed_to_get_the_value_of_the_install_location_registry_value._Error_code:_0x_X
call fcn.1002e1a0
add esp, 8
mov esi, esp
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.1007e7c0
mov byte [ebp - 0xa0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.1002d170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10011040
mov al, byte [ebp - 0xa0]
jmp 0x1003891e
lea ecx, [ebp - 0x98]
call fcn.1002d560
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10031c10
mov esi, esp
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.1007e7c0
mov ecx, dword [ebp + 0xc]
call fcn.1002c520
push eax
push str.Found_registered_install_location__s.
call fcn.1002e1a0
add esp, 8
mov byte [ebp - 0xa1], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.1002d170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10011040
mov al, byte [ebp - 0xa1]
push edx
mov ecx, ebp
push eax
lea edx, [0x1003895c]
call fcn.1007e760
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007e0c0
add esp, 0xac
cmp ebp, esp
call fcn.1007e7c0
mov esp, ebp
pop ebp
ret 8