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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r15
sub rsp, 0xb0
mov rbp, qword [rcx]
mov rsi, rcx
mov r15, qword [rsp + 0xf0]
test r8, r8
jne 0x14019b966
test r15, r15
je 0x14019c04f
mov qword [rsp + 0xa0], rdi
mov rdi, qword [rcx + 0x140]
test rdi, rdi
je 0x14019c047
test r15, r15
jne 0x14019b9a2
mov rdx, qword [rdi]
mov rcx, rbp
call fcn.1401bbda0
movzx r9d, byte [rsp + 0xe8]
test eax, eax
je 0x14019b9a2
or dword [rdi + 0x40], 0x1000
cmp byte [rbp + 0xb5], 0
je 0x14019b9d5
test r15, r15
je 0x14019b9c4
lea rdx, [0x140328a18]
mov rcx, rsi
call fcn.14019c240
jmp 0x14019c047
mov eax, dword [rbp + 0xb0]
mov dword [rdi + 0x38], eax
cmp eax, 1
jne 0x14019b9d5
or dword [rdi + 0x40], eax
test r9b, r9b
jns 0x14019ba1d
mov eax, dword [rdi + 0x40]
mov rcx, rsi
test al, 8
je 0x14019b9f5
lea rdx, str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
call fcn.14019c240
jmp 0x14019c047
test al, 4
jne 0x14019ba0d
mov r8, qword [rdi]
lea rdx, str.PRIMARY_KEY_missing_on_table__s
call fcn.14019c240
jmp 0x14019c047
or eax, 0x280
mov rdx, rdi
mov dword [rdi + 0x40], eax
call fcn.14016bd60
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0x98], r12
mov r12d, 0xfff0bdc0
mov qword [rsp + 0x90], r13
xor r13d, r13d
mov dword [rsp + 0xd0], r12d
test rcx, rcx
je 0x14019ba74
mov rax, qword [rbp + 0x20]
mov r12d, r13d
add rax, 0x18
mov dword [rsp + 0xd0], r13d
cmp qword [rax], rcx
je 0x14019ba74
nop
inc r12d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14019ba60
mov dword [rsp + 0xd0], r12d
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x14019baaf
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
lea r8d, [r9 + 4]
call fcn.1401b6910
cmp dword [rsi + 0x30], r13d
je 0x14019baaf
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x14019baab
mov rcx, rbp
call fcn.140171700
mov qword [rdi + 0x30], r13
test byte [rdi + 0x40], 0x60
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x88], r14
je 0x14019bbbc
xor eax, eax
mov r15d, eax
cmp ax, word [rdi + 0x46]
jge 0x14019bb9d
xor r12d, r12d
mov ebx, r12d
nop
mov rax, qword [rdi + 8]
test byte [rax + rbx + 0x1c], 0x60
je 0x14019bb79
mov r14, qword [rax + rbx + 8]
mov r8d, 8
mov r9, r14
mov qword [rsp + 0x20], r12
mov rdx, rdi
mov rcx, rsi
call fcn.1401b6910
test eax, eax
je 0x14019bb7c
test r14, r14
je 0x14019bb21
mov rdx, r14
mov rcx, rbp
call fcn.1401a0530
mov edx, 0x48
mov dword [rsp + 0x54], r12d
mov rcx, rbp
call fcn.1401997c0
test rax, rax
je 0x14019bb6e
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
or ecx, 0xffffffff
mov word [rax + 0x32], cx
mov byte [rax], 0x77
mov dword [rax + 0x28], 1
mov rcx, qword [rdi + 8]
mov qword [rcx + rbx + 8], rax
jmp 0x14019bb7c
inc r13d
movsx eax, word [rdi + 0x46]
inc r15d
add rbx, 0x20
cmp r15d, eax
jl 0x14019bae0
mov r12d, dword [rsp + 0xd0]
test r13d, r13d
jne 0x14019bbb1
lea rdx, str.must_have_at_least_one_non_generated_column
mov rcx, rsi
call fcn.14019c240
jmp 0x14019c027
mov r15, qword [rsp + 0xf0]
xor r13d, r13d
mov rcx, rdi
call fcn.14016e950
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x14019bbe1
nop dword [rax]
mov rcx, rbx
call fcn.14016e870
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14019bbd0
cmp byte [rbp + 0xb5], 0
jne 0x14019bf8a
mov r14, qword [rsi + 0x10]
test r14, r14
jne 0x14019bc21
cmp qword [rsi + 0xa0], r14
jne 0x14019bc0d
mov rax, qword [rsi]
test byte [rax + 0x5c], 8
jne 0x14019bc0d
mov byte [rsi + 0x23], 1
mov rcx, rsi
call fcn.1401c2750
mov r14, rax
test rax, rax
je 0x14019c027
movsxd rcx, dword [r14 + 0x90]
cmp dword [r14 + 0x94], ecx
jg 0x14019bc4a
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x74]
call fcn.140178b80
jmp 0x14019bc75
lea eax, [rcx + 1]
mov dword [r14 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x88]
mov qword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r13
mov rax, qword [rdi + 0x18]
lea rcx, str.VIEW
test rax, rax
lea r8, str.TABLE
lea r13, str.table
cmovne r8, rcx
lea rcx, str.view
cmovne r13, rcx
test r15, r15
je 0x14019be87
inc dword [rsi + 0x38]
mov edx, 0x61
mov ebx, dword [rsi + 0x38]
mov rcx, rsi
mov dword [rsp + 0x20], r12d
lea r8d, [rdx - 0x60]
lea eax, [rbx + 1]
mov dword [rsp + 0x50], eax
inc eax
mov dword [rsi + 0x38], eax
mov rax, qword [rsi + 0xa0]
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov rcx, r14
mov r9d, dword [rsi + 0x7c]
call fcn.1401c1c90
mov eax, dword [r14 + 0x90]
test eax, eax
jle 0x14019bd0f
dec eax
movsxd rcx, eax
mov rax, qword [r14 + 0x88]
lea rdx, [rcx + rcx*2]
mov ecx, reloc.WS2_32.dll_recv
mov word [rax + rdx*8 + 2], cx
xor r9d, r9d
mov dword [rsi + 0x34], 2
mov eax, dword [r14 + 0x90]
mov r8d, ebx
mov dword [rsp + 0xd0], eax
mov rcx, r14
inc eax
lea edx, [r9 + 0xd]
mov dword [rsp + 0x20], eax
call fcn.1401c1c90
cmp dword [rsi + 0x30], 0
jne 0x14019c027
mov r8b, 0x41
mov rdx, r15
mov rcx, rsi
call fcn.1401b6a10
test rax, rax
je 0x14019c027
movzx ecx, word [rax + 0x46]
mov word [rdi + 0x48], cx
mov word [rdi + 0x46], cx
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
xor ecx, ecx
mov word [rax + 0x46], cx
mov qword [rax + 8], rcx
cmp qword [rbp + 0x2d8], rcx
jne 0x14019bd8a
add dword [rax + 0x3c], 0xffffffff
jne 0x14019bd97
mov rdx, rax
mov rcx, rbp
call fcn.14016d650
xor ecx, ecx
mov qword [rsp + 0x68], rcx
lea r8, [rsp + 0x58]
mov rcx, rsi
mov byte [rsp + 0x58], reloc.WS2_32.dll_listen
mov rdx, r15
mov dword [rsp + 0x5c], ebx
mov qword [rsp + 0x60], 0
call fcn.1401b8540
cmp dword [rsi + 0x30], 0
jne 0x14019c027
mov edx, ebx
mov rcx, r14
call fcn.1401c2ae0
mov edx, dword [rsp + 0xd0]
mov rcx, r14
call fcn.1401caa30
mov r8d, dword [rsp + 0x5c]
mov edx, recv
mov rcx, r14
call fcn.1401c1bb0
mov r9d, dword [rsp + 0x64]
mov edx, 0x5b
mov r8d, dword [rsp + 0x60]
mov rcx, r14
mov r15d, dword [rsp + 0x50]
mov ebx, eax
mov dword [rsp + 0x20], r15d
call fcn.1401c1c90
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.1401bd430
mov edx, 0x78
lea r9d, [r15 + 1]
mov rcx, r14
lea r8d, [rdx - 0x77]
call fcn.1401c1c20
mov edx, 0x79
lea eax, [r15 + 1]
mov r9d, r15d
mov dword [rsp + 0x20], eax
mov rcx, r14
lea r8d, [rdx - 0x78]
call fcn.1401c1c90
mov edx, ebx
mov rcx, r14
call fcn.1401ca2a0
mov edx, ebx
mov rcx, r14
call fcn.1401caa30
mov edx, reloc.WS2_32.dll_WSACleanup
mov rcx, r14
lea r8d, [rdx - 0x73]
call fcn.1401c1bb0
mov rdx, rdi
mov rcx, rbp
call fcn.14016ca90
jmp 0x14019bed1
cmp byte [rsp + 0xe8], 0
lea rcx, [rsi + 0x100]
jne 0x14019bea0
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx]
mov r9d, dword [rcx]
sub r9d, dword [rsi + 0xf0]
cmp byte [rax], 0x3b
je 0x14019beb6
add r9d, dword [rcx + 8]
mov rax, qword [rsi + 0xf0]
lea rdx, str.CREATE__s__.s
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1401ad640
mov rcx, qword [rdi]
lea r9, str.sqlite_master
mov r8, qword [rbp + 0x20]
lea rdx, str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
mov r15, rax
movsxd rbx, r12d
mov eax, dword [rsi + 0x78]
mov dword [rsp + 0x48], eax
mov eax, dword [rsi + 0x7c]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rcx, rsi
shl rbx, 5
mov qword [rsp + 0x20], r13
mov r8, qword [r8 + rbx]
call fcn.1401addd0
mov rdx, r15
mov rcx, rbp
call fcn.140199700
mov edx, r12d
mov rcx, rsi
call fcn.140194cc0
test byte [rdi + 0x40], 8
je 0x14019bf5d
mov r8, qword [rbp + 0x20]
mov rax, qword [r8 + rbx + 0x18]
cmp qword [rax + 0x68], 0
jne 0x14019bf5d
mov r8, qword [r8 + rbx]
lea rdx, str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
mov rcx, rsi
call fcn.1401addd0
mov r8, qword [rdi]
lea rdx, str.tbl_name_q_AND_type_trigger
mov rcx, rbp
call fcn.1401ad640
mov r8, rax
mov edx, r12d
mov rcx, r14
call fcn.1401c1fc0
cmp byte [rbp + 0xb5], 0
je 0x14019c027
mov rcx, qword [rdi + 0x70]
mov r8, rdi
mov rdx, qword [rdi]
add rcx, 8
call fcn.1401a9310
test rax, rax
je 0x14019bfe9
cmp byte [rbp + 0x61], 0
jne 0x14019c027
cmp byte [rbp + 0x62], 0
jne 0x14019c027
cmp dword [rbp + 0xd4], 0
mov byte [rbp + 0x61], 1
jle 0x14019bfc5
mov dword [rbp + 0x170], 1
inc dword [rbp + 0x178]
xor eax, eax
mov word [rbp + 0x17c], ax
mov rax, qword [rbp + 0x138]
test rax, rax
je 0x14019c027
mov dword [rax + 0x18], 7
jmp 0x14019c027
mov qword [rsi + 0x140], rax
or dword [rbp + 0x2c], 1
cmp qword [rdi + 0x18], rax
jne 0x14019c027
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsi + 0xf0]
cmp qword [rdx], rax
mov rax, qword [rsp + 0xe0]
cmovne rax, rdx
mov edx, dword [rax]
sub edx, ecx
call fcn.1401c1360
add eax, 0xd
mov dword [rdi + 0x50], eax
mov rbx, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x88]
mov r12, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa0]
add rsp, 0xb0
pop r15
pop rsi
pop rbp
ret