Function at 0x140068850
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.1401c66b0
sub rsp, rax
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov rbx, r8
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], r15
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
lea rdx, str.SELECT_Sequence_FROM_InstallExecuteSequence_WHERE_Action_ws
lea rcx, [rsp + 0x70]
call fcn.14006b0f0
cmp dword [rsp + 0x24], r15d
je 0x140069094
lea r8d, [r15 + 6]
lea rdx, str.SELECT
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14006890c
mov dword [rsp + 0x20], 1
jmp 0x14006895a
mov r8d, 6
lea rdx, str.INSERT
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140068932
mov dword [rsp + 0x20], 2
jmp 0x14006895a
mov r8d, 6
lea rdx, str.UPDATE
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14006908f
mov dword [rsp + 0x20], 3
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x24]
call fcn.1401bf180
test eax, eax
jne 0x140069094
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x28]
call fcn.1401bf190
test eax, eax
jne 0x140069094
mov edi, r15d
lea rcx, [rsp + 0x20]
call fcn.140010090
test al, al
je 0x1400689bf
nop dword [rax + rax]
mov edx, 1
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.msi.dll_MsiRecordReadStream]
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.140010090
test al, al
jne 0x1400689a0
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400689cc
call fcn.1401bf170
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x1400689d9
call fcn.1401bf170
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1400689e6
call fcn.1401bf170
mov dword [rsp + 0x20], r15d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
je 0x140068a61
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140068a43
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140068a3e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140068adc
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rsi
jne 0x140068a04
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x770]
call sub.VCRUNTIME140.dll_memset
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edx
add eax, edx
imul ebx, eax, 0x64
mov r9d, ebx
mov r8d, edi
lea rdx, str.SELECT_Sequence_FROM_InstallExecuteSequence_WHERE_Sequence____d_AND_Sequence____d_ORDER_BY_Sequence
lea rcx, [rbp + 0x770]
call fcn.14006b0f0
cmp dword [rsp + 0x24], 0
je 0x140068f18
mov r8d, 6
lea rdx, str.SELECT
lea rcx, [rbp + 0x770]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140068ae3
mov dword [rsp + 0x20], 1
jmp 0x140068b35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8d, 6
lea rdx, str.INSERT
lea rcx, [rbp + 0x770]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140068b0b
mov dword [rsp + 0x20], 2
jmp 0x140068b35
mov r8d, 6
lea rdx, str.UPDATE
lea rcx, [rbp + 0x770]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140068f13
mov dword [rsp + 0x20], 3
lea r8, [rsp + 0x28]
lea rdx, [rbp + 0x770]
mov ecx, dword [rsp + 0x24]
call fcn.1401bf180
test eax, eax
jne 0x140068f18
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x28]
call fcn.1401bf190
test eax, eax
jne 0x140068f18
lea rcx, [rsp + 0x20]
call fcn.140010090
test al, al
je 0x140068ba8
dec ebx
nop word [rax + rax]
mov edx, 1
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.msi.dll_MsiRecordReadStream]
cmp eax, ebx
je 0x140068d05
lea edi, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.140010090
test al, al
jne 0x140068b80
mov dword [r14], edi
mov byte [r14 + 4], 1
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140068bbd
call fcn.1401bf170
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x140068bca
call fcn.1401bf170
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140068bd7
call fcn.1401bf170
mov dword [rsp + 0x20], r15d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rbx, rdi
je 0x140068c52
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140068c34
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140068c2f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140068ef1
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140068bf5
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140068f0e
mov rdi, qword [rsp + 0x58]
cmp rbx, rdi
je 0x140068cc9
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140068cab
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140068ca6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140068cfe
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140068c70
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140068ef8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140068ef8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor eax, eax
mov qword [r14], rax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140068d17
call fcn.1401bf170
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x140068d24
call fcn.1401bf170
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140068d31
call fcn.1401bf170
mov dword [rsp + 0x20], r15d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rbx, rdi
je 0x140068dad
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140068d8f
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140068d8a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140068e5d
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140068d50
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140068e7a
mov rdi, qword [rsp + 0x58]
cmp rbx, rdi
je 0x140068e29
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140068e0b
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140068e06
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140068e56
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140068dd0
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140068e64
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140068e64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140007ea0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140068ec8
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140068eb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006924d
call fcn.140007ea0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r15
mov rax, r14
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x1080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140007ea0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
jmp 0x140068e7a
mov dword [rsp + 0x20], r15d
xor eax, eax
mov qword [r14], rax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140068f2a
call fcn.1401bf170
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x140068f37
call fcn.1401bf170
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140068f44
call fcn.1401bf170
mov dword [rsp + 0x20], r15d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rbx, rdi
je 0x140068fbf
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140068fa1
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140068f9c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006906d
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140068f62
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14006908a
mov rdi, qword [rsp + 0x58]
cmp rbx, rdi
je 0x140069039
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14006901b
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140069016
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140069066
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140068fe0
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140069074
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069074
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140007ea0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
jmp 0x140068e7a
mov dword [rsp + 0x20], r15d
xor eax, eax
mov qword [r14], rax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400690a6
call fcn.1401bf170
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x1400690b3
call fcn.1401bf170
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1400690c0
call fcn.1401bf170
mov dword [rsp + 0x20], r15d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rbx, rdi
je 0x14006913d
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14006911f
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14006911a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400691ed
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x1400690e0
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14006920a
mov rdi, qword [rsp + 0x58]
cmp rbx, rdi
je 0x1400691b9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14006919b
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140069196
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400691e6
mov rcx, r8
call fcn.140007ea0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140069160
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400691f4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400691f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140007ea0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140068ec8
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140068eb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140068eb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3