Function at 0x1400c19d0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x650
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x640], rax
movzx eax, word [rsp + 0x668]
mov edx, eax
lea rcx, [rsp + 0xd0]
call fcn.1400486c0
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [0x140902650]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
lea r8, str.ExtractRegistryTransform___begin:_nResourceId___d_
mov edx, reloc.msi.dll_MsiEnumClientsA
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
lea rax, [rsp + 0x430]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, [rsp + 0x430]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400c1ab5
jmp 0x1400c212e
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0xe0]
call fcn.14001e490
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [0x140902650]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
lea r8, str.ExtractRegistryTransform:_wszTmpFolder___S_
mov edx, reloc.msi.dll_MsiEnumClientsA
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
movzx eax, word [rsp + 0x668]
lea r8, str.MSTFILE
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400c20b2
movzx eax, word [rsp + 0x668]
mov edx, eax
lea rcx, [rsp + 0xf0]
call fcn.1400486c0
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [0x140902650]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf0]
lea r8, str.Found_Upgrade_MST_resource___d_
mov edx, reloc.msi.dll_MsiEnumClientsA
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0x220]
xor r8d, r8d
lea rdx, [0x1402fd7f8]
lea rcx, [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x1400c20b0
mov qword [rsp + 0x70], 0xffffffffffffffff
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x220]
call fcn.1400f24d0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x1400c1fcd
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x100]
call fcn.1400152d0
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x110]
call fcn.14001e490
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x110]
lea r8, str.Writing_resource_to_file___S_:__d_bytes
mov edx, reloc.msi.dll_MsiEnumClientsA
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
mov rax, qword [rsp + 0x660]
add rax, 0x410
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x180]
call fcn.1400179b0
nop
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x88]
call fcn.140029f10
nop
lea rcx, [rsp + 0x180]
call fcn.14000a800
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.1400f2d40
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x70]
call fcn.1400f25c0
cmp dword [rsp + 0x60], 0
jne 0x1400c1ee5
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x120]
call fcn.14001e490
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [0x140902650]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x120]
lea r8, str.Adding_transforms_registry_for_file___S_
mov edx, reloc.msi.dll_MsiEnumClientsA
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
mov rcx, qword [rsp + 0x670]
call fcn.14000e130
mov qword [rsp + 0x98], rax
lea rdx, [0x1402fd858]
lea rcx, [rsp + 0x1a0]
call fcn.1400179b0
nop
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x98]
call fcn.140091d10
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x220]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x660]
call fcn.1400c2150
nop
lea rcx, [rsp + 0x1c0]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1a0]
call fcn.14000a800
jmp 0x1400c1fc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x1e0]
call fcn.1400f1950
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.14001e490
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x140]
call fcn.14001e490
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x140]
lea r8, str.Failed_to_write_file___S_:__S
mov edx, 4
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
nop
lea rcx, [rsp + 0x1e0]
call fcn.14000a800
jmp 0x1400c20b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x200]
call fcn.1400f1950
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.14001e490
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x160]
call fcn.14001e490
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x160]
lea r8, [0x1402fd998]
mov edx, 4
mov rcx, qword [rsp + 0x660]
call fcn.1400a8650
nop
lea rcx, [rsp + 0x200]
call fcn.14000a800
jmp 0x1400c212e
lea rax, [0x140902650]
mov qword [rsp + 0x58], rax
lea rax, [0x140902650]
mov qword [rsp + 0x50], rax
lea rax, [0x140902650]
mov qword [rsp + 0x48], rax
lea rax, [0x140902650]
mov qword [rsp + 0x40], rax
lea rax, [0x140902650]
mov qword [rsp + 0x38], rax
lea rax, [0x140902650]
mov qword [rsp + 0x30], rax
lea rax, [0x140902650]
mov qword [rsp + 0x28], rax
lea rax, [0x140902650]
mov qword [rsp + 0x20], rax
lea r9, str.Failed_to_find_transform_resource.
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x660]
call fcn.1400a8370
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x650
pop rdi
ret