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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x617710
push rbp
mov rbp, rsp
sub rsp, 0x58
cmp ecx, 1
je 0x6175ad
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x90], r9d
mov rdx, r8
mov r10, rbx
mov r8d, dword [r8]
mov dword [rsp + 0x2c], r8d
mov r11, qword [r10 + 0x10]
mov qword [rsp + 0x40], r11
cmp ecx, 2
jne 0x61749f
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x50], rdx
lea r12, [rbx + 0x38]
mov r10d, dword [r10 + 0x38]
mov dword [rsp + 0x3c], r10d
add dword [r12], r8d
mov r12, r11
mov r11d, dword [r11 + 0x90]
add r11d, r8d
mov dword [rsp + 0x34], r11d
xor ecx, ecx
jmp 0x6175ed
movzx edx, byte [r10 + 0x1f]
test edx, edx
jne 0x6174b6
lea rdx, [rbx + 0x38]
mov r10, rdx
inc dword [rdx]
mov edx, dword [r10]
jmp 0x6174da
lea r10, [rbx + 0x1f]
mov r12, r10
movzx r13d, byte [r10]
dec r13d
mov byte [r10], r13b
movzx r10d, byte [r12]
lea r10, [rbx + r10*4]
lea r10, [r10 + 0xe8]
mov edx, dword [r10]
mov dword [rsp + 0x7c], edi
mov dword [rsp + 0x28], edx
mov rbx, r11
mov ecx, 0x1d
mov r10d, r8d
mov r8d, r9d
mov r9d, r10d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov ecx, 0x61
mov edi, dword [rsp + 0x90]
mov esi, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x28]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov ecx, 0x8a
mov edi, dword [rsp + 0x7c]
mov esi, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x2c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov rdx, qword [rsp + 0x40]
mov r10d, dword [rdx + 0x90]
nop
test r10d, r10d
jle 0x617573
lea ecx, [r10 - 1]
movsxd rcx, ecx
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, qword [rdx + 0x88]
mov word [rcx + 2], 0x10
nop
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x6175a7
mov rdx, qword [rsp + 0x70]
mov rbx, rdx
movzx edx, byte [rdx + 0x1f]
cmp edx, 8
jge 0x6175a7
lea rdx, [rbx + 0x1f]
movzx esi, byte [rdx]
lea edi, [rsi + 1]
mov byte [rdx], dil
lea rdx, [rbx + rsi*4]
lea rdx, [rdx + 0xe8]
mov dword [rdx], ecx
mov eax, dword [rsp + 0x7c]
jmp 0x6175af
xor eax, eax
add rsp, 0x58
pop rbp
ret
mov ecx, dword [rsp + 0x38]
inc ecx
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
mov esi, dword [rsp + 0x80]
mov r8d, dword [rsp + 0x2c]
mov r9d, dword [rsp + 0x90]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x34]
mov r12, qword [rsp + 0x40]
cmp ecx, r8d
jge 0x6176ec
mov dword [rsp + 0x38], ecx
movsxd rsi, ecx
shl rsi, 5
lea rsi, [rdx + rsi]
lea rsi, [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rsi
call sym.modernc.org_sqlite_lib._sqlite3ExprCollSeq
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x2c]
lea esi, [rdx - 1]
mov edi, dword [rsp + 0x38]
cmp edi, esi
jge 0x61765d
mov edx, dword [rsp + 0x90]
lea r9d, [rdi + rdx]
mov r10d, dword [rsp + 0x3c]
lea r8d, [rdi + r10]
lea r8d, [r8 + 1]
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov ecx, 0x34
mov esi, dword [rsp + 0x34]
mov edi, r9d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x617693
mov edx, dword [rsp + 0x90]
lea r9d, [rdi + rdx]
mov r10d, dword [rsp + 0x3c]
lea r8d, [rdi + r10]
lea r8d, [r8 + 1]
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov ecx, 0x35
mov esi, dword [rsp + 0x80]
mov edi, r9d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov ecx, 0xffffffff
mov rdi, qword [rsp + 0x48]
mov esi, 0xfffffffe
call sym.modernc.org_sqlite_lib._sqlite3VdbeChangeP4
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov r8d, dword [rdx + 0x90]
nop
test r8d, r8d
jle 0x6175b5
lea r9d, [r8 - 1]
movsxd r9, r9d
lea r9, [r9 + r9*2]
shl r9, 3
add r9, qword [rdx + 0x88]
mov word [r9 + 2], pe_nt_image_headers64
jmp 0x6175b5
lea esi, [r10 + 1]
mov dword [rsp + 0x30], esi
dec r8d
mov rbx, r12
mov ecx, 0x50
mov edi, r9d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x30]
jmp 0x6175af
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov dword [rsp + 0x1c], edi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x30], r9d
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov edi, dword [rsp + 0x1c]
mov esi, dword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
jmp sym.modernc.org_sqlite_lib._codeDistinct