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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x238
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x2b0]
xor r13d, r13d
cmp dword [rsp + 0x2a8], r13d
mov r15, rcx
mov qword [rsp + 0x78], rax
mov rbp, r9
mov qword [rsp + 0x50], r9
mov r14, r8
mov qword [rax], r13
mov rbx, rdx
mov rcx, qword [rcx + 0x18]
mov eax, r13d
setne al
mov qword [rsp + 0x68], r8
mov dword [rsp + 0x30], eax
mov esi, r13d
mov qword [rsp + 0x70], rdx
mov r12d, r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x34], r13d
test rcx, rcx
je 0x1802d23f5
call qword [0x1804e1190]
mov edx, 0x38
mov rcx, r15
call fcn.18029e3c0
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
je 0x1802d2430
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x1a0
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x1802d29a4
mov qword [rsp + 0x80], r15
test r12, r12
je 0x1802d24bc
cmp qword [r15 + 0x2d8], r13
je 0x1802d2471
mov rdx, r12
mov rcx, r15
call fcn.18029dfa0
jmp 0x1802d24bc
cmp r12, qword [r15 + 0x1c8]
jae 0x1802d24b4
cmp r12, qword [r15 + 0x1b8]
jb 0x1802d2497
mov rax, qword [r15 + 0x1b0]
mov qword [r12], rax
mov qword [r15 + 0x1b0], r12
jmp 0x1802d24bc
cmp r12, qword [r15 + 0x1c0]
jb 0x1802d24b4
mov rax, qword [r15 + 0x1a0]
mov qword [r12], rax
mov qword [r15 + 0x1a0], r12
jmp 0x1802d24bc
mov rcx, r12
call fcn.18029df30
mov r12, r13
mov qword [rsp + 0x40], r13
cmp byte [r15 + 0x69], r13b
jne 0x1802d24d2
mov rcx, r15
call fcn.1802b2840
mov r9, rbx
lea rcx, [rsp + 0x80]
mov r8, r14
xor edx, edx
call fcn.1802ea8b0
mov qword [rsp + 0x48], rax
mov rbx, rax
test rax, rax
je 0x1802d29fc
cmp dword [rax + 0x54], r12d
jne 0x1802d29e5
test byte [rax + 0x40], 0x80
jne 0x1802d29dc
cmp qword [rax + 0x18], r12
jne 0x1802d29d3
mov qword [rdi + 0x30], rax
mov rcx, 0xfffffffffff0bdc0
mov rdx, qword [rax + 0x70]
test rdx, rdx
je 0x1802d254c
mov rax, qword [r15 + 0x20]
mov rcx, r13
add rax, 0x18
cmp qword [rax], rdx
je 0x1802d254c
nop word [rax + rax]
inc rcx
lea rax, [rax + 0x20]
cmp qword [rax], rdx
jne 0x1802d2540
mov rax, qword [r15 + 0x20]
mov r14d, r13d
shl rcx, 5
mov rcx, qword [rcx + rax]
mov qword [rdi + 0x28], rcx
movsx r10d, word [rbx + 0x46]
test r10d, r10d
jle 0x1802d25c2
mov r11, qword [rbx + 8]
nop dword [rax]
movsxd rax, r14d
mov r9, rbp
shl rax, 5
mov rax, qword [rax + r11]
sub r9, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
cmp edx, ecx
jne 0x1802d2596
test edx, edx
je 0x1802d25c2
inc rax
jmp 0x1802d2581
lea r8, [0x1803c58a0]
movzx r8d, byte [rcx + r8]
mov rcx, rdx
lea rdx, [0x1803c58a0]
movzx edx, byte [rcx + rdx]
cmp edx, r8d
jne 0x1802d25ba
inc rax
jmp 0x1802d2581
inc r14d
cmp r14d, r10d
jl 0x1802d2570
cmp r14d, r10d
je 0x1802d29bf
cmp dword [rsp + 0x2a8], r12d
je 0x1802d2676
mov eax, dword [r15 + 0x30]
mov r8, r13
bt rax, 0xe
jae 0x1802d2624
mov r9, qword [rbx + 0x20]
test r9, r9
je 0x1802d2624
movsxd rdx, dword [r9 + 0x28]
test rdx, rdx
jle 0x1802d261b
lea rcx, [r9 + 0x40]
nop dword [rax]
cmp dword [rcx], r14d
lea rax, str.foreign_key
cmovne rax, r8
add rcx, 0x10
mov r8, rax
sub rdx, 1
jne 0x1802d2600
mov r9, qword [r9 + 8]
test r9, r9
jne 0x1802d25f0
mov r10, qword [rbx + 0x10]
test r10, r10
je 0x1802d266d
nop dword [rax]
movzx eax, word [r10 + 0x5e]
cmp r13w, ax
jae 0x1802d2664
mov rdx, qword [r10 + 8]
movzx r9d, ax
movsx ecx, word [rdx]
mov eax, ecx
cmp ecx, r14d
je 0x1802d2653
cmp cx, 0xfffe
jne 0x1802d265a
lea r8, str.indexed
add rdx, 2
sub r9, 1
jne 0x1802d2643
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x1802d2630
test r8, r8
jne 0x1802d298e
lea rcx, [rsp + 0x80]
call fcn.1802c2fe0
mov rdi, rax
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x18], rdi
test rdi, rdi
je 0x1802d2929
mov rcx, qword [rbx + 0x70]
mov esi, 0xfff0bdc0
mov rbp, 0xfffffffffff0bdc0
test rcx, rcx
je 0x1802d26ce
mov rax, qword [r15 + 0x20]
mov esi, r13d
add rax, 0x18
mov rbp, r13
cmp qword [rax], rcx
je 0x1802d26ce
inc esi
lea rax, [rax + 0x20]
inc rbp
cmp qword [rax], rcx
jne 0x1802d26c0
movsxd rdx, dword [rdi + 0x90]
mov ebx, dword [rcx + 4]
mov r8d, dword [rcx]
mov r9d, dword [rsp + 0x30]
cmp dword [rdi + 0x94], edx
jg 0x1802d2701
mov dword [rsp + 0x20], r8d
mov edx, 2
mov r8d, esi
mov rcx, rdi
call fcn.1802c3380
mov edx, eax
jmp 0x1802d272f
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 2
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r13
mov rax, qword [rdi]
cmp byte [rax + 0x61], r12b
jne 0x1802d274f
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], ebx
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x1802d2775
lea rcx, [rax + rax*2]
mov edx, 1
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov eax, dword [rdi + 0x90]
add eax, 6
cmp eax, dword [rdi + 0x94]
jle 0x1802d2794
mov rcx, rdi
call fcn.1802c31f0
test eax, eax
je 0x1802d2794
mov rbx, r13
jmp 0x1802d283f
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0xa1
mov qword [rax + rcx*8 + 8], r13
mov qword [rax + rcx*8 + 0x10], r13
lea rbx, [rax + rcx*8]
mov qword [rbx + 0x18], 0x60
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x28], r13
mov byte [rbx + 0x30], 0x20
mov dword [rbx + 0x34], r13d
mov dword [rbx + 0x38], 5
mov eax, dword [rdi + 0x90]
add eax, 5
mov dword [rbx + 0x38], eax
mov eax, 1
mov dword [rbx + 0x3c], eax
mov byte [rbx + 0x31], r12b
mov qword [rbx + 0x40], r13
mov word [rbx + 0x32], r13w
mov qword [rbx + 0x48], 0x59
mov dword [rbx + 0x50], r13d
mov dword [rbx + 0x54], eax
mov qword [rbx + 0x58], r13
mov dword [rbx + 0x60], 0x50
mov qword [rbx + 0x64], rax
mov dword [rbx + 0x6c], r13d
mov qword [rbx + 0x70], r13
mov qword [rbx + 0x78], 0x44
mov qword [rbx + 0x80], r13
mov qword [rbx + 0x88], r13
add dword [rdi + 0x90], 6
mov eax, dword [rdi + 0xcc]
bts eax, esi
mov dword [rdi + 0xcc], eax
cmp esi, 1
je 0x1802d2878
mov rax, qword [rdi]
shl rbp, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + rbp + 8]
cmp byte [rax + 0x11], r12b
je 0x1802d2878
mov eax, dword [rdi + 0xd0]
bts eax, esi
mov dword [rdi + 0xd0], eax
mov rbp, qword [rsp + 0x48]
cmp byte [r15 + 0x61], r12b
jne 0x1802d2920
mov dword [rbx + 4], esi
mov eax, dword [rbp + 0x38]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0xc], eax
mov rcx, qword [rdi]
mov r8, qword [rbp]
cmp byte [rcx + 0x61], r12b
je 0x1802d28ad
xor edx, edx
call fcn.1802c4360
jmp 0x1802d28c3
mov rdx, qword [rdi + 0x88]
xor r9d, r9d
add rdx, 0x30
mov rcx, rdi
call fcn.1802c4570
cmp byte [r15 + 0x61], r12b
jne 0x1802d2920
cmp dword [rsp + 0x2a8], r12d
je 0x1802d28d7
mov byte [rbx + 0x18], 0x61
mov eax, dword [rbp + 0x38]
lea rdx, [rsp + 0x80]
mov dword [rbx + 0x20], eax
mov rcx, rdi
mov dword [rbx + 0x24], esi
mov byte [rbx + 0x19], 0xfd
movsx eax, word [rbp + 0x46]
inc eax
mov dword [rbx + 0x28], eax
movsx eax, word [rbp + 0x46]
mov dword [rbx + 0x50], eax
mov eax, 1
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xb4], eax
mov word [rsp + 0x190], r13w
call fcn.1802c5540
mov rbp, qword [rsp + 0x50]
mov esi, dword [rsp + 0x34]
mov rdi, qword [rsp + 0x58]
mov word [rdi + 8], r14w
mov qword [rdi + 0x20], r15
cmp byte [r15 + 0x69], r12b
jne 0x1802d2945
mov rcx, r15
call fcn.1802b28b0
cmp byte [r15 + 0x61], r12b
jne 0x1802d29a4
mov rdx, qword [rsp + 0x2a0]
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.1802d21d0
mov ebx, dword [rsp + 0x38]
mov esi, eax
inc ebx
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], ebx
cmp ebx, 0x32
jge 0x1802d299f
cmp eax, 0x11
jne 0x1802d299f
mov r12, qword [rsp + 0x40]
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
jmp 0x1802d2430
lea rdx, str.cannot_open__s_column_for_writing
mov rcx, r15
call fcn.1802a07a0
jmp 0x1802d2a11
mov r12, qword [rsp + 0x40]
test esi, esi
jne 0x1802d2a27
cmp byte [r15 + 0x61], r13b
jne 0x1802d2a27
mov rax, qword [rsp + 0x78]
mov qword [rax], rdi
jmp 0x1802d2b0f
mov r8, rbp
lea rdx, str.no_such_column:___s_
mov rcx, r15
call fcn.1802a07a0
jmp 0x1802d2a11
lea rdx, str.cannot_open_view:__s
jmp 0x1802d29ec
lea rdx, str.cannot_open_table_without_rowid:__s
jmp 0x1802d29ec
lea rdx, str.cannot_open_virtual_table:__s
mov r8, r14
lea rcx, [rsp + 0x80]
call fcn.1802a1640
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1802d2a14
mov qword [rsp + 0x88], r13
mov r12, rax
mov esi, 1
cmp byte [r15 + 0x69], r13b
jne 0x1802d2a27
mov rcx, r15
call fcn.1802b28b0
test rdi, rdi
je 0x1802d2b0f
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1802d2a5a
mov eax, dword [rbx + 0x24]
cmp eax, 0x2df20da3
je 0x1802d2a4a
cmp eax, 0x319c2973
jne 0x1802d2a52
mov rcx, rbx
call fcn.1802c6d20
mov rcx, rbx
call fcn.1802c7250
cmp qword [r15 + 0x2d8], r13
je 0x1802d2a73
mov rdx, rdi
mov rcx, r15
call fcn.18029dfa0
jmp 0x1802d2b0f
cmp rdi, qword [r15 + 0x1c8]
jae 0x1802d2ab4
cmp rdi, qword [r15 + 0x1b8]
jb 0x1802d2a98
mov rax, qword [r15 + 0x1b0]
mov qword [rdi], rax
mov qword [r15 + 0x1b0], rdi
jmp 0x1802d2b0f
cmp rdi, qword [r15 + 0x1c0]
jb 0x1802d2ab4
mov rax, qword [r15 + 0x1a0]
mov qword [rdi], rax
mov qword [r15 + 0x1a0], rdi
jmp 0x1802d2b0f
cmp dword [0x1804e1110], r13d
je 0x1802d2b06
mov rcx, qword [0x1804f2d58]
test rcx, rcx
je 0x1802d2acf
call qword [0x1804e1190]
mov rcx, rdi
call qword [0x1804e1148]
dec qword [0x1804f2ae8]
movsxd rcx, eax
sub qword [0x1804f2aa0], rcx
mov rcx, rdi
call qword [0x1804e1138]
mov rcx, qword [0x1804f2d58]
test rcx, rcx
je 0x1802d2b0f
call qword [0x1804e11a0]
jmp 0x1802d2b0f
mov rcx, rdi
call qword [0x1804e1138]
lea rax, [0x1803ed540]
test r12, r12
mov r8, r13
mov r9, r12
cmovne r8, rax
mov edx, esi
mov rcx, r15
call fcn.1802a1560
test r12, r12
je 0x1802d2bf0
cmp qword [r15 + 0x2d8], r13
je 0x1802d2b4f
mov rdx, r12
mov rcx, r15
call fcn.18029dfa0
jmp 0x1802d2bf0
cmp r12, qword [r15 + 0x1c8]
jae 0x1802d2b95
cmp r12, qword [r15 + 0x1b8]
jb 0x1802d2b78
mov rax, qword [r15 + 0x1b0]
mov qword [r12], rax
mov qword [r15 + 0x1b0], r12
jmp 0x1802d2bf0
cmp r12, qword [r15 + 0x1c0]
jb 0x1802d2b95
mov rax, qword [r15 + 0x1a0]
mov qword [r12], rax
mov qword [r15 + 0x1a0], r12
jmp 0x1802d2bf0
cmp dword [0x1804e1110], r13d
je 0x1802d2be7
mov rcx, qword [0x1804f2d58]
test rcx, rcx
je 0x1802d2bb0
call qword [0x1804e1190]
mov rcx, r12
call qword [0x1804e1148]
dec qword [0x1804f2ae8]
movsxd rcx, eax
sub qword [0x1804f2aa0], rcx
mov rcx, r12
call qword [0x1804e1138]
mov rcx, qword [0x1804f2d58]
test rcx, rcx
je 0x1802d2bf0
call qword [0x1804e11a0]
jmp 0x1802d2bf0
mov rcx, r12
call qword [0x1804e1138]
mov rdi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x80]
test rdi, rdi
je 0x1802d2cc3
test rbx, rbx
je 0x1802d2c68
cmp qword [rbx + 0x2d8], r13
je 0x1802d2c27
mov rdx, rdi
mov rcx, rbx
call fcn.18029dfa0
jmp 0x1802d2cc3
cmp rdi, qword [rbx + 0x1c8]
jae 0x1802d2c68
cmp rdi, qword [rbx + 0x1b8]
jb 0x1802d2c4c
mov rax, qword [rbx + 0x1b0]
mov qword [rdi], rax
mov qword [rbx + 0x1b0], rdi
jmp 0x1802d2cc3
cmp rdi, qword [rbx + 0x1c0]
jb 0x1802d2c68
mov rax, qword [rbx + 0x1a0]
mov qword [rdi], rax
mov qword [rbx + 0x1a0], rdi
jmp 0x1802d2cc3
cmp dword [0x1804e1110], r13d
je 0x1802d2cba
mov rcx, qword [0x1804f2d58]
test rcx, rcx
je 0x1802d2c83
call qword [0x1804e1190]
mov rcx, rdi
call qword [0x1804e1148]
dec qword [0x1804f2ae8]
mov rcx, rdi
movsxd rdx, eax
sub qword [0x1804f2aa0], rdx
call qword [0x1804e1138]
mov rcx, qword [0x1804f2d58]
test rcx, rcx
je 0x1802d2cc3
call qword [0x1804e11a0]
jmp 0x1802d2cc3
mov rcx, rdi
call qword [0x1804e1138]
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x1802d2cd8
mov rcx, rbx
call fcn.1802dc690
test rbx, rbx
je 0x1802d2cfd
movzx eax, byte [rsp + 0xa4]
sub dword [rbx + 0x178], eax
jne 0x1802d2cf5
movzx r13d, word [rbx + 0x17e]
mov word [rbx + 0x17c], r13w
cmp byte [r15 + 0x61], 0
mov byte [rsp + 0xa4], 0
jne 0x1802d2d1a
cmp esi, 0xc0a
je 0x1802d2d1a
and esi, dword [r15 + 0x54]
jmp 0x1802d2d24
mov rcx, r15
call fcn.18029e8a0
mov esi, eax
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x1802d2d33
call qword [0x1804e11a0]
mov eax, esi
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret