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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
xor r15d, r15d
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov dword [rsp + 0x120], r8d
mov qword [rsp + 0x128], r9
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
nop dword [rax]
mov rax, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
mov qword [rsp + 0xa8], 0
mov dword [rax + 0x24], 0
mov eax, dword [rsp + 0x3c]
mov ebx, eax
test eax, eax
jle 0x58d374
nop dword [rax]
movzx eax, byte [r14]
lea edx, [rax - 9]
cmp dl, 4
jbe 0x58ca00
cmp al, 0x20
je 0x58ca00
lea rsi, [0x0073e740]
xor eax, eax
movabs r12, 0x30500003e01
lea r13, [rsi + 0x40]
test al, 0xfe
jne 0x58c798
movzx ebp, byte [rsi + 8]
cmp ebp, ebx
jg 0x58c798
movzx edi, bpl
mov rdx, qword [rsi]
mov rcx, r14
mov r8, rdi
call sym.memcmp
test eax, eax
jne 0x58c798
movzx r10d, byte [rsi + 0xa]
cmp r10b, 1
je 0x58cd70
mov eax, 0xa
movzx edx, byte [r14 + rdi]
cmp dl, 0x29
ja 0x58c798
bt r12, rdx
jb 0x58ca12
nop dword [rax]
add rsi, 0x10
cmp rsi, r13
je 0x58c7b2
movzx eax, byte [rsi + 9]
test al, 0xfe
je 0x58c74b
add rsi, 0x10
cmp rsi, r13
jne 0x58c7a1
movzx eax, byte [r14]
cmp al, 0x22
je 0x58ca68
cmp al, 0x28
je 0x58ce00
cmp al, 0x29
mov rax, qword [rsp + 0x110]
je 0x58d260
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x1c]
test eax, eax
jle 0x58cd30
mov rdi, qword [rsp + 0x110]
lea esi, [rax - 1]
xor ebp, ebp
mov rdi, qword [rdi + 0x10]
jmp 0x58c818
lea rax, [rbp + 1]
cmp rsi, rbp
je 0x58cd30
mov rbp, rax
mov r13, qword [rdi + rbp*8]
mov rcx, r13
call sym.strlen
mov r12, rax
cmp eax, ebx
jge 0x58c808
cdqe
cmp byte [r14 + rax], 0x3a
jne 0x58c808
mov r8d, r12d
mov rdx, r14
mov rcx, r13
call sym.sqlite3_strnicmp.part.0
test eax, eax
jne 0x58c808
mov r10, r14
sub r10, qword [rsp + 0x118]
mov esi, dword [rsp + 0x3c]
mov dword [rsp + 0x44], ebp
lea eax, [r10 + r12 + 1]
mov dword [rsp + 0x40], eax
movsxd r14, eax
sub esi, eax
add r14, qword [rsp + 0x118]
nop
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
mov rbp, qword [rcx]
test esi, esi
jle 0x58d2f2
mov rax, r14
xor ebx, ebx
jmp 0x58c8a4
cmp dl, 0x22
je 0x58c8b1
add ebx, 1
add rax, 1
cmp esi, ebx
je 0x58cf40
movzx edx, byte [rax]
lea r8d, [rdx - 0x28]
cmp r8b, 1
ja 0x58c890
mov rax, qword [rsp + 0x110]
mov r9d, ebx
mov r8, r14
xor edi, edi
mov edx, dword [rax + 8]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call dbg.sqlite3Fts3OpenTokenizer
mov r13d, eax
test eax, eax
jne 0x58c971
lea rax, [rsp + 0xa4]
lea r12, [rsp + 0xb8]
mov dword [rsp + 0x98], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rdx, r12
lea rax, [rsp + 0xa0]
lea r9, [rsp + 0x9c]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x98]
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xa4], 0
call qword [rbp + 0x28]
test eax, eax
je 0x58d170
test ebx, ebx
je 0x58d160
cmp eax, 0x65
jne 0x58d160
mov rcx, qword [rsp + 0xb0]
call qword [rbp + 0x20]
add ebx, dword [rsp + 0x40]
mov qword [rsp + 0xa8], rdi
mov dword [rsp + 0x40], ebx
test r13d, r13d
jne 0x58cc08
mov rsi, qword [rsp + 0xa8]
test rsi, rsi
je 0x58cd50
mov eax, dword [rsi]
cmp eax, 5
je 0x58c9ad
cmp qword [rsi + 0x10], 0
je 0x58ced8
cmp dword [rsp + 0x70], 1
jne 0x58cfc8
test r15, r15
jne 0x58cf50
mov rax, qword [rsp + 0xa8]
xor edx, edx
mov r15, rax
cmp qword [rsp + 0x68], 0
je 0x58cec0
mov qword [rdx + 0x18], rax
mov dword [rsp + 0x70], 0
mov qword [rax + 8], rdx
movsxd rax, dword [rsp + 0x40]
sub dword [rsp + 0x3c], eax
add qword [rsp + 0x118], rax
jmp 0x58c6e0
add r14, 1
sub ebx, 1
jne 0x58c718
jmp 0x58d280
mov ecx, 0x40
mov byte [rsp + 0x44], r10b
mov dword [rsp + 0x40], eax
call dbg.sqlite3Fts3MallocZero
mov edx, dword [rsp + 0x40]
movzx r10d, byte [rsp + 0x44]
test rax, rax
mov rsi, rax
je 0x58cfba
movzx eax, r10b
mov r10, r14
sub r10, qword [rsp + 0x118]
mov dword [rsi + 4], edx
lea edi, [rbp + r10]
mov dword [rsi], eax
mov dword [rsp + 0x40], edi
mov qword [rsp + 0xa8], rsi
jmp 0x58c99d
lea rdx, [r14 + 1]
mov eax, 1
mov ecx, 1
cmp ebx, 1
jg 0x58ca8f
jmp 0x58ca96
add eax, 1
add rdx, 1
cmp eax, ebx
je 0x58ce98
cmp byte [rdx], 0x22
jne 0x58ca80
mov ecx, eax
mov rdx, r14
sub rdx, qword [rsp + 0x118]
lea edi, [rcx + rdx + 1]
mov dword [rsp + 0x40], edi
cmp ebx, eax
je 0x58ceac
lea r9d, [rax - 1]
mov rax, qword [rsp + 0x110]
lea r8, [r14 + 1]
mov dword [rsp + 0x74], r9d
mov rcx, qword [rax]
mov qword [rsp + 0x78], r8
mov rax, qword [rcx]
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 8]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call dbg.sqlite3Fts3OpenTokenizer
mov r13d, eax
test eax, eax
jne 0x58d018
mov qword [rsp + 0x60], 0
xor ebx, ebx
xor esi, esi
lea rcx, [rsp + 0xa4]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0xa0]
lea r12, [rsp + 0xb8]
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x9c]
lea rdi, [rsp + 0x98]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r15
mov r15, r12
mov r12, rax
nop
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x44], ebx
mov r9, r12
mov r8, rdi
mov dword [rsp + 0x98], 0
mov rdx, r15
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x9c], 0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xa4], 0
call qword [rax + 0x28]
mov ebp, eax
test eax, eax
je 0x58cc20
mov rax, qword [rsp + 0x48]
mov r15, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
call qword [rax + 0x20]
mov edx, r13d
mov r13d, ebp
mov qword [rsp + 0xb0], 0
cmp r13d, 0x65
je 0x58d037
mov qword [rsp + 0xa8], rsi
test r13d, r13d
je 0x58c98a
mov edi, dword [rsp + 0x40]
sub dword [rsp + 0x3c], edi
cmp r13d, 0x65
jne 0x58ce39
jmp 0x58d280
lea r14, [rbx + rbx*4]
mov rcx, rsi
shl r14, 3
lea rdx, [r14 + 0xc0]
call dbg.fts3ReallocOrFree
mov rsi, rax
test rax, rax
je 0x58cf88
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
add edx, r13d
movsxd rdx, edx
call dbg.fts3ReallocOrFree
mov qword [rsp + 0x60], rax
mov rdx, rax
test rax, rax
je 0x58cf88
lea rax, [rsi + r14 + 0x98]
movsxd rcx, r13d
mov qword [rax], 0
add rcx, rdx
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
mov qword [rax + 0x20], 0
mov rdx, qword [rsp + 0xb8]
movsxd r8, dword [rsp + 0x98]
call sym.memcpy
movsxd rax, dword [rsp + 0x44]
mov edx, dword [rsp + 0x98]
lea rcx, [rax + rax*4]
add r13d, edx
mov dword [rsi + rcx*8 + 0xa0], edx
xor ecx, ecx
movsxd rdx, dword [rsp + 0xa0]
cmp dword [rsp + 0x74], edx
jle 0x58ccee
mov rcx, qword [rsp + 0x78]
cmp byte [rcx + rdx], 0x2a
sete cl
movzx ecx, cl
lea rdx, [rax + rax*4]
mov dword [rsi + rdx*8 + 0xa4], ecx
movsxd rdx, dword [rsp + 0x9c]
test edx, edx
jle 0x58cd17
mov rcx, qword [rsp + 0x80]
xor ebp, ebp
cmp byte [rcx + rdx], 0x5e
sete bpl
lea rax, [rax + rax*4]
add rbx, 1
mov dword [rsi + rax*8 + 0xa8], ebp
jmp 0x58cb60
mov dword [rsp + 0x40], 0
mov r14, qword [rsp + 0x118]
mov esi, dword [rsp + 0x3c]
jmp 0x58c870
movsxd rax, dword [rsp + 0x40]
sub dword [rsp + 0x3c], eax
add qword [rsp + 0x118], rax
jmp 0x58c6e0
cmp byte [r14 + 4], 0x2f
jne 0x58c778
movzx ecx, byte [r14 + 5]
lea edx, [rcx - 0x30]
cmp dl, 9
ja 0x58c778
movzx edx, byte [r14 + rdi + 1]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x58d369
movsx eax, dl
mov ecx, 1
lea r9, [r14 + rdi]
sub eax, 0x30
cdqe
jmp 0x58cdda
lea r8, [rax + rax*4]
movsx eax, dl
mov edx, 0x80000000
add rcx, 1
sub eax, 0x30
cdqe
lea rax, [rax + r8*2]
cmp rax, rdx
jae 0x58c778
movzx edx, byte [r9 + rcx + 1]
mov r8d, ecx
lea r11d, [rdx - 0x30]
cmp r11b, 9
jbe 0x58cdb8
add r8d, 1
add ebp, r8d
movsxd rdi, ebp
jmp 0x58c77d
mov rax, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov dword [rsp + 0xb8], 0
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x40], eax
add eax, 1
mov dword [rdi + 0x30], eax
cmp eax, 0x3e8
jle 0x58d110
mov r13d, 1
mov rax, qword [rsp + 0x130]
mov r8d, dword [rsp + 0x120]
sub r8d, dword [rsp + 0x3c]
mov dword [rax], r8d
mov rcx, qword [rsp + 0x68]
call dbg.sqlite3Fts3ExprFree
xor ecx, ecx
call dbg.sqlite3Fts3ExprFree
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x128]
mov rdi, qword [rsp + 0x68]
mov qword [rax], rdi
mov eax, r13d
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10, r14
sub r10, qword [rsp + 0x118]
lea eax, [rax + r10 + 1]
mov dword [rsp + 0x40], eax
mov edi, dword [rsp + 0x40]
mov r13d, 1
sub dword [rsp + 0x3c], edi
jmp 0x58ce39
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
jmp 0x58c9ea
mov edx, dword [rsp + 0x70]
test edx, edx
jne 0x58d2f9
test r15, r15
je 0x58cef8
cmp eax, 1
jne 0x58cef8
cmp dword [r15], 5
jne 0x58d32a
mov rax, qword [rsp + 0xa8]
jmp 0x58cf0f
mov edi, dword [rax]
cmp dword [r15], edi
jg 0x58cf78
mov rdx, r15
mov r15, qword [r15 + 8]
test r15, r15
jne 0x58cf08
mov qword [rsp + 0x68], rax
mov qword [rax + 0x10], rdx
mov r15, rax
mov qword [rdx + 8], rax
mov dword [rsp + 0x70], 1
jmp 0x58c9ea
mov ebx, esi
jmp 0x58c8b1
cmp eax, 5
je 0x58cf5f
cmp dword [r15], 1
je 0x58d32a
mov rax, qword [rsp + 0xa8]
mov rdx, r15
mov r15, rax
jmp 0x58c9ce
mov qword [r15 + 0x18], rax
mov qword [rax + 8], r15
jmp 0x58cf20
mov rcx, qword [rsp + 0xb0]
mov rdi, rsi
test rcx, rcx
je 0x58cfa0
mov rax, qword [rsp + 0x48]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3_free
mov rcx, rdi
call sym.sqlite3_free
mov edi, dword [rsp + 0x40]
sub dword [rsp + 0x3c], edi
mov r13d, 7
jmp 0x58ce39
mov ecx, 0x40
call dbg.sqlite3Fts3MallocZero
test rax, rax
je 0x58d351
mov dword [rax], 3
jmp 0x58cff2
cmp dword [r15], 3
jg 0x58d250
mov rdx, r15
mov r15, qword [r15 + 8]
test r15, r15
jne 0x58cfe8
mov qword [rsp + 0x68], rax
mov qword [rax + 0x10], rdx
mov r15, rax
mov qword [rdx + 8], rax
jmp 0x58cf5f
mov dword [rsp + 0x44], 0
xor edx, edx
xor esi, esi
mov qword [rsp + 0x60], 0
cmp r13d, 0x65
jne 0x58cbf7
movsxd rax, dword [rsp + 0x44]
movsxd rbp, edx
mov rcx, rsi
lea rdi, [rax + rax*4]
mov r14, rax
shl rdi, 3
lea rdx, [rbp + rdi + 0xc0]
call dbg.fts3ReallocOrFree
mov rsi, rax
test rax, rax
je 0x58cf88
mov r8d, 0x98
xor edx, edx
lea rbx, [rax + 0x40]
mov rcx, rax
call sym.memset
lea rdi, [rbx + rdi + 0x58]
mov dword [rsi], 5
mov rax, qword [rsp + 0x110]
mov qword [rsi + 0x20], rbx
mov eax, dword [rax + 0x20]
mov dword [rsi + 0x90], r14d
mov dword [rsi + 0x94], eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x58d0cf
mov rbx, rax
mov r8, rbp
mov rdx, rax
mov rcx, rdi
call sym.memcpy
mov rcx, rbx
call sym.sqlite3_free
mov rbx, qword [rsi + 0x20]
mov eax, dword [rbx + 0x50]
mov dword [rsp + 0x44], eax
mov ecx, dword [rsp + 0x44]
test ecx, ecx
jle 0x58d342
lea edx, [rcx - 1]
lea rax, [rbx + 0x58]
lea rdx, [rdx + rdx*4]
lea rcx, [rbx + rdx*8 + 0x80]
nop
movsxd rdx, dword [rax + 8]
mov qword [rax], rdi
add rax, 0x28
add rdi, rdx
cmp rcx, rax
jne 0x58d0f0
xor r13d, r13d
jmp 0x58cbf7
mov rcx, qword [rsp + 0x110]
lea rdx, [r14 + 1]
lea r8d, [rbx - 1]
lea r12, [rsp + 0xb8]
lea r9, [rsp + 0xa8]
mov qword [rsp + 0x20], r12
call dbg.fts3ExprParse
mov r10, r14
sub r10, qword [rsp + 0x118]
mov r13d, eax
mov eax, dword [rsp + 0xb8]
lea eax, [rax + r10 + 1]
mov dword [rsp + 0x40], eax
jmp 0x58c981
mov r13d, eax
xor edi, edi
jmp 0x58c966
movsxd rcx, dword [rsp + 0x98]
add rcx, 0xc0
call dbg.sqlite3Fts3MallocZero
mov rdi, rax
test rax, rax
je 0x58d2e0
mov dword [rax], 5
lea rax, [rax + 0x40]
lea rcx, [rdi + 0xc0]
mov qword [rdi + 0x20], rax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x90], 1
mov dword [rdi + 0x94], eax
movsxd r8, dword [rsp + 0x98]
mov qword [rdi + 0x98], rcx
mov rdx, qword [rsp + 0xb8]
mov dword [rdi + 0xa0], r8d
call sym.memcpy
mov ebx, dword [rsp + 0xa0]
cmp esi, ebx
jg 0x58d2b3
mov rax, qword [rsp + 0x110]
mov r13d, dword [rax + 0x18]
test r13d, r13d
je 0x58c966
movsxd rax, dword [rsp + 0x9c]
xor edx, edx
jmp 0x58d22e
sub rax, 1
cmp byte [r14 + rax], 0x5e
jne 0x58d316
mov dword [rdi + 0xa8], 1
mov edx, 1
mov ecx, eax
test eax, eax
jg 0x58d210
test dl, dl
je 0x58d23f
mov dword [rsp + 0x9c], eax
xor r13d, r13d
jmp 0x58c966
mov qword [r15 + 0x18], rax
mov qword [rax + 8], r15
jmp 0x58d003
mov r10, r14
sub r10, qword [rsp + 0x118]
sub dword [rax + 0x30], 1
add r10d, 1
sub dword [rsp + 0x3c], r10d
nop dword [rax + rax]
mov r8d, dword [rsp + 0x120]
sub r8d, dword [rsp + 0x3c]
cmp qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x130]
je 0x58d30b
mov ecx, dword [rsp + 0x70]
test ecx, ecx
je 0x58d30b
mov dword [rax], r8d
mov r13d, 1
jmp 0x58ce51
movsxd rax, ebx
cmp byte [r14 + rax], 0x2a
jne 0x58d1eb
mov dword [rdi + 0xa4], 1
add ebx, 1
mov dword [rsp + 0xa0], ebx
jmp 0x58d1eb
mov ebx, dword [rsp + 0xa0]
mov r13d, 7
jmp 0x58c966
xor ebx, ebx
jmp 0x58c8b1
mov rcx, rsi
call dbg.sqlite3Fts3ExprFree
mov r13d, dword [rsp + 0x70]
jmp 0x58ce51
mov dword [rax], r8d
xor r13d, r13d
jmp 0x58ce6b
test dl, dl
je 0x58d23f
mov dword [rsp + 0x9c], ecx
jmp 0x58d23f
mov rcx, qword [rsp + 0xa8]
mov r13d, 1
call dbg.sqlite3Fts3ExprFree
jmp 0x58ce51
mov qword [rsp + 0xa8], rsi
mov eax, dword [rsi]
jmp 0x58c99d
mov rcx, qword [rsp + 0xa8]
mov r13d, 7
call dbg.sqlite3Fts3ExprFree
jmp 0x58ce51
mov r8d, 1
jmp 0x58cdf1
je 0x58d280
mov r14, qword [rsp + 0x118]
mov ebx, dword [rsp + 0x3c]
jmp 0x58c730