Function at 0x140079270
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1018]
mov eax, 0x1118
call fcn.14017e050
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14027ef78]
xor rax, rsp
mov qword [rbp + 0x1000], rax
mov rbx, r9
mov qword [rbp + 0xf48], rbx
mov r12d, r8d
mov dword [rbp + 0xf40], r8d
mov qword [rsp + 0x30], rdx
mov rsi, rcx
mov rdi, qword [rbp + 0x1098]
mov qword [rbp + 0xf50], rdi
mov rax, qword [rbp + 0x10a0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rbp + 0xf98], rax
mov qword [rbp + 0xfc0], rax
mov rcx, qword [rcx + 0x38]
lea rax, vtable.SqliteStatement.0
mov qword [rbp + 0xf90], rax
xor edx, edx
mov dword [rbp + 0xf98], edx
lea rax, [rcx + 0x10]
test rcx, rcx
cmove rax, rdx
mov qword [rbp + 0xfa0], rax
lea rdx, str.SELECT_1_FROM_FILES_WHERE_FILE_ID___id
mov qword [rbp + 0xfa8], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xfb0], xmm0
mov byte [rbp + 0xfc0], 0
mov r8d, 6
lea rcx, str.SELECT
call fcn.14018c230
movzx ecx, byte [rbp + 0xfc0]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rbp + 0xfc0], cl
lea rax, vtable.TransactionSafeStatement.0
mov qword [rbp + 0xf90], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov r13d, eax
mov r15d, eax
test r12d, r12d
je 0x1400794fb
mov r14, rdi
mov rdi, rbx
lea r12, [rsp + 0x60]
sub r12, rbx
jmp 0x1400793a2
xor eax, eax
mov dword [r14], eax
mov qword [r12 + rdi], rax
mov r8, qword [rdi]
lea rcx, [rbp + 0xf90]
call fcn.140023760
test eax, eax
jne 0x1400793c8
lea rcx, [rbp + 0xf90]
call fcn.140023bb0
cmp eax, 0x64
je 0x1400794d7
xor eax, eax
mov qword [rbp + 0xfc8], rax
mov qword [rbp + 0xfd0], rax
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfe8], rax
mov qword [rbp + 0xff0], rax
mov qword [rbp + 0xff8], rax
mov rdx, qword [rsi + 0x28]
lea rcx, [rbp + 0xfc8]
call fcn.140030220
nop
mov rdx, qword [rdi]
lea rcx, [rbp + 0xfc8]
call fcn.1400302d0
test eax, eax
jne 0x1400794c4
mov rax, qword [rbp + 0xfd0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xff0]
movzx ecx, word [rax + 0x10]
shl rcx, 0x30
or rcx, rdx
cmp qword [rdi], rcx
jne 0x1400794c4
mov edx, 0x20
mov ecx, 0x300
call fcn.14018c740
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400794a6
mov rdx, qword [rsi + 0x28]
xor eax, eax
mov qword [rbx], rax
mov dword [rbx + 8], eax
lea r8, [rdx + 0xa8]
test rdx, rdx
cmove r8, rax
lea rcx, [rbx + 0x10]
call fcn.140030ac0
nop
lea rcx, [rbx + 0x40]
call fcn.140030840
nop
lea rcx, [rbx + 0x260]
call fcn.140077190
nop
jmp 0x1400794a8
xor ebx, ebx
mov qword [r12 + rdi], rbx
mov r13d, r15d
mov r8, rbx
lea rdx, [rbp + 0xfc8]
mov rcx, qword [rsi + 0x28]
call fcn.1400a8d10
jmp 0x1400794cb
mov dword [r14], 2
lea rcx, [rbp + 0xfc8]
call fcn.140030770
inc r15d
add rdi, 8
add r14, 4
cmp r15d, dword [rbp + 0xf40]
mov edx, 1
jb 0x1400793a0
mov r12d, dword [rbp + 0xf40]
xor eax, eax
mov qword [rbp + 0xf58], rax
mov qword [rbp + 0xf60], rax
mov qword [rbp + 0xf68], rax
mov qword [rbp + 0xf70], rax
mov qword [rbp + 0xf78], rax
mov qword [rbp + 0xf80], rax
mov qword [rbp + 0xf88], rax
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9d, SetErrorInfo
lea r8, str.PinningController::setPinningState
mov rdx, qword [rsi + 0x38]
lea rcx, [rbp + 0xf58]
call fcn.14006d3e0
nop
lea rdi, [rsp + 0x60]
lea r14d, [r13 + 1]
nop
mov rbx, qword [rdi]
test rbx, rbx
je 0x14007959a
mov rdx, rbx
mov rcx, qword [rsi + 0x38]
call fcn.1400a59f0
lea rcx, [rbx + 0x260]
call fcn.140075e30
lea rcx, [rbx + 0x40]
call fcn.140030830
lea rcx, [rbx + 0x10]
call fcn.140030a70
mov rcx, rbx
call fcn.14018c708
add rdi, 8
sub r14, 1
jne 0x140079560
mov rax, qword [rbp + 0xf50]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0xf48]
mov qword [rsp + 0x20], rax
movzx r9d, byte [rbp + 0x1088]
mov r8d, r12d
mov r14, qword [rsp + 0x30]
mov rdx, r14
mov rcx, qword [rsi + 0x38]
call fcn.1400a6cb0
mov ebx, eax
mov edi, 0x65
lea r13, [0x140285df8]
test eax, eax
jne 0x140079792
cmp byte [rbp + 0x1090], al
jne 0x140079743
mov byte [rbp + 0xf60], 1
mov esi, edi
cmp byte [rbp + 0xf78], al
je 0x14007963a
lea r9, str.COMMIT
mov r8d, dword [rbp + 0xf88]
mov rdx, qword [rbp + 0xf80]
lea rcx, [rbp + 0xf58]
call fcn.1400a6ee0
mov rcx, qword [rbp + 0xf58]
call fcn.1400a6750
mov esi, eax
mov qword [rsp + 0x40], r13
mov rcx, r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov ebx, edi
xor r14d, r14d
mov qword [0x140285df0], r14
mov rdx, qword [0x140285de0]
test rdx, rdx
je 0x140079685
mov qword [0x140285df0], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x140285de0], rax
test rax, rax
jne 0x1400796b8
mov qword [0x140285de8], r14
jmp 0x1400796b8
mov rdx, qword [0x140285dd0]
test rdx, rdx
je 0x1400796f0
mov qword [0x140285df0], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x140285dd0], rax
mov rcx, qword [0x140285dd8]
test rax, rax
cmove rcx, r14
mov qword [0x140285dd8], rcx
mov byte [0x140285dc8], 1
cmp byte [rdx + 0x20], r14b
je 0x1400796da
mov rcx, qword [rbp + 0xf58]
call fcn.1400a6e30
mov ebx, eax
mov rdx, qword [0x140285df0]
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
inc qword [0x140285db8]
jmp 0x1400796f9
mov byte [0x140285dc8], r14b
mov ebx, edi
mov byte [rsp + 0x48], r14b
mov rcx, r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp esi, 0x65
je 0x140079722
mov r8d, esi
lea rdx, str.Commit
lea rcx, [rbp + 0xf58]
call fcn.1400a6e80
cmp ebx, 0x65
je 0x14007973e
mov r8d, ebx
lea rdx, str.Begin
lea rcx, [rbp + 0xf58]
call fcn.1400a6e80
nop
mov ebx, r14d
jmp 0x140079792
mov rcx, qword [0x140285e30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, rax
mov r8, r14
mov r14, qword [rbp + 0x1080]
mov rdx, r14
call fcn.14009bc60
mov ebx, eax
test eax, eax
jne 0x140079792
lea r12, [0x14027fe70]
cmp r14, 2
jne 0x140079902
lea rcx, [rsi + 0x88]
call fcn.140023bb0
cmp eax, 0x64
je 0x14007979a
mov ebx, 0x10d9
xor r15d, r15d
jmp 0x14007996d
xor r15d, r15d
mov qword [rbp + 0xf40], r15
mov qword [rbp + 0xf50], r15
mov qword [rbp + 0xf48], r15
lea r8, [rbp + 0xf50]
xor edx, edx
lea rcx, [rsi + 0x88]
call fcn.140023aa0
test eax, eax
jne 0x1400797ff
lea r8, [rbp + 0xf40]
lea edx, [rax + 1]
lea rcx, [rsi + 0x88]
call fcn.140023aa0
test eax, eax
jne 0x1400797ff
lea r8, [rbp + 0xf48]
lea edx, [rax + 2]
lea rcx, [rsi + 0x88]
call fcn.140023aa0
test eax, eax
je 0x140079809
mov ebx, 0x10d9
jmp 0x14007996d
lea rcx, [rsi + 0x88]
call fcn.140023c40
mov rcx, qword [0x14027fe70]
cmp rcx, r12
je 0x14007985f
test dword [rcx + 0x44], 0x100000
je 0x14007985f
cmp byte [rcx + 0x41], 4
jb 0x14007985f
mov edx, 0xf
mov rax, qword [rbp + 0xf48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xf40]
lea r8, [0x1401f7590]
mov rcx, qword [rcx + 0x38]
call fcn.14007a4b0
mov rcx, qword [0x14027fe70]
mov rax, qword [rbp + 0xf40]
mov rdx, qword [rbp + 0xf48]
cmp rax, rdx
jae 0x1400798a5
cmp rcx, r12
je 0x14007989b
test dword [rcx + 0x44], 0x100000
je 0x14007989b
cmp byte [rcx + 0x41], 3
jb 0x14007989b
mov edx, 0x10
lea r8, [0x1401f7590]
mov rcx, qword [rcx + 0x38]
call fcn.14001d350
mov ebx, 0xd
jmp 0x14007996d
sub rax, rdx
mov rdx, qword [rbp + 0xf50]
cmp rdx, rax
jbe 0x1400798e7
cmp rcx, r12
je 0x1400798dd
test dword [rcx + 0x44], 0x100000
je 0x1400798dd
cmp byte [rcx + 0x41], 3
jb 0x1400798dd
mov edx, 0x11
lea r8, [0x1401f7590]
mov rcx, qword [rcx + 0x38]
call fcn.14001d350
mov ebx, 0x70
jmp 0x14007996d
mov ebx, r15d
lea rcx, [rdx + rdx*4]
add rcx, rcx
lea rax, [rax + rax*8]
mov edx, 0x13a
cmp rcx, rax
cmovae ebx, edx
jmp 0x140079905
xor r15d, r15d
mov rcx, rsi
call fcn.140078070
mov r14d, eax
test eax, eax
je 0x14007994c
mov rcx, qword [0x14027fe70]
cmp rcx, r12
je 0x140079947
test dword [rcx + 0x44], 0x100000
je 0x140079947
cmp byte [rcx + 0x41], 2
jb 0x140079947
mov edx, 0x12
mov r9d, eax
lea r8, [0x1401f7590]
mov rcx, qword [rcx + 0x38]
call fcn.14001ef30
mov ebx, r14d
jmp 0x14007996d
mov rax, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, rsi
call fcn.140078540
lea rcx, [rbp + 0xf58]
call fcn.14006d640
nop
cmp byte [rbp + 0xf60], 0
jne 0x140079aa5
mov byte [rbp + 0xf60], 1
cmp byte [rbp + 0xf78], 0
je 0x1400799d2
lea r9, str.ROLLBACK
mov r8d, dword [rbp + 0xf88]
mov rdx, qword [rbp + 0xf80]
lea rcx, [rbp + 0xf58]
call fcn.1400a6ee0
mov rcx, qword [rbp + 0xf58]
call fcn.1400a6ca0
cmp eax, 0x65
je 0x1400799d2
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp + 0xf58]
call fcn.1400a6e80
mov rcx, r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov qword [0x140285df0], r15
mov rdx, qword [0x140285de0]
test rdx, rdx
je 0x140079a0e
mov qword [0x140285df0], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x140285de0], rax
test rax, rax
jne 0x140079a41
mov qword [0x140285de8], r15
jmp 0x140079a41
mov rdx, qword [0x140285dd0]
test rdx, rdx
je 0x140079a79
mov qword [0x140285df0], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x140285dd0], rax
mov rcx, qword [0x140285dd8]
test rax, rax
cmove rcx, r15
mov qword [0x140285dd8], rcx
mov byte [0x140285dc8], 1
cmp byte [rdx + 0x20], 0
je 0x140079a63
mov rcx, qword [rbp + 0xf58]
call fcn.1400a6e30
mov edi, eax
mov rdx, qword [0x140285df0]
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
inc qword [0x140285db8]
jmp 0x140079a80
mov byte [0x140285dc8], 0
mov rcx, r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp edi, 0x65
je 0x140079aa5
mov r8d, edi
lea rdx, str.Begin
lea rcx, [rbp + 0xf58]
call fcn.1400a6e80
nop
lea rax, vtable.SqliteStatement.0
mov qword [rbp + 0xf90], rax
lea rcx, [rbp + 0xf90]
call fcn.140023c60
nop
mov eax, ebx
mov rcx, qword [rbp + 0x1000]
xor rcx, rsp
call fcn.14017e000
add rsp, 0x1118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret