Function at 0x140073740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xa8
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbp, rcx
movsxd r12, edx
mov rax, r8
mov qword [rsp + 0x40], rbp
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rdx, str.sqlite_master
mov qword [rsp + 0x78], r8
mov r15d, r8d
mov dword [rsp + 0x54], r8d
cmp r12d, 1
mov dword [rsp + 0x50], r12d
lea rcx, str.sqlite_temp_master
mov qword [rsp + 0x48], rax
cmovne rcx, rdx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x60], rcx
lea rcx, [0x1400ce018]
mov qword [rsp + 0x68], rcx
lea rcx, str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_integer_sql_text_
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
lea edx, [r9 + 3]
call fcn.140073540
mov edi, dword [rsp + 0x54]
mov eax, 1
test edi, edi
jne 0x140073c85
mov rax, qword [rbp + 0x20]
mov rsi, r12
shl rsi, 5
mov rcx, qword [rax + rsi + 8]
lea r13, [rax + rsi]
mov qword [rsp + 0x30], rsi
test rcx, rcx
jne 0x140073823
cmp r12d, 1
jne 0x14007381c
mov rax, qword [rax + 0x38]
or word [rax + 0x72], r12w
xor eax, eax
jmp 0x140073cb9
mov qword [rsp + 0xa0], r14
cmp byte [rcx + 0x11], r15b
je 0x14007383f
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], r15b
jne 0x14007383f
call fcn.140024fb0
mov r14, qword [r13 + 8]
mov qword [rsp + 0xf8], rbx
cmp byte [r14 + 0x10], r15b
jne 0x1400739f2
mov rbx, qword [r14 + 8]
xor edi, edi
cmp byte [r14 + 0x11], dil
je 0x140073873
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], dil
jne 0x140073873
mov rcx, r14
call fcn.140024fb0
movzx eax, byte [r14 + 0x10]
dec al
cmp al, 1
jbe 0x1400739b7
movzx ecx, word [rbx + 0x26]
test cl, 0x40
je 0x14007389e
mov rax, qword [rbx + 0x78]
cmp qword [rax], rdi
je 0x14007389e
mov edi, 0x106
jmp 0x1400739b7
mov rax, qword [r14 + 8]
cmp byte [r14 + 0x11], dil
je 0x1400738e1
cmp qword [rax + 0x78], r14
je 0x1400738be
test byte [rax + 0x26], 0x20
je 0x1400738be
mov edi, 0x106
jmp 0x1400739b7
mov rax, qword [rax + 0x70]
test rax, rax
je 0x1400738e1
cmp qword [rax], r14
je 0x1400738d8
cmp dword [rax + 8], 1
jne 0x1400738d8
cmp byte [rax + 0xc], 1
jne 0x140073894
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400738c7
mov eax, 0xfff7
and cx, ax
mov word [rbx + 0x26], cx
cmp dword [rbx + 0x3c], r15d
jne 0x140073900
or cx, 8
mov word [rbx + 0x26], cx
nop dword [rax + rax]
cmp qword [rbx + 0x18], r15
jne 0x140073916
mov rcx, rbx
call fcn.140027bb0
mov edi, eax
test eax, eax
je 0x140073900
jmp 0x14007391a
test edi, edi
je 0x140073936
cmp byte [rbx + 0x24], r15b
jne 0x140073936
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140073936
mov qword [rbx + 0x18], r15
mov rcx, qword [rcx + 0x70]
call fcn.140020be0
cmp dil, 5
jne 0x140073974
cmp byte [rbx + 0x24], r15b
jne 0x140073974
mov rsi, qword [rbx + 8]
add rsi, 0x218
je 0x140073974
mov rax, qword [rsi]
test rax, rax
je 0x140073974
mov edx, dword [rsi + 0x10]
test edx, edx
js 0x140073974
mov rcx, qword [rsi + 8]
call rax
test eax, eax
je 0x14007396d
inc dword [rsi + 0x10]
jmp 0x140073900
mov dword [rsi + 0x10], 0xffffffff
test edi, edi
jne 0x1400739b2
cmp byte [r14 + 0x10], r15b
jne 0x14007399c
inc dword [rbx + 0x38]
cmp byte [r14 + 0x11], r15b
je 0x14007399c
mov byte [r14 + 0x3c], 1
mov rax, qword [rbx + 0x70]
mov qword [r14 + 0x40], rax
lea rax, [r14 + 0x30]
mov qword [rbx + 0x70], rax
mov rsi, qword [rsp + 0x30]
mov byte [r14 + 0x10], 1
cmp byte [rbx + 0x24], 1
jae 0x1400739b7
mov byte [rbx + 0x24], 1
jmp 0x1400739b7
mov rsi, qword [rsp + 0x30]
cmp byte [r14 + 0x11], r15b
je 0x1400739cc
sub dword [r14 + 0x14], 1
jne 0x1400739cc
mov rcx, r14
call fcn.140024f80
test edi, edi
je 0x1400739ec
mov ecx, edi
call fcn.14009b620
mov rcx, qword [rsp + 0x38]
mov r8, rax
mov rdx, rbp
call fcn.140012a40
jmp 0x140073c5b
mov r15d, 1
xor r14d, r14d
lea rdi, [rsp + 0x80]
mov ebx, r14d
mov rcx, qword [r13 + 8]
inc ebx
mov edx, ebx
mov r8, rdi
call fcn.14002f390
add rdi, 4
cmp ebx, 5
jl 0x140073a00
mov rcx, qword [r13 + 0x18]
mov eax, dword [rsp + 0x80]
mov dword [rcx], eax
mov ecx, dword [rsp + 0x90]
test ecx, ecx
je 0x140073a6f
test r12d, r12d
jne 0x140073a49
and cl, 3
mov ebx, 1
movzx eax, cl
cmove eax, ebx
mov byte [rbp + 0x52], al
jmp 0x140073a82
movzx eax, byte [rbp + 0x52]
cmp ecx, eax
je 0x140073a7d
mov rcx, qword [rsp + 0x38]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, rbp
call fcn.140012a40
mov edi, 1
jmp 0x140073c0f
mov rax, qword [rbp + 0x20]
mov rcx, qword [rsi + rax + 0x18]
or word [rcx + 0x72], 4
mov ebx, 1
mov rcx, qword [r13 + 0x18]
movzx eax, byte [rbp + 0x52]
mov byte [rcx + 0x71], al
mov rcx, qword [r13 + 0x18]
cmp dword [rcx + 0x74], r14d
jne 0x140073acf
mov eax, dword [rsp + 0x88]
test eax, eax
jns 0x140073ab2
cmp eax, 0x80000000
jne 0x140073ab0
mov eax, 0x7fffffff
jmp 0x140073abc
neg eax
test eax, eax
mov edx, 0xfffff830
cmove eax, edx
mov dword [rcx + 0x74], eax
mov rax, qword [r13 + 0x18]
mov rcx, qword [r13 + 8]
mov edx, dword [rax + 0x74]
call fcn.1400277a0
mov rax, qword [r13 + 0x18]
mov ecx, dword [rsp + 0x84]
mov byte [rax + 0x70], cl
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], r14b
jne 0x140073aeb
mov byte [rax + 0x70], 1
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x140073b10
mov rcx, qword [rsp + 0x38]
lea r8, str.unsupported_file_format
mov rdx, rbp
call fcn.140012a40
mov edi, ebx
jmp 0x140073c0f
test r12d, r12d
jne 0x140073b21
cmp ecx, 4
jl 0x140073b21
and dword [rbp + 0x2c], 0xffff7fff
mov r8, qword [rbp + 0x20]
lea rdx, str.SELECT_name__rootpage__sql_FROM___w_._s_ORDER_BY_rowid
mov r9, qword [rsp + 0x58]
mov rcx, rbp
mov r8, qword [rsi + r8]
call fcn.140014570
mov rbx, qword [rbp + 0x190]
lea r9, [rsp + 0x40]
lea r8, [fcn.140073540]
mov qword [rbp + 0x190], r14
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rcx, rbp
mov rsi, rax
call fcn.14006dd10
test eax, eax
mov qword [rbp + 0x190], rbx
mov edi, eax
cmove edi, dword [rsp + 0x54]
test rsi, rsi
je 0x140073bc8
cmp qword [rbp + 0x298], r14
je 0x140073b95
mov rdx, rsi
mov rcx, rbp
call fcn.140012380
jmp 0x140073bc8
cmp rsi, qword [rbp + 0x180]
jb 0x140073bc0
cmp rsi, qword [rbp + 0x188]
jae 0x140073bc0
mov rax, qword [rbp + 0x178]
mov qword [rsi], rax
dec dword [rbp + 0x160]
mov qword [rbp + 0x178], rsi
jmp 0x140073bc8
mov rcx, rsi
call fcn.140012310
test edi, edi
jne 0x140073bd7
mov edx, r12d
mov rcx, rbp
call fcn.140056390
cmp byte [rbp + 0x55], r14b
je 0x140073bec
mov rcx, rbp
mov edi, 7
call fcn.1400588c0
jmp 0x140073bf0
test edi, edi
je 0x140073bf9
test dword [rbp + 0x2c], 0x10000
je 0x140073c0f
mov rax, qword [rbp + 0x20]
mov edi, r14d
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x18]
or word [rcx + 0x72], 1
test r15d, r15d
je 0x140073c5b
mov rbx, qword [r13 + 8]
cmp byte [rbx + 0x11], r14b
je 0x140073c2f
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r14b
jne 0x140073c2f
mov rcx, rbx
call fcn.140024fb0
xor edx, edx
mov rcx, rbx
call fcn.140028d10
test eax, eax
jne 0x140073c47
xor edx, edx
mov rcx, rbx
call fcn.140028e80
cmp byte [rbx + 0x11], r14b
je 0x140073c5b
sub dword [rbx + 0x14], 1
jne 0x140073c5b
mov rcx, rbx
call fcn.140024f80
mov rcx, qword [r13 + 8]
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xf8]
cmp byte [rcx + 0x11], 0
je 0x140073c80
sub dword [rcx + 0x14], 1
jne 0x140073c80
call fcn.140024f80
mov eax, 1
cmp edi, 7
je 0x140073c92
cmp edi, 0xc0a
jne 0x140073cb7
cmp byte [rbp + 0x55], 0
jne 0x140073cb7
cmp byte [rbp + 0x56], 0
jne 0x140073cb7
cmp dword [rbp + 0xb8], 0
mov byte [rbp + 0x55], 1
jle 0x140073cb1
mov dword [rbp + 0x150], eax
inc dword [rbp + 0x158]
mov eax, edi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0xa8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret