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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
mov r13d, dword [rsp + 0x100]
mov r12, rdx
mov rsi, qword [rcx]
mov rdx, rcx
mov dword [rsp + 0x50], r13d
mov dil, 1
inc r13d
mov qword [rsp + 0x80], rsi
mov dword [rsp + 0x4c], r13d
inc r13d
mov rbx, qword [rdx + 0x10]
mov dword [rsp + 0x54], r13d
inc r13d
mov r14d, r13d
mov dword [rsp + 0x40], r13d
lea ebp, [r13 + 1]
add r13d, 2
mov dword [rsp + 0x68], r13d
inc r13d
mov dword [rsp + 0x64], r13d
inc r13d
cmp dword [rdx + 0x38], r13d
mov ecx, r13d
mov dword [rsp + 0x5c], ebp
cmovg ecx, dword [rdx + 0x38]
mov dword [rdx + 0x38], ecx
test rbx, rbx
jne 0x1400206ab
cmp qword [rdx + 0xa0], rbx
jne 0x140020697
test byte [rsi + 0x5c], 8
jne 0x140020697
mov byte [rdx + 0x23], dil
mov rcx, rdx
call fcn.14007bdb0
mov rbx, rax
test rax, rax
je 0x140021154
test r12, r12
je 0x140021154
cmp dword [r12 + 0x38], 0
je 0x140021154
mov rdx, qword [r12]
lea r8, [0x14016c0c4]
mov r9d, 0x5c
lea rcx, str.sqlite__
call fcn.1400422b0
test eax, eax
je 0x140021154
mov rdx, qword [r12 + 0x70]
mov rcx, rsi
mov qword [rsp + 0x98], r15
call fcn.140072610
mov rcx, qword [rsi + 0x20]
xor r9d, r9d
mov rsi, qword [rsp + 0xe0]
mov r8, qword [r12]
movsxd r15, eax
mov rdx, r15
mov dword [rsp + 0x60], r15d
shl rdx, 5
mov rdx, qword [rdx + rcx]
mov rcx, rsi
mov qword [rsp + 0x20], rdx
lea edx, [r9 + 0x1c]
call fcn.14004c8a0
test eax, eax
jne 0x14002114c
mov rax, qword [r12]
xor r9d, r9d
mov r8d, dword [r12 + 0x38]
mov edx, r15d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140077470
mov ecx, dword [rsp + 0x108]
mov r9, r12
mov r8d, dword [rsp + 0x60]
mov edx, ecx
mov dword [rsp + 0x7c], ecx
inc ecx
mov r15d, ecx
mov dword [rsp + 0x44], ecx
inc ecx
mov dword [rsp + 0x20], 0x6a
cmp dword [rsi + 0x34], ecx
cmovg ecx, dword [rsi + 0x34]
mov dword [rsi + 0x34], ecx
mov rcx, rsi
call fcn.140068970
mov r8, qword [r12]
mov edx, ebp
mov rcx, rbx
call fcn.140084090
mov rbp, qword [r12 + 0x10]
xor ecx, ecx
mov qword [rsp + 0x70], rbp
test rbp, rbp
je 0x140021062
mov rax, qword [rsp + 0xf0]
nop word [rax + rax]
test rax, rax
je 0x1400207ce
cmp rax, rbp
jne 0x140021050
cmp qword [rbp + 0x48], 0
movzx eax, dil
cmovne ecx, eax
test byte [r12 + 0x40], 0x20
mov byte [rsp + 0x100], cl
je 0x1400208a5
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
jne 0x1400208a5
movzx edi, word [rbp + 0x5e]
mov r8, qword [r12]
lea r12d, [rdi - 1]
mov edx, dword [rsp + 0x68]
mov rcx, rbx
call fcn.140084090
mov eax, dword [rsp + 0x60]
lea ecx, [r12 + r13]
cmp dword [rsi + 0x38], ecx
mov r8d, r15d
mov edx, 0x6a
mov dword [rsp + 0x20], eax
cmovg ecx, dword [rsi + 0x38]
mov dword [rsi + 0x38], ecx
mov rcx, rbx
mov r9d, dword [rbp + 0x58]
call fcn.14007b330
mov rdx, rbp
mov rcx, rsi
call fcn.140086780
mov esi, dword [rsp + 0x4c]
mov r8d, edi
inc esi
mov edx, 0x43
mov r9d, esi
mov rcx, rbx
call fcn.14007b2c0
mov edi, dword [rsp + 0x4c]
mov edx, 0x43
movzx r8d, word [rbp + 0x5e]
mov rcx, rbx
lea r9d, [rdi + 2]
call fcn.14007b2c0
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x1400208c4
mov r9d, esi
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov edx, 0xa4
mov rcx, rbx
call fcn.140038220
mov edx, eax
jmp 0x1400208ed
test byte [rbp + 0x64], 8
movzx edi, word [rbp + 0x60]
mov r8, qword [rbp]
je 0x140020802
movzx r12d, word [rbp + 0x5e]
dec r12d
jmp 0x140020806
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], 0xa4
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x140020909
lea r8, [0x14016b348]
mov edx, 0xfffffff8
call fcn.140034c90
jmp 0x140020951
test edx, edx
jns 0x140020915
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140020942
mov r9d, 0xfffffff8
lea r8, [0x14016b348]
mov rcx, rbx
call fcn.140092010
jmp 0x140020951
lea rax, [0x14016b348]
mov byte [rdx + 1], 0xf8
mov qword [rdx + 0x10], rax
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140020972
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
mov r8d, r15d
mov edx, 0x25
mov rcx, rbx
call fcn.14007b250
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x58], eax
mov esi, eax
lea edx, [r8 + 0x43]
call fcn.14007b2c0
mov edi, dword [rbx + 0xb8]
test r12d, r12d
jle 0x140020d13
mov rcx, rbx
call fcn.140084160
mov rcx, qword [rsp + 0x80]
mov r15d, eax
movsxd rdx, r12d
shl rdx, 2
mov dword [rsp + 0x78], eax
call fcn.140055480
mov qword [rsp + 0x88], rax
mov r14, rax
test rax, rax
je 0x140021024
mov edx, 0xd
mov rcx, rbx
call fcn.14007b1e0
mov eax, dword [rbx + 0xb8]
mov dword [rsp + 0x48], eax
cmp r12d, 1
jne 0x140020a1f
cmp word [rbp + 0x5e], r12w
jne 0x140020a1f
cmp byte [rbp + 0x62], 0
je 0x140020a1f
mov r9d, r15d
lea edx, [r12 + 0x32]
mov r8d, r13d
mov rcx, rbx
call fcn.14007b2c0
xor eax, eax
mov esi, eax
test r12d, r12d
jle 0x140020b81
mov r15d, eax
nop
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [r15 + rdx]
call fcn.140067880
mov r9d, dword [rsp + 0x54]
mov r8d, esi
mov edx, 0x43
mov rcx, rbx
mov rbp, rax
call fcn.14007b2c0
mov eax, dword [rsp + 0x40]
mov r9d, esi
mov r8d, dword [rsp + 0x44]
mov edx, 0x62
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14007b330
mov rcx, qword [rbx + 0x18]
movsxd rdi, dword [rbx + 0xb8]
cmp dword [rcx + 0x3c], edi
jg 0x140020aaa
mov r8d, dword [rsp + 0x40]
lea eax, [rsi + r13]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [r9 + 0x34]
call fcn.140038220
mov edi, eax
jmp 0x140020add
lea eax, [rdi + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rdi + rdi*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x34
lea rdx, [rax + rcx*8]
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov dword [rdx + 4], eax
lea eax, [rsi + r13]
mov dword [rdx + 8], ecx
mov dword [rdx + 0xc], eax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbx]
mov eax, edi
cmp byte [rcx + 0x61], 0
je 0x140020af7
mov r8, rbp
mov edx, 0xfffffffe
call fcn.140034c90
jmp 0x140020b38
test edi, edi
jns 0x140020b03
mov eax, dword [rbx + 0xb8]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140020b2b
mov r9d, 0xfffffffe
mov r8, rbp
mov rcx, rbx
call fcn.140092010
jmp 0x140020b38
test rbp, rbp
je 0x140020b38
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfe
mov dword [r14], edi
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140020b5c
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 0x80
mov word [rax + rdx*8 + 2], cx
mov rbp, qword [rsp + 0x70]
inc esi
add r15, 8
add r14, 4
cmp esi, r12d
jl 0x140020a30
mov r14, qword [rsp + 0x88]
mov r15d, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x54]
mov r8d, r12d
mov edx, 0x43
mov rcx, rbx
call fcn.14007b2c0
mov edx, r15d
mov rcx, rbx
call fcn.1400833d0
mov ecx, dword [rsp + 0x48]
sub ecx, 1
mov edx, dword [rbx + 0xb8]
jns 0x140020bb3
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x140020bc5
lea rax, [0x1401f0030]
jmp 0x140020bd4
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
xor r8d, r8d
mov dword [rax + 8], edx
mov edi, r8d
test r12d, r12d
jle 0x140020c96
mov ebp, dword [rsp + 0x44]
mov rsi, r14
nop dword [rax]
mov ecx, dword [rsi]
mov edx, dword [rbx + 0xb8]
test ecx, ecx
jns 0x140020bff
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x140020c11
lea rax, [0x1401f0030]
jmp 0x140020c20
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140020c53
lea eax, [rdi + r13]
mov r9d, edi
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x62
mov rcx, rbx
call fcn.140038220
xor r8d, r8d
jmp 0x140020c82
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x62
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edi
lea rdx, [rax + rcx*8]
lea eax, [rdi + r13]
mov qword [rdx + 0x10], r8
mov dword [rdx + 0xc], eax
inc edi
add rsi, 4
cmp edi, r12d
jl 0x140020bf0
mov rbp, qword [rsp + 0x70]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140020cb5
or eax, 0xffffffff
sub eax, r15d
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rsi, qword [rsp + 0x80]
cmp qword [rsi + 0x2a8], 0
je 0x140020cd4
mov rdx, r14
mov rcx, rsi
call fcn.14003b520
jmp 0x140020d01
cmp r14, qword [rsi + 0x190]
jb 0x140020cf9
cmp r14, qword [rsi + 0x198]
jae 0x140020cf9
mov rax, qword [rsi + 0x188]
mov qword [r14], rax
mov qword [rsi + 0x188], r14
jmp 0x140020d01
mov rcx, r14
call fcn.1400183e0
mov r14d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x48]
mov r15d, dword [rsp + 0x44]
mov esi, dword [rsp + 0x58]
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
mov r12d, dword [rsp + 0x4c]
cmp dword [rax + 0x3c], edx
jg 0x140020d47
mov r9d, r12d
mov dword [rsp + 0x20], r14d
mov edx, 0xa4
mov r8d, 1
mov rcx, rbx
call fcn.140038220
mov edx, eax
jmp 0x140020d79
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0xa4
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x140020d95
lea r8, [0x14016be50]
mov edx, 0xfffffff8
call fcn.140034c90
jmp 0x140020ddd
test edx, edx
jns 0x140020da1
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140020dce
mov r9d, 0xfffffff8
lea r8, [0x14016be50]
mov rcx, rbx
call fcn.140092010
jmp 0x140020ddd
lea rax, [0x14016be50]
mov byte [rdx + 1], 0xf8
mov qword [rdx + 0x10], rax
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140020dfe
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140020e27
xor eax, eax
mov r9d, edi
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 7]
call fcn.140038220
jmp 0x140020e53
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 7
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov r9d, dword [rsp + 0x64]
xor r8d, r8d
mov edx, r12d
mov rcx, rbx
call fcn.140025930
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
mov r8d, dword [rsp + 0x5c]
cmp dword [rax + 0x3c], edx
jg 0x140020e99
mov r9d, 3
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea edx, [r9 + 0x62]
call fcn.140038220
mov edx, eax
xor r12d, r12d
jmp 0x140020ecb
lea rcx, [rdx + rdx*2]
xor r12d, r12d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x65
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], 3
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x140020ee4
lea r8, [0x140172704]
xor edx, edx
call fcn.140034c90
jmp 0x140020f11
test edx, edx
jns 0x140020ef0
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea r8, [0x140172704]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.140092010
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edi, dword [rsp + 0xf8]
cmp dword [rax + 0x3c], ecx
jg 0x140020f4b
mov r9d, dword [rsp + 0x50]
mov r8d, edi
mov edx, 0x75
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.140038220
mov edx, dword [rsp + 0x50]
xor r12d, r12d
jmp 0x140020f79
mov edx, dword [rsp + 0x50]
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140020fa2
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x76
mov r8d, edi
mov rcx, rbx
call fcn.140038220
jmp 0x140020fcc
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x76
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r12
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140020fed
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 8
mov word [rax + rdx*8 + 2], cx
mov edx, dword [rbx + 0xb8]
test esi, esi
jns 0x140020ffa
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x14002100f
lea rax, [0x1401f0030]
mov dword [rax + 8], edx
jmp 0x14002102e
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x14002102e
mov r14d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
mov rax, qword [rsp + 0xf0]
xor ecx, ecx
movzx edi, byte [rsp + 0x100]
mov r12, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rbp + 0x28]
mov qword [rsp + 0x70], rbp
test rbp, rbp
jne 0x1400207c0
cmp qword [rsp + 0xf0], 0
jne 0x14002114c
test dil, dil
je 0x14002114c
mov r9d, dword [rsp + 0x64]
mov edx, 0x66
mov r8d, dword [rsp + 0x7c]
mov rcx, rbx
call fcn.14007b2c0
mov r8d, dword [rsp + 0x64]
mov edx, 0x16
mov rcx, rbx
call fcn.14007b250
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
mov edi, eax
lea edx, [r8 + 0x46]
call fcn.14007b2c0
mov r8d, dword [rsp + 0x5c]
xor eax, eax
mov dword [rsp + 0x30], eax
mov r9d, 3
lea rax, [0x140172704]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea edx, [r9 + 0x62]
call fcn.14007b3a0
mov r12d, dword [rsp + 0x50]
mov edx, 0x75
mov r8d, dword [rsp + 0xf8]
mov r9d, r12d
mov rcx, rbx
call fcn.14007b2c0
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov edx, 0x76
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.14007b330
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140021142
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 8
mov word [rax + rdx*8 + 2], cx
mov edx, edi
mov rcx, rbx
call fcn.140083b00
mov r15, qword [rsp + 0x98]
add rsp, 0xa0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret