Function at 0x1400510b0
Capabilities:
Create thread
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r13, rdx
mov rdi, rcx
mov r15d, 1
mov edx, r15d
lea rcx, str.int_MsiInstallStarted
call sym.Installer.exe_Put
mov qword [rdi + 0x38], r13
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, str.SelfFree_ProtectionApi
call sym.Installer.exe_Get
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [rdi + 0x14], esi
lea rcx, str.SelfFree_MSIApi
call sym.Installer.exe_Get
mov rbx, rax
test rax, rax
jne 0x14005114d
mov eax, 0x80004005
jmp 0x140051826
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [0x1400926f0]
test eax, eax
jne 0x140051826
mov rax, qword [rdi]
mov edx, 7
mov rcx, rdi
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0xc0]
call qword [0x1400926f0]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.msi.dll_MsiSetPropertyW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400659a0
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c2]
call fcn.1400659a0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
mov r8, qword [rax + 0x40]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14006e308
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
mov rdx, qword [rax + 0x28]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x50]
call fcn.14005bc00
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x1400926f0]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msi.dll_MsiOpenProductW]
lea r8, [rsp + 0x7c]
lea rdx, str.SELECT_Value_FROM_Property_WHERE_PropertyProductVersion
mov ecx, dword [rbp - 0x80]
call qword [sym.imp.msi.dll_MsiEnumClientsA]
xor edx, edx
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.msi.dll_MsiViewModify]
nop
mov dword [rsp + 0x78], esi
lea rdx, [rsp + 0x78]
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov dword [rbp - 0x7c], 0x104
mov word [rbp + 0x1c0], si
lea r9, [rbp - 0x7c]
lea r8, [rbp + 0x1c0]
mov edx, r15d
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [rbp - 0x80]
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea rcx, str.String_ProductVersion
call sym.Installer.exe_Get
lea r12, vtable.CString.0
test rax, rax
jne 0x1400512fa
lea ecx, [rax + 0x10]
call fcn.140062618
mov rbx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], r12
mov qword [rax + 8], rsi
lea rcx, [rbp + 0x1c0]
call fcn.140069798
mov qword [rbx + 8], rax
mov rdx, rbx
lea rcx, str.String_ProductVersion
call sym.Installer.exe_Put
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xe0]
call qword [0x1400926f0]
test eax, eax
je 0x140051803
mov r12, 0xffffffffffffffff
test r14, r14
je 0x1400514a0
lea rax, str.pidspspace
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x194
xor r9d, r9d
xor edx, edx
lea r8d, [r12 + 5]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test r12, r12
jne 0x140051384
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x78]
lea edx, [r12 + 9]
mov rcx, rdi
call qword [0x1400926f0]
mov edx, ebx
lea rcx, str.CreateFileMapping_failed:__d__n
call fcn.14005cb30
jmp 0x1400517ad
mov edx, ebx
lea rcx, str.CreateFileMapping_ok_n
call fcn.14005cb30
lea r9, str.pidspsync
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400cb850], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp qword [0x1400cb850], 0
jne 0x1400513e8
lea rcx, str.CreateEvent_failed:__d__n
call fcn.14005cb30
mov rax, qword [rdi]
mov edx, 9
mov rcx, rdi
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
mov rcx, r12
jmp 0x1400517a7
lea rcx, str.CreateEvent_ok:__d__n
call fcn.14005cb30
lea rcx, str.int_DisableSlfpr
call sym.Installer.exe_Get
test eax, eax
jne 0x1400514a0
call fcn.1400593d0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400514a0
mov edx, eax
lea rcx, str.Excluding_services.exe__d___n
call fcn.14005cb30
mov r9d, 0xa
lea r8d, [r9 + 0xa]
lea rdx, [rbp - 0x78]
mov ecx, ebx
call fcn.14006f6ac
mov ecx, 0x10
call fcn.140062618
mov rbx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rax, vtable.CString.0
mov qword [rbx], rax
mov qword [rbx + 8], rsi
lea rcx, [rbp - 0x78]
call fcn.140069798
mov qword [rbx + 8], rax
mov rdx, rbx
lea rcx, str.String_ServicesPid
call sym.Installer.exe_Put
mov rax, qword [r14]
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rsp + 0x40]
mov rdx, r13
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [0x1400926f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x140050cc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Create_thread:__d_n
call fcn.14005cb30
mov rdx, rbx
lea rcx, str.Installation_thread:__x_n
call fcn.14005cb30
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140051782
lea rcx, str.Waiting_for_sync_...__n
call fcn.14005cb30
mov rcx, qword [0x1400cb850]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140051526
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, str.TRUE
lea rdx, str.FALSE
cmp dword [0x1400cb858], 0
cmovne rdx, rax
lea rcx, str.Sync_done__bMsiPidError_s_n
call fcn.14005cb30
cmp dword [0x1400cb858], 0
jne 0x140051626
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140051626
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140051620
mov dword [rsp + 0x70], r15d
mov eax, r15d
lea r12, [rcx + rax*4]
mov edx, dword [r12]
lea rcx, str.Msi_pid:__d_n
call fcn.14005cb30
mov rbx, qword [0x1400cb8d0]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [0x1400cb8d8], rax
je 0x140051850
lea rax, [0x1400cb8d0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rsi
mov ecx, 0x18
call fcn.140062618
mov ecx, dword [r12]
mov dword [rax + 0x10], ecx
inc qword [0x1400cb8d8]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rsp + 0x68], rsi
mov qword [rbx + 8], rax
mov qword [rcx], rax
inc r15d
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x58]
jb 0x140051590
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [0x1400cb8d8], 0
je 0x140051698
test r14, r14
je 0x140051698
mov rax, qword [0x1400cb8d0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140051698
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r14]
mov r9b, 1
mov r8d, dword [rbx + 0x10]
mov rdx, r13
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x1400926f0]
mov rax, qword [r14]
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rbx + 0x10]
mov rdx, r13
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [0x1400926f0]
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [0x1400cb8d0]
jne 0x140051650
mov rcx, qword [0x1400cb850]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400516c3
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400cb850]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400cb850], rsi
lea rcx, str.Waiting_for_thread_...__n
call fcn.14005cb30
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rdi + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [rdi + 0x30]
lea rcx, str.Thread_exit:__d_...__n
call fcn.14005cb30
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xa0]
call qword [0x1400926f0]
test rax, rax
jne 0x1400517ad
mov r8d, dword [rdi + 0x30]
test r8d, r8d
je 0x1400517ad
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x70]
test eax, eax
jle 0x14005177a
test rcx, rcx
je 0x14005177a
mov rax, qword [rdi]
mov rdx, rcx
mov rcx, rdi
mov rax, qword [rax + 0xb0]
call qword [0x1400926f0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400517ad
mov rax, qword [rdi]
mov edx, 9
mov rcx, rdi
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400cb850]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call fcn.140069370
cmp dword [rdi + 0x30], 0
jne 0x1400517d5
mov rax, qword [rdi]
mov edx, 0x64
mov rcx, rdi
mov rax, qword [rax + 0xc0]
call qword [0x1400926f0]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
mov byte [rax + 0x19], 0
cmp dword [rdi + 0x30], 0
setne sil
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x1400517ff
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, esi
jmp 0x140051826
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
nop
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x140051824
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor eax, eax
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400625f0
mov rbx, qword [rsp + 0x530]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.140060888
int3