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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx]
mov r14d, r9d
mov rsi, r8
mov r12, rdx
mov rbx, rcx
test r8, r8
je 0x140063849
cmp dword [r8 + 8], 0
jbe 0x140063849
cmp byte [rdi + 0xa1], 0
je 0x14006381e
lea rdx, str.corrupt_database
call fcn.140046e00
inc dword [rbx + 0x4c]
jmp 0x140063cde
mov rcx, rdi
mov r15, r8
call fcn.14004b860
mov ebp, eax
test eax, eax
jns 0x140063853
lea rdx, str.unknown_database__T
mov r8, r12
mov rcx, rbx
call fcn.140046e00
inc dword [rbx + 0x4c]
jmp 0x140063cde
movzx ebp, byte [rdi + 0xa0]
mov r15, rdx
test ebp, ebp
js 0x140063cde
mov r12d, 1
test r14d, r14d
je 0x140063888
cmp dword [rsi + 8], 0
jbe 0x140063885
cmp ebp, r12d
je 0x140063885
lea rdx, str.temporary_table_name_must_be_unqualified
mov rcx, rbx
call fcn.140046e00
jmp 0x140063cde
mov ebp, r12d
movups xmm0, xmmword [r15]
mov rdx, r15
mov rcx, rdi
movups xmmword [rbx + 0x238], xmm0
call fcn.1400554b0
mov rsi, rax
test rax, rax
je 0x140063cde
mov rdx, rax
mov rcx, rbx
call fcn.140041400
test eax, eax
jne 0x140063c8f
cmp byte [rdi + 0xa0], r12b
mov rax, qword [rdi + 0x20]
lea rcx, str.sqlite_master
cmove r14d, r12d
movsxd r12, ebp
lea r8, str.sqlite_temp_master
shl r12, 5
cmp r14d, 1
mov rax, qword [r12 + rax]
cmovne r8, rcx
xor r9d, r9d
lea edx, [r9 + 0x12]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], rax
call fcn.14003bd30
test eax, eax
jne 0x140063c8f
cmp dword [rsp + 0x80], 0
mov eax, 4
je 0x140063925
lea edx, [rax + 4]
lea eax, [rdx - 2]
jmp 0x14006392a
mov edx, 2
test r14d, r14d
cmovne edx, eax
cmp dword [rsp + 0x88], 0
jne 0x14006395a
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov r8, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14003bd30
test eax, eax
jne 0x140063c8f
cmp byte [rbx + 0x1f3], 0
jne 0x1400639e9
mov rax, qword [rdi + 0x20]
mov rcx, rbx
mov r14, qword [r12 + rax]
call fcn.14005d460
test eax, eax
jne 0x140063c8f
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14004c1e0
test rax, rax
je 0x1400639bf
cmp dword [rsp + 0x90], 0
mov rcx, rbx
jne 0x1400639b3
lea rdx, str.table__T_already_exists
mov r8, r15
call fcn.140046e00
jmp 0x140063c8f
mov edx, ebp
call fcn.1400427e0
jmp 0x140063c8f
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14004c0f0
test rax, rax
je 0x1400639e9
lea rdx, str.there_is_already_an_index_named__s
mov r8, rsi
mov rcx, rbx
call fcn.140046e00
jmp 0x140063c8f
mov edx, 0x80
mov rcx, rdi
call fcn.140044680
mov r14, rax
test rax, rax
je 0x140063c81
xor edx, edx
mov r8d, 0x80
mov rcx, rax
call sub.MSVCR120.dll_memset
or eax, 0xffffffff
mov qword [r14], rsi
mov word [r14 + 0x40], ax
mov rcx, qword [rdi + 0x20]
mov eax, 1
mov rdx, qword [rcx + r12 + 0x18]
mov word [r14 + 0x44], ax
mov eax, 0xc8
mov qword [r14 + 0x70], rdx
mov word [r14 + 0x38], ax
cmp byte [rbx + 0x1e], 0
mov qword [rbx + 0x220], r14
jne 0x140063a66
lea rdx, str.sqlite_sequence
mov rcx, rsi
call sub.MSVCR120.dll_strcmp
test eax, eax
jne 0x140063a66
mov rax, qword [r14 + 0x70]
mov qword [rax + 0x68], r14
cmp byte [rdi + 0xa1], 0
jne 0x140063cde
mov rcx, rbx
call fcn.140050be0
mov rsi, rax
test rax, rax
je 0x140063cde
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call fcn.14003d380
cmp dword [rsp + 0x88], 0
je 0x140063ab9
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90
mov rcx, rsi
mov dword [rsp + 0x20], 0
call fcn.140068970
mov r12d, dword [rbx + 0x54]
mov r8d, ebp
mov edx, 0x33
inc r12d
mov rcx, rsi
mov dword [rsp + 0x20], 2
lea r14d, [r12 + 1]
mov dword [rbx + 0x1a0], r12d
lea r15d, [r14 + 1]
mov dword [rbx + 0x1a4], r14d
mov r9d, r15d
mov dword [rbx + 0x54], r15d
call fcn.140068970
mov edx, ebp
mov rcx, rsi
call fcn.1400730a0
xor r9d, r9d
mov r8d, r15d
lea edx, [r9 + 0x2d]
mov rcx, rsi
mov dword [rsp + 0x20], 0
call fcn.140068970
test dword [rdi + 0x2c], 0x8000
mov ecx, 1
mov r8d, 4
lea edx, [rcx + 0x18]
mov r9d, r15d
cmovne r8d, ecx
mov rcx, rsi
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x20], 0
call fcn.140068970
mov r9d, 2
lea edx, [r9 + 0x32]
mov r8d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.140068970
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x18]
xor edi, edi
mov r9d, r15d
movzx r8d, byte [rcx + 0x71]
lea edx, [rdi + 0x19]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140068970
lea r9d, [rdi + 5]
lea edx, [rdi + 0x34]
mov r8d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.140068970
mov edx, dword [rsi + 0x3c]
mov eax, dword [rsp + 0x60]
cmp edx, eax
jbe 0x140063bb3
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
cmp dword [rsp + 0x80], edi
jne 0x140063bf0
cmp dword [rsp + 0x88], edi
jne 0x140063bf0
mov r9d, r14d
mov r8d, ebp
mov edx, 0x79
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140068970
mov dword [rbx + 0x1d0], eax
jmp 0x140063c06
xor r8d, r8d
mov r9d, r14d
mov rcx, rsi
lea edx, [r8 + 0x19]
mov dword [rsp + 0x20], edi
call fcn.140068970
mov edx, ebp
mov rcx, rbx
call fcn.140055730
xor r8d, r8d
mov r9d, r12d
lea edx, [r8 + 0x4a]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140068970
xor r8d, r8d
mov r9d, r15d
lea edx, [r8 + 0x1c]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140068970
xor r8d, r8d
mov r9d, r15d
lea edx, [r8 + 0x4b]
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.140068970
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140063c69
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x3d]
mov dword [rsp + 0x20], edi
call fcn.140068970
jmp 0x140063cde
mov byte [rdi + 0x50], 1
inc dword [rbx + 0x4c]
mov dword [rbx + 0x18], 7
test rdi, rdi
je 0x140063cd6
cmp qword [rdi + 0x320], 0
je 0x140063cab
mov rdx, rsi
mov rcx, rdi
call fcn.14002c560
jmp 0x140063cde
cmp rsi, qword [rdi + 0x168]
jb 0x140063cd6
cmp rsi, qword [rdi + 0x170]
jae 0x140063cd6
mov rax, qword [rdi + 0x160]
mov qword [rsi], rax
dec dword [rdi + 0x14c]
mov qword [rdi + 0x160], rsi
jmp 0x140063cde
mov rcx, rsi
call fcn.14000e700
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret