Function at 0x100165a0
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1003e895
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or esi, 0xffffffff
mov edi, str._pplive.exe_
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._pplive.exe_
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x494]
push ecx
lea edx, [esp + 0x44]
push ebx
push edx
mov ecx, ebp
mov dword [esp + 0x498], ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x494], 1
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x10016869
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x14]
mov byte [esp + 0x48c], 2
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPPLive
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1001667f
lea ecx, [esp + 0x18]
call fcn.10017250
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x18], ecx
je 0x100166d0
jmp 0x10016683
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10016692
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x48c], 1
call fcn.10017250
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x490], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esp + 0x48c], esi
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x10016a37
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push str.InstallLocation
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
je 0x10016701
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10016692
push eax
jmp 0x10016688
mov eax, dword [esp + 0x1c]
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push ebx
push str.InstallLocation
push eax
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
je 0x10016781
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10016744
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x48c], 1
call fcn.10017250
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x490], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esp + 0x48c], 0xffffffff
jmp 0x100166bd
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
lea ecx, [esp + 0x50]
push edx
push eax
push ecx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov eax, dword [eax + 4]
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebx
mov byte [esp + 0x48c], 3
je 0x100167b3
mov ecx, eax
mov eax, 0x10624dd3
mul dword [esp + 0x498]
shr edx, 6
push edx
push ecx
push esi
lea edx, [esp + 0x3c]
push str.__spplive.exe___s__u
push edx
call fcn.10016a50
add esp, 0x14
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x490], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, ebx
jne 0x10016801
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x490], 2
seta byte [esp + 0x17]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48c], 1
call fcn.10017250
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x490], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x490], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x13]
jmp 0x10016a37
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], bl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x70]
mov ecx, esi
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [esp + 0x30]
push ebp
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0x498], 6
call fcn.10016c20
add esp, 0xc
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x490], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x48c], 9
cmp eax, ebx
jne 0x10016902
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 4
push 1
push 0x40000000
push eax
lea ecx, [esp + 0x24]
call fcn.10016e10
test al, al
jne 0x10016943
lea ecx, [esp + 0x14]
mov byte [esp + 0x48c], 0xa
call fcn.10016df0
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x490], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x100166a3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ebx
push edx
push 0x4000
push 0x10042f48
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x10016982
push eax
call edi
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x498]
lea eax, [esp + 0x60]
push edx
push 0x100544e8
push eax
call fcn.10016a50
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x48c], 0xb
mov edx, dword [ecx]
lea ecx, [esp + 0x50]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x490], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x54]
cmp eax, ebx
jne 0x100169da
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
mov eax, dword [esp + 0x14]
seta byte [esp + 0x13]
cmp eax, esi
je 0x100169f9
push eax
call edi
mov dword [esp + 0x14], esi
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x490], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x490], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x490], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x480
ret