Function at 0x59ee90
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, 0x58
mov eax, dword [rcx + 0x30]
mov dword [rsp + 0xa8], edx
mov r13, rcx
mov qword [rsp + 0xb0], r8
mov dword [rsp + 0xb8], r9d
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x59f377
mov r15, qword [rcx + 0x10]
mov ecx, dword [r8 + 0x30]
mov byte [r8], 1
mov dword [rsp + 0x40], 0
mov r14, qword [r8 + 0x28]
mov dword [rsp + 0x34], 0
mov rsi, r15
test ecx, ecx
jg 0x59f04b
jmp 0x59f4a0
mov rax, qword [r14]
cmp byte [r14 + 0x1d], 1
mov ebx, dword [rbp]
mov rax, qword [rax + 0x10]
mov rdi, qword [rax + 0x20]
mov eax, dword [rdi]
adc eax, 0
cmp byte [r14 + 0x1c], 0
je 0x59ef21
add eax, ebx
cmp byte [r14 + 0x1e], 0
je 0x59ef2a
add eax, ebx
add eax, 1
mov rcx, r13
mov edx, eax
mov dword [rsp + 0x38], eax
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov rdx, rdi
mov r8d, eax
mov r12d, eax
call dbg.sqlite3ExprCodeExprList
cmp byte [r14 + 0x1d], 0
mov edi, dword [rdi]
je 0x59f2b8
cmp byte [r14 + 0x1c], 0
jne 0x59f220
cmp byte [r14 + 0x1e], 0
mov dword [rsp + 0x3c], r12d
jne 0x59f4e8
mov edi, dword [r14 + 0x10]
test edi, edi
js 0x59efbc
test r15d, r15d
jne 0x59ef95
mov eax, dword [r13 + 0x44]
lea r15d, [rax - 1]
mov dword [r13 + 0x44], r15d
mov eax, dword [rsp + 0x3c]
mov r8d, dword [r14 + 0x10]
mov qword [rsp + 0x20], rbp
mov r9d, r15d
mov edx, dword [rsp + 0xb8]
mov rcx, r13
mov dword [rsp + 0x28], eax
call dbg.codeDistinct
mov dword [r14 + 0x10], eax
mov r11d, dword [r14 + 0x18]
test r11d, r11d
js 0x59f158
mov ebp, dword [rsp + 0x38]
mov r8d, r12d
mov edx, 0x61
mov rcx, rsi
lea ebx, [rbp + r12 - 1]
lea edi, [rbp - 1]
mov dword [rsp + 0x20], ebx
mov r9d, edi
call dbg.sqlite3VdbeAddOp3
mov r8d, dword [r14 + 0x18]
mov dword [rsp + 0x28], edi
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov edx, 0x8a
mov rcx, rsi
call dbg.sqlite3VdbeAddOp4Int
cmp ebp, 1
je 0x59f208
mov eax, dword [rsp + 0x38]
cmp dword [r13 + 0x28], eax
jge 0x59f024
mov dword [r13 + 0x28], eax
mov dword [r13 + 0x2c], r12d
test r15d, r15d
jne 0x59f1f4
mov rcx, qword [rsp + 0xb0]
add dword [rsp + 0x34], 1
add r14, 0x20
mov eax, dword [rsp + 0x34]
cmp dword [rcx + 0x30], eax
jle 0x59f3e8
mov rax, qword [r14]
xor r15d, r15d
mov rbp, qword [rax + 0x20]
test byte [rax + 7], 1
je 0x59f0b0
mov rax, qword [rax + 0x40]
mov r12, qword [rax + 0x48]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x24]
test eax, eax
je 0x59f090
mov rax, qword [r14 + 8]
test byte [rax + 4], 0x20
je 0x59f090
mov eax, dword [rsp + 0xa8]
test eax, eax
jne 0x59f500
nop dword [rax + rax]
mov eax, dword [r13 + 0x44]
mov r9d, 0x10
mov rdx, r12
mov rcx, r13
lea r15d, [rax - 1]
mov dword [r13 + 0x44], r15d
mov r8d, r15d
call sym.sqlite3ExprIfFalse
mov eax, dword [r14 + 0x18]
test eax, eax
jns 0x59ef00
test rbp, rbp
je 0x59f2e0
mov ebx, dword [rbp]
mov rcx, r13
mov edx, ebx
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov rdx, rbp
mov r8d, eax
mov r12d, eax
call dbg.sqlite3ExprCodeExprList
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x38], 0
test eax, eax
jns 0x59ef84
mov edx, dword [r14 + 0x18]
test edx, edx
js 0x59f158
lea ebx, [r12 - 1]
mov r8d, r12d
mov rcx, rsi
mov edx, 0x61
mov dword [rsp + 0x20], ebx
mov r9d, 0xffffffff
call dbg.sqlite3VdbeAddOp3
mov r8d, dword [r14 + 0x18]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x28], 0xffffffff
mov edx, 0x8a
mov dword [rsp + 0x20], r12d
call dbg.sqlite3VdbeAddOp4Int
jmp 0x59f012
movzx eax, bl
mov word [rsp + 0x38], ax
mov rax, qword [r14 + 8]
test byte [rax + 4], 0x20
jne 0x59f390
mov rcx, qword [rsp + 0xb0]
mov r9d, r12d
xor r8d, r8d
mov edx, 0xa2
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x20]
add eax, dword [rcx + 0xc]
mov rcx, rsi
add eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
call dbg.sqlite3VdbeAddOp3
mov rdx, qword [r14 + 8]
mov r8d, 0xfffffff9
mov rcx, rsi
call sym.sqlite3VdbeAppendP4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x59f1d4
mov r9, qword [rsi + 0x88]
movzx edx, word [rsp + 0x38]
lea rax, [rax + rax*2]
lea rax, [r9 + rax*8]
mov word [rax - 0x16], dx
cmp ebx, 1
je 0x59f208
cmp ebx, dword [r13 + 0x28]
jle 0x59f024
mov dword [r13 + 0x28], ebx
mov dword [r13 + 0x2c], r12d
test r15d, r15d
je 0x59f02d
mov edx, r15d
mov rcx, rsi
call dbg.sqlite3VdbeResolveLabel
jmp 0x59f02d
mov edx, r12d
mov rcx, r13
call sym.sqlite3ReleaseTempRange.part.0
jmp 0x59f024
lea eax, [rdi + r12]
xor r9d, r9d
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x20], 1
mov r8d, eax
add edi, ebx
mov dword [rsp + 0x3c], eax
call dbg.sqlite3ExprCodeExprList
cmp byte [r14 + 0x1e], 0
je 0x59ef7c
cmp byte [r14 + 0x1c], 0
je 0x59f4e8
mov r8d, dword [rsp + 0x3c]
test ebx, ebx
jle 0x59ef7c
lea eax, [rbx + r8]
add edi, r12d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], ebx
sub edi, r8d
mov r15d, eax
mov ebx, r8d
nop
lea r9d, [rdi + rbx]
mov r8d, ebx
mov edx, 0xb5
mov rcx, rsi
mov dword [rsp + 0x20], 0
add ebx, 1
call dbg.sqlite3VdbeAddOp3
cmp r15d, ebx
jne 0x59f280
mov r15d, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x4c]
jmp 0x59ef7c
mov r8d, dword [r14 + 0x18]
lea r9d, [r12 + rdi]
mov edx, 0x7e
mov rcx, rsi
mov dword [rsp + 0x20], 0
add edi, 1
call dbg.sqlite3VdbeAddOp3
jmp 0x59ef61
mov rax, qword [r14 + 8]
xor r12d, r12d
xor ebx, ebx
test byte [rax + 4], 0x20
mov eax, 0
mov word [rsp + 0x38], ax
je 0x59f16e
mov rax, qword [r13]
mov rbp, qword [rax + 0x10]
nop dword [rax]
mov r10d, dword [rsp + 0x40]
test r10d, r10d
jne 0x59f334
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x59f334
mov eax, dword [r13 + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [r13 + 0x38], eax
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rsi
mov edx, 0x55
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
mov r9d, 0xfffffffe
mov r8, rbp
mov rcx, rsi
mov edx, eax
call sym.sqlite3VdbeChangeP4
jmp 0x59f16e
mov dword [r15 + 0x90], esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rbp + 8]
test ebx, ebx
jle 0x59f2fd
xor edi, edi
mov rbp, r8
nop dword [rax]
mov rdx, qword [rbp]
mov rcx, r13
add edi, 1
add rbp, 0x20
call dbg.sqlite3ExprCollSeq
test rax, rax
jne 0x59f4f0
cmp edi, ebx
jl 0x59f3a8
mov rbp, rax
test rax, rax
jne 0x59f308
mov rax, qword [r13]
mov rbp, qword [rax + 0x10]
jmp 0x59f308
mov r8d, dword [rsp + 0x40]
mov r15, rsi
test r8d, r8d
je 0x59f4a0
mov r8d, dword [rsp + 0x40]
mov rcx, r15
xor r9d, r9d
mov edx, 0x10
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
movsxd rsi, eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x24]
mov rbx, qword [rax + 0x18]
test ecx, ecx
jle 0x59f45e
mov edi, dword [rsp + 0x44]
mov rbp, rax
nop dword [rax + rax]
cmp qword [r13 + 0x10], 0
je 0x59f452
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbx + 8]
mov rcx, r13
add r8d, edi
call sym.sqlite3ExprCode.part.0
add edi, 1
add rbx, 0x18
cmp dword [rbp + 0x24], edi
jg 0x59f438
mov rax, qword [rsp + 0xb0]
mov byte [rax], 0
test esi, esi
je 0x59f377
mov eax, dword [r15 + 0x90]
lea edx, [rax - 1]
cmp esi, edx
je 0x59f370
mov rcx, qword [r15]
lea rdx, [0x007e7180]
cmp byte [rcx + 0x67], 0
je 0x59f560
mov dword [rdx + 8], eax
jmp 0x59f377
mov rax, qword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
mov eax, dword [rax + 0x24]
test edx, edx
jne 0x59f540
mov rsi, qword [rsp + 0xb0]
mov rbx, qword [rsi + 0x18]
xor esi, esi
test eax, eax
jle 0x59f577
mov edi, dword [rsp + 0x44]
mov rbp, qword [rsp + 0xb0]
jmp 0x59f438
mov r8d, r12d
jmp 0x59f25e
mov rbp, rax
jmp 0x59f308
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x59f517
mov eax, dword [r13 + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [r13 + 0x38], eax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov edx, 0x50
mov rcx, rsi
mov r8d, dword [rsp + 0xa8]
call dbg.sqlite3VdbeAddOp3
jmp 0x59f090
test eax, eax
je 0x59f4ba
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
jmp 0x59f3f9
mov rdx, qword [r15 + 0x88]
lea rcx, [rsi + rsi*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x59f377
mov rax, qword [rsp + 0xb0]
mov byte [rax], 0
jmp 0x59f377