Function at 0x1000aa50
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x338
push ebx
push ebp
push esi
push edi
mov ecx, 0x89
xor eax, eax
lea edi, [esp + 0x124]
mov dword [esp + 0x120], 0
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_ManagementARPCache_
lea edi, [esp + 0x1c]
mov ebx, dword [esp + 0x34c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x24]
push 0
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0x228
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ab1b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x120]
push edx
push eax
push 0
push 0
push str.SlowInfoCache
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000ab1b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x120]
cmp edx, eax
jne 0x1000ab1b
mov esi, 1
jmp 0x1000ab1d
xor esi, esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000ac8c
mov eax, dword [esp + 0x124]
test eax, eax
je 0x1000ab97
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, eax
mov eax, dword [esp + 0x358]
add esp, 4
inc edx
cmp eax, edx
jb 0x1000ac8c
push 0
push 0
push eax
mov eax, dword [esp + 0x35c]
push eax
lea ecx, [esp + 0x14c]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [0x1004c1c0]
test eax, eax
je 0x1000ac8c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x338
ret
lea edx, [esp + 0x1c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000ac8c
cmp eax, 0x104
ja 0x1000ac8c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
cmp eax, 0x104
jae 0x1000ac8c
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x10040a38]
repne scasb al, byte es:[edi]
mov ecx, dword [str.Installer_]
mov eax, dword [0x10040a3c]
dec edi
mov dword [edi], ecx
or ecx, 0xffffffff
mov dword [edi + 4], edx
lea edx, [esp + 0x1c]
mov dword [edi + 8], eax
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x354]
mov ecx, dword [esp + 0x358]
push esi
push ecx
push 0
lea edx, [esp + 0x2c]
push str.ARPPRODUCTICON.exe
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x1000ac8c
push 0x10
push 0x10
push 0x10
push 1
push esi
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, dword [esp + 0x358]
test eax, eax
mov dword [ecx], eax
je 0x1000ac8c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x338
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x338
ret