Function at 0x1400802c0
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.140199a60
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14029fbf8]
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 r14, 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, [0x1402441c0]
call fcn.1401a7c50
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 0x140080549
mov rsi, rdi
mov rdi, rbx
lea r12, [rsp + 0x60]
sub r12, rbx
jmp 0x1400803f2
xor eax, eax
mov dword [rsi], eax
mov qword [r12 + rdi], rax
mov r8, qword [rdi]
lea rcx, [rbp + 0xf90]
call fcn.1400297f0
test eax, eax
jne 0x140080417
lea rcx, [rbp + 0xf90]
call fcn.140029c40
cmp eax, 0x64
je 0x140080525
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 [r14 + 0x28]
lea rcx, [rbp + 0xfc8]
call fcn.140036220
nop
mov rdx, qword [rdi]
lea rcx, [rbp + 0xfc8]
call fcn.1400362d0
test eax, eax
jne 0x140080513
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 0x140080513
mov edx, 0x20
mov ecx, 0x300
call fcn.1401a8160
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400804f5
mov rdx, qword [r14 + 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.140036ac0
nop
lea rcx, [rbx + 0x40]
call fcn.140036840
nop
lea rcx, [rbx + 0x260]
call fcn.14007e1d0
nop
jmp 0x1400804f7
xor ebx, ebx
mov qword [r12 + rdi], rbx
mov r13d, r15d
mov r8, rbx
lea rdx, [rbp + 0xfc8]
mov rcx, qword [r14 + 0x28]
call fcn.1400b0220
jmp 0x140080519
mov dword [rsi], 2
lea rcx, [rbp + 0xfc8]
call fcn.140036770
inc r15d
add rdi, 8
add rsi, 4
cmp r15d, dword [rbp + 0xf40]
mov edx, 1
jb 0x1400803f0
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 [r14 + 0x38]
lea rcx, [rbp + 0xf58]
call fcn.140074420
nop
lea rdi, [rsp + 0x60]
lea esi, [r13 + 1]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400805ed
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r14 + 0x38]
call fcn.1400acb80
lea rcx, [rbx + 0x260]
call fcn.14007cea0
lea rcx, [rbx + 0x40]
call fcn.140036830
lea rcx, [rbx + 0x10]
call fcn.140036a70
mov rcx, rbx
call fcn.1401a8128
add rdi, 8
sub rsi, 1
jne 0x1400805b0
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 rsi, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [r14 + 0x38]
call fcn.1400ade60
mov ebx, eax
mov edi, 0x65
lea r13, [0x1402a6728]
test eax, eax
jne 0x1400807e5
cmp byte [rbp + 0x1090], al
jne 0x140080796
mov byte [rbp + 0xf60], 1
mov esi, edi
cmp byte [rbp + 0xf78], al
je 0x14008068d
lea r9, str.COMMIT
mov r8d, dword [rbp + 0xf88]
mov rdx, qword [rbp + 0xf80]
lea rcx, [rbp + 0xf58]
call fcn.1400ae090
mov rcx, qword [rbp + 0xf58]
call fcn.1400ad900
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 [0x1402a6720], r14
mov rdx, qword [0x1402a6710]
test rdx, rdx
je 0x1400806d8
mov qword [0x1402a6720], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x1402a6710], rax
test rax, rax
jne 0x14008070b
mov qword [0x1402a6718], r14
jmp 0x14008070b
mov rdx, qword [0x1402a6700]
test rdx, rdx
je 0x140080743
mov qword [0x1402a6720], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x1402a6700], rax
mov rcx, qword [0x1402a6708]
test rax, rax
cmove rcx, r14
mov qword [0x1402a6708], rcx
mov byte [0x1402a66f8], 1
cmp byte [rdx + 0x20], r14b
je 0x14008072d
mov rcx, qword [rbp + 0xf58]
call fcn.1400adfe0
mov ebx, eax
mov rdx, qword [0x1402a6720]
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 [0x1402a66e8]
jmp 0x14008074c
mov byte [0x1402a66f8], 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 0x140080775
mov r8d, esi
lea rdx, str.Commit
lea rcx, [rbp + 0xf58]
call fcn.1400ae030
cmp ebx, 0x65
je 0x140080791
mov r8d, ebx
lea rdx, str.Begin
lea rcx, [rbp + 0xf58]
call fcn.1400ae030
nop
mov ebx, r14d
jmp 0x1400807e5
mov rcx, qword [0x1402a6770]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, rax
mov r8, rsi
mov rsi, qword [rbp + 0x1080]
mov rdx, rsi
call fcn.1400a2c50
mov ebx, eax
test eax, eax
jne 0x1400807e5
lea r12, str.P_a_
cmp rsi, 2
jne 0x140080955
lea rcx, [r14 + 0x88]
call fcn.140029c40
cmp eax, 0x64
je 0x1400807ed
mov ebx, 0x10d9
xor r15d, r15d
jmp 0x1400809be
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, [r14 + 0x88]
call fcn.140029b30
test eax, eax
jne 0x140080852
lea r8, [rbp + 0xf40]
lea edx, [rax + 1]
lea rcx, [r14 + 0x88]
call fcn.140029b30
test eax, eax
jne 0x140080852
lea r8, [rbp + 0xf48]
lea edx, [rax + 2]
lea rcx, [r14 + 0x88]
call fcn.140029b30
test eax, eax
je 0x14008085c
mov ebx, 0x10d9
jmp 0x1400809be
lea rcx, [r14 + 0x88]
call fcn.140029cd0
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x1400808b2
test dword [rcx + 0x44], 0x100000
je 0x1400808b2
cmp byte [rcx + 0x41], 4
jb 0x1400808b2
mov edx, 0xf
mov rax, qword [rbp + 0xf48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xf40]
lea r8, [0x140213670]
mov rcx, qword [rcx + 0x38]
call fcn.140081500
mov rcx, qword [str.P_a_]
mov rax, qword [rbp + 0xf40]
mov rdx, qword [rbp + 0xf48]
cmp rax, rdx
jae 0x1400808f8
cmp rcx, r12
je 0x1400808ee
test dword [rcx + 0x44], 0x100000
je 0x1400808ee
cmp byte [rcx + 0x41], 3
jb 0x1400808ee
mov edx, 0x10
lea r8, [0x140213670]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov ebx, 0xd
jmp 0x1400809be
sub rax, rdx
mov rdx, qword [rbp + 0xf50]
cmp rdx, rax
jbe 0x14008093a
cmp rcx, r12
je 0x140080930
test dword [rcx + 0x44], 0x100000
je 0x140080930
cmp byte [rcx + 0x41], 3
jb 0x140080930
mov edx, 0x11
lea r8, [0x140213670]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov ebx, 0x70
jmp 0x1400809be
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 0x140080958
xor r15d, r15d
mov rcx, r14
call fcn.14007f0c0
mov esi, eax
test eax, eax
je 0x14008099d
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x140080999
test dword [rcx + 0x44], 0x100000
je 0x140080999
cmp byte [rcx + 0x41], 2
jb 0x140080999
mov edx, 0x12
mov r9d, eax
lea r8, [0x140213670]
mov rcx, qword [rcx + 0x38]
call fcn.140024fa0
mov ebx, esi
jmp 0x1400809be
mov rax, qword [r14 + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, r14
call fcn.14007f590
lea rcx, [rbp + 0xf58]
call fcn.140074680
nop
cmp byte [rbp + 0xf60], 0
jne 0x140080af6
mov byte [rbp + 0xf60], 1
cmp byte [rbp + 0xf78], 0
je 0x140080a23
lea r9, str.ROLLBACK
mov r8d, dword [rbp + 0xf88]
mov rdx, qword [rbp + 0xf80]
lea rcx, [rbp + 0xf58]
call fcn.1400ae090
mov rcx, qword [rbp + 0xf58]
call fcn.1400ade50
cmp eax, 0x65
je 0x140080a23
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp + 0xf58]
call fcn.1400ae030
mov rcx, r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov qword [0x1402a6720], r15
mov rdx, qword [0x1402a6710]
test rdx, rdx
je 0x140080a5f
mov qword [0x1402a6720], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x1402a6710], rax
test rax, rax
jne 0x140080a92
mov qword [0x1402a6718], r15
jmp 0x140080a92
mov rdx, qword [0x1402a6700]
test rdx, rdx
je 0x140080aca
mov qword [0x1402a6720], rdx
mov rax, qword [rdx + 0x10]
mov qword [0x1402a6700], rax
mov rcx, qword [0x1402a6708]
test rax, rax
cmove rcx, r15
mov qword [0x1402a6708], rcx
mov byte [0x1402a66f8], 1
cmp byte [rdx + 0x20], 0
je 0x140080ab4
mov rcx, qword [rbp + 0xf58]
call fcn.1400adfe0
mov edi, eax
mov rdx, qword [0x1402a6720]
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 [0x1402a66e8]
jmp 0x140080ad1
mov byte [0x1402a66f8], 0
mov rcx, r13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp edi, 0x65
je 0x140080af6
mov r8d, edi
lea rdx, str.Begin
lea rcx, [rbp + 0xf58]
call fcn.1400ae030
nop
lea rax, vtable.SqliteStatement.0
mov qword [rbp + 0xf90], rax
lea rcx, [rbp + 0xf90]
call fcn.140029cf0
nop
mov eax, ebx
mov rcx, qword [rbp + 0x1000]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x1118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret