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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r14, qword [rcx]
mov r12, rcx
mov ebx, dword [rsp + 0x100]
mov ecx, 1
mov dword [rsp + 0x48], ebx
mov dil, cl
add ebx, ecx
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x100], ebx
mov r15, rdx
lea eax, [rbx + 1]
mov ebp, eax
mov dword [rsp + 0x5c], eax
add ebp, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [r12 + 0x38]
mov dword [rsp + 0x34], ebp
add ebp, ecx
mov ebx, ebp
add ebp, ecx
mov dword [rsp + 0x54], ebp
add ebp, ecx
mov dword [rsp + 0x50], ebp
add ebp, ecx
cmp eax, ebp
mov dword [rsp + 0x58], ebx
mov rcx, r12
cmovle eax, ebp
mov dword [r12 + 0x38], eax
call fcn.180055c6c
mov rsi, rax
test rax, rax
je 0x18003d24f
test r15, r15
je 0x18003d24f
cmp dword [r15 + 0x38], 0
je 0x18003d24f
mov rdx, qword [r15]
lea r8, [0x18009a544]
mov r9d, 0x5c
lea rcx, str.sqlite__
call fcn.180047408
test eax, eax
je 0x18003d24f
mov rcx, qword [r15 + 0x70]
mov r13d, 0xfff0bdc0
mov dword [rsp + 0x40], r13d
test rcx, rcx
je 0x18003cb4e
mov rax, qword [r14 + 0x20]
xor r13d, r13d
add rax, 0x18
mov dword [rsp + 0x40], r13d
cmp qword [rax], rcx
je 0x18003cb4e
inc r13d
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x18003cb3d
mov dword [rsp + 0x40], r13d
mov rax, qword [r14 + 0x20]
xor r9d, r9d
mov r8, qword [r15]
movsxd rcx, r13d
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.18003e604
test eax, eax
jne 0x18003d24f
mov rax, qword [r15]
xor r9d, r9d
mov r8d, dword [r15 + 0x38]
mov edx, r13d
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.18003e6a0
mov eax, dword [rsp + 0x108]
mov r9, r15
mov edx, eax
mov dword [rsp + 0x64], eax
inc eax
mov dword [rsp + 0x20], 0x61
mov dword [rsp + 0x108], eax
mov r8d, r13d
lea ecx, [rax + 1]
mov eax, dword [r12 + 0x34]
cmp eax, ecx
cmovle eax, ecx
mov rcx, r12
mov dword [r12 + 0x34], eax
call fcn.18004ab7c
mov r8, qword [r15]
mov edx, ebx
mov rcx, rsi
call fcn.180022410
mov r14, qword [r15 + 0x10]
mov edx, 8
mov qword [rsp + 0x80], r14
test r14, r14
je 0x18003d142
mov rax, qword [rsp + 0xf0]
lea r8d, [rdx - 6]
test rax, rax
je 0x18003cc15
cmp rax, r14
jne 0x18003d12d
mov rax, qword [r14 + 0x48]
neg rax
sbb cl, cl
and cl, dil
test byte [r15 + 0x40], 0x20
mov byte [rsp + 0x30], cl
je 0x18003cc43
mov eax, dword [r14 + 0x64]
and al, 3
cmp al, r8b
jne 0x18003cc43
movzx ebx, word [r14 + 0x5e]
mov r8, r15
mov edi, ebx
jmp 0x18003cc58
mov r8, r14
movzx ebx, word [r14 + 0x60]
mov edi, ebx
test byte [r14 + 0x64], dl
je 0x18003cc58
movzx edi, word [r14 + 0x5e]
mov r8, qword [r8]
lea eax, [rdi - 1]
mov edx, dword [rsp + 0x54]
mov rcx, rsi
mov dword [rsp + 0x4c], eax
call fcn.180022410
mov eax, dword [r12 + 0x38]
lea ecx, [rbp - 1]
mov r8d, dword [rsp + 0x108]
add ecx, edi
cmp eax, ecx
mov dword [rsp + 0x20], r13d
mov edx, 0x61
cmovle eax, ecx
mov rcx, rsi
mov dword [r12 + 0x38], eax
mov r9d, dword [r14 + 0x58]
call fcn.180022394
mov rdx, r14
mov rcx, r12
call fcn.180022d74
mov r9d, dword [rsp + 0x5c]
mov r8d, ebx
and dword [rsp + 0x20], 0
mov edx, 0x46
mov rcx, rsi
call fcn.180022394
mov ebx, dword [rsp + 0x100]
mov edx, 0x46
movzx r8d, word [r14 + 0x5e]
mov rcx, rsi
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
call fcn.180022394
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.180022394
mov r9d, 0xfffffff8
lea r8, [0x18009c840]
mov edx, eax
mov rcx, rsi
call fcn.180022cb4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18003cd35
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r8d, dword [rsp + 0x108]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r9 + 0x24]
call fcn.180022394
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
mov dword [rsp + 0x60], eax
lea edx, [r8 + 0x46]
call fcn.180022394
mov eax, dword [rsi + 0x90]
lea ebx, [rdi - 1]
mov dword [rsp + 0x44], eax
test ebx, ebx
jle 0x18003cfa7
dec dword [r12 + 0x44]
mov eax, dword [r12 + 0x44]
mov rcx, qword [rsp + 0x78]
mov edx, edi
mov dword [rsp + 0x3c], eax
lea rdx, [rdx*4 - 4]
call fcn.180006d78
mov qword [rsp + 0x70], rax
mov rdi, rax
test rax, rax
je 0x18003d116
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xb]
call fcn.180022394
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x44], eax
mov eax, 1
cmp ebx, eax
jne 0x18003ce06
cmp word [r14 + 0x5e], ax
jne 0x18003ce06
cmp byte [r14 + 0x62], 0
je 0x18003ce06
and dword [rsp + 0x20], 0
lea edx, [rax + 0x32]
mov r9d, dword [rsp + 0x3c]
mov r8d, ebp
mov rcx, rsi
call fcn.180022394
xor r15d, r15d
mov qword [rsp + 0x68], rdi
xor r13d, r13d
mov rdx, qword [r14 + 0x40]
mov rcx, r12
mov rdx, qword [r15 + rdx]
call fcn.18004042c
mov r9d, dword [rsp + 0x38]
mov r8d, r13d
and dword [rsp + 0x20], 0
mov edx, 0x46
mov rcx, rsi
mov rdi, rax
call fcn.180022394
mov r8d, dword [rsp + 0x108]
mov r9d, r13d
mov ebx, dword [rsp + 0x34]
mov edx, 0x5a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.180022394
mov ecx, r13d
xor r9d, r9d
add ecx, ebp
mov r8d, ebx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
lea edx, [r9 + 0x34]
call fcn.180022394
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.180022cb4
mov rdx, qword [rsp + 0x68]
mov dword [rdx], ebx
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18003ceb7
lea rcx, [rax + rax*2]
mov r8d, 0x80
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], r8w
mov eax, dword [rsp + 0x4c]
add rdx, 4
inc r13d
mov qword [rsp + 0x68], rdx
add r15, 8
cmp r13d, eax
jl 0x18003ce11
mov r9d, dword [rsp + 0x38]
mov r8d, eax
and dword [rsp + 0x20], 0
mov edx, 0x46
mov rcx, rsi
call fcn.180022394
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r8 + 0xb]
call fcn.180022394
mov edx, dword [rsp + 0x44]
mov rcx, rsi
dec edx
call fcn.180022da0
mov ecx, dword [rsi + 0x90]
xor ebx, ebx
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0xe8]
mov r12d, dword [rsp + 0x4c]
mov r13d, dword [rsp + 0x108]
lea r14d, [rbx + 1]
mov dword [rax + 8], ecx
mov edx, dword [rdi]
mov rcx, rsi
call fcn.180022da0
mov ecx, dword [rsi + 0x90]
mov r9d, ebx
mov r8d, r13d
mov edx, 0x5a
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180022394
add ebx, r14d
lea rdi, [rdi + 4]
cmp ebx, r12d
jl 0x18003cf3e
mov edx, dword [rsp + 0x3c]
mov rcx, rsi
call fcn.1800227b0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.180006aac
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0xe0]
mov r13d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x34]
mov rcx, rsi
mov ebx, dword [rsp + 0x100]
mov r9d, ebx
mov dword [rsp + 0x20], edi
mov edi, 1
mov r8d, edi
lea edx, [rdi + 0x3e]
call fcn.180022394
lea r9d, [rdi - 9]
mov edx, eax
lea r8, [0x18009fb30]
mov rcx, rsi
call fcn.180022cb4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18003cfff
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea edx, [rdi + 1]
mov word [rax + rcx*8 - 0x16], dx
mov r9d, dword [rsp + 0x44]
mov edx, 5
mov r8d, dword [rsp + 0x108]
mov rcx, rsi
and dword [rsp + 0x20], 0
call fcn.180022394
mov eax, dword [rsp + 0x50]
xor r8d, r8d
mov r9d, ebx
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.180022394
mov r9d, 0xfffffff8
lea r8, [0x18009c6e0]
mov edx, eax
mov rcx, rsi
call fcn.180022cb4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x18003d06a
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], di
mov ebx, dword [rsp + 0x34]
mov r9d, 3
mov r8d, dword [rsp + 0x58]
mov rcx, rsi
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x59]
call fcn.180022394
xor r9d, r9d
lea r8, [0x180096f94]
mov edx, eax
mov rcx, rsi
call fcn.180022cb4
mov r9d, dword [rsp + 0x48]
mov edx, 0x79
mov r8d, dword [rsp + 0xf8]
mov rcx, rsi
and dword [rsp + 0x20], 0
call fcn.180022394
mov eax, dword [rsp + 0x48]
mov r9d, ebx
mov r8d, dword [rsp + 0xf8]
mov edx, 0x7a
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180022394
movsxd r9, dword [rsi + 0x90]
test r9d, r9d
jle 0x18003d106
mov rax, qword [rsi + 0x88]
lea rcx, [r9 + r9*2]
mov r8d, 8
mov word [rax + rcx*8 - 0x16], r8w
mov r9d, dword [rsi + 0x90]
mov edx, dword [rsp + 0x60]
mov rcx, rsi
call fcn.180022da0
mov dword [rax + 8], r9d
mov rax, qword [rsp + 0xf0]
mov r8d, 2
mov dil, byte [rsp + 0x30]
lea edx, [r8 + 6]
mov r14, qword [r14 + 0x28]
mov qword [rsp + 0x80], r14
test r14, r14
jne 0x18003cc07
xor r15d, r15d
cmp qword [rsp + 0xf0], r15
jne 0x18003d24f
test dil, dil
je 0x18003d24f
mov r9d, dword [rsp + 0x50]
lea edx, [r15 + 0x5d]
mov r8d, dword [rsp + 0x64]
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.180022394
mov r8d, dword [rsp + 0x50]
lea edx, [r15 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.180022394
mov r9d, dword [rsp + 0x54]
lea edx, [r15 + 0x49]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov ebx, eax
call fcn.180022394
mov r8d, dword [rsp + 0x58]
lea r9d, [r15 + 3]
mov edi, dword [rsp + 0x34]
lea edx, [r15 + 0x5c]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.180022394
xor r9d, r9d
lea r8, [0x180096f94]
mov edx, eax
mov rcx, rsi
call fcn.180022cb4
mov r14d, dword [rsp + 0x48]
lea edx, [r15 + 0x79]
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.180022394
mov r8d, dword [rsp + 0xf8]
lea edx, [r15 + 0x7a]
mov r9d, edi
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.180022394
movsxd r9, dword [rsi + 0x90]
test r9d, r9d
jle 0x18003d241
mov rax, qword [rsi + 0x88]
lea rdx, [r9 + r9*2]
lea r8d, [r15 + 8]
mov word [rax + rdx*8 - 0x16], r8w
mov r9d, dword [rsi + 0x90]
mov edx, ebx
mov rcx, rsi
call fcn.180022da0
mov dword [rax + 8], r9d
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret