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

Disassembly:
push 0xffffffffffffffff
push 0x100bc011
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100e87b8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.1007ecd0
lea eax, [esp + 0x24]
push eax
mov edi, 1
push 0x209
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], ebx
call fcn.10021bf0
mov byte [esp + 0x44], 2
call fcn.1008c320
test eax, eax
mov esi, dword [esp + 0x50]
je 0x1008d25c
mov eax, esi
sub eax, 0x24
je 0x1008d1db
sub eax, edi
je 0x1008d1b1
sub eax, edi
jne 0x1008d25c
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.1007f440
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 3
call fcn.1007ee00
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008d106
mov esi, dword [esp + 0x4c]
push 0x100c0988
mov ecx, esi
call fcn.1007f440
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.1007ece0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 1
call fcn.1001fec0
jmp 0x1008d325
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x208
call fcn.1001b300
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ProgramFilesDir
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x1008d170
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x208
call fcn.1001b300
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ProgramFilesPath
push ecx
call edi
mov esi, eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1008d19c
mov esi, dword [esp + 0x4c]
push 0x100c0988
mov ecx, esi
call fcn.1007f440
mov dword [esp + 0x1c], 1
jmp 0x1008d0e5
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.1007ece0
mov edi, 1
jmp 0x1008d203
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1008d1c3
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x1008d1cd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1008d203
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1008d1ed
mov edx, dword [esp + 0x34]
sub edx, eax
sar edx, 1
jne 0x1008d1f7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1008d215
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x1008d21f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.1007f540
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.1007f490
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
je 0x1008d319
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 1
push ecx
jmp 0x1008d30e
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x1008d2e4
lea eax, [esp + 0x24]
push eax
push esi
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x1008d2cf
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1008d296
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x1008d2a0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1008d2cf
push ebx
lea ecx, [esp + 0x30]
call fcn.1001b300
push eax
lea ecx, [esp + 0x14]
call fcn.1007f540
push 0x5c
lea ecx, [esp + 0x14]
call fcn.1007eee0
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x1008d2e4
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1007f490
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
je 0x1008d319
mov edx, dword [esp + 0x38]
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call fcn.1007ece0
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x38
ret