Function at 0x1401dc460
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 r12, qword [rcx]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov ebp, dword [r12 + 0x44]
mov rbx, rcx
movzx ecx, byte [rdi + 0x20]
lea eax, [rbp - 1]
mov r13d, edx
mov dword [rsp + 0xb8], r9d
mov r14d, r8d
mov byte [rsp + 0x3c], cl
mov dword [rsp + 0x44], eax
mov dword [r12 + 0x44], eax
cmp edx, 2
je 0x1401dc8b8
test r8d, r8d
jle 0x1401dc6dd
cmp cl, 0x59
jne 0x1401dc6c0
mov edx, dword [rsi + 0x90]
mov dword [rsp + 0x28], eax
mov r9d, r8d
mov rcx, rbx
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x40], edx
mov edx, 0x36
mov dword [rsp + 0x20], eax
mov r8d, dword [rbx + 0x3c]
call dbg.windowCodeRangeTest
test r14d, r14d
setne r14b
cmp r13d, 1
je 0x1401dc6f6
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rdi + 0x22]
cmp byte [rdi + 0x21], al
jne 0x1401dc516
test r14b, r14b
jne 0x1401dc998
cmp r13d, 2
je 0x1401dc928
mov eax, dword [rbx + 0x40]
mov r9d, dword [rdi + 0x84]
mov r14d, dword [rbx + 0x3c]
mov dword [rsp + 0x48], eax
test r9d, r9d
je 0x1401dc968
mov r8d, dword [rdi + 0x88]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov edx, 0x56
mov rcx, rsi
call sym.sqlite3VdbeAddOp3
cmp dword [rbx + 0x24], r13d
jne 0x1401dc7ed
xor r9d, r9d
mov r8d, r14d
mov edx, 0x82
mov rcx, rsi
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x90]
test eax, eax
jle 0x1401dc7f3
mov rcx, qword [rsi + 0x88]
movsxd rdx, eax
mov r8d, 2
lea rdx, [rdx + rdx*2]
lea rdx, [rcx + rdx*8]
mov word [rdx - 0x16], r8w
mov edx, dword [rsp + 0xb8]
test edx, edx
jne 0x1401dc802
nop dword [rax]
movzx r13d, byte [rsp + 0x3c]
xor edx, edx
mov r8d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], 0
cmp r13b, 0x4c
setne dl
xor r15d, r15d
lea r9d, [rax + rdx + 1]
mov edx, 0x27
call sym.sqlite3VdbeAddOp3
cmp r13b, 0x4c
je 0x1401dc870
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
mov edx, 9
mov rcx, rsi
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1401dc62b
mov r13d, dword [rax]
test r13d, r13d
jne 0x1401dc9b0
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r14d
xor r13d, r13d
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x4c]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov r9d, dword [rsp + 0x48]
mov rcx, r12
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
xor eax, eax
cmp dword [r12 + 0x28], r13d
jge 0x1401dc870
mov dword [r12 + 0x2c], eax
mov eax, dword [rsp + 0x40]
mov dword [r12 + 0x28], r13d
test eax, eax
je 0x1401dc87c
nop
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rsi
neg ebp
mov r9d, dword [rsp + 0x40]
mov edx, 9
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rsi + 0x18]
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
jns 0x1401dc88e
mov r8d, ebp
mov rdx, rsi
call dbg.resizeResolveLabel
jmp 0x1401dc89e
mov r9d, dword [rsp + 0x44]
mov r8d, r14d
mov edx, 0x3b
mov rcx, rsi
mov dword [rsp + 0x20], 1
call sym.sqlite3VdbeAddOp3
test r14d, r14d
mov dword [rsp + 0x40], 0
setne r14b
cmp r13d, 1
jne 0x1401dc4fa
mov r11d, dword [rdi + 0x84]
test r11d, r11d
je 0x1401dca30
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rdi + 0x21]
cmp byte [rdi + 0x22], al
jne 0x1401dc7d0
test r14b, r14b
je 0x1401dc7d0
cmp byte [rdi + 0x20], 0x59
jne 0x1401dc7d0
movzx eax, byte [r12 + 0x1f]
test al, al
je 0x1401dcaa0
lea edx, [rax - 1]
movzx ecx, dl
mov byte [r12 + 0x1f], dl
mov r14d, dword [r12 + rcx*4 + 0xe8]
test dl, dl
je 0x1401dcbec
sub eax, 2
mov byte [r12 + 0x1f], al
movzx eax, al
mov r15d, dword [r12 + rax*4 + 0xe8]
cmp r13d, 2
je 0x1401dcb28
mov r10d, dword [rbx + 0x28]
test r10d, r10d
jne 0x1401dcae8
test r14d, r14d
je 0x1401dc7a6
movzx eax, byte [r12 + 0x1f]
cmp al, 7
ja 0x1401dcbb0
lea edx, [rax + 1]
mov byte [r12 + 0x1f], dl
mov dword [r12 + rax*4 + 0xe8], r14d
test r15d, r15d
je 0x1401dc7c5
movzx eax, byte [r12 + 0x1f]
cmp al, 7
ja 0x1401dc7c5
lea edx, [rax + 1]
mov byte [r12 + 0x1f], dl
mov dword [r12 + rax*4 + 0xe8], r15d
cmp r13d, 1
jne 0x1401dc516
nop
mov eax, dword [rbx + 0x38]
mov rcx, rbx
mov r14d, dword [rbx + 0x34]
mov dword [rsp + 0x48], eax
call dbg.windowReturnOneRow
cmp dword [rbx + 0x24], r13d
je 0x1401dc567
mov eax, dword [rsi + 0x90]
mov edx, dword [rsp + 0xb8]
test edx, edx
je 0x1401dc5c0
lea r9d, [rax + 2]
mov r8d, r14d
mov edx, 0x27
mov rcx, rsi
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r15d, dword [rsi + 0x90]
cmp r15d, dword [rsi + 0x94]
jge 0x1401dca60
lea eax, [r15 + 1]
mov dword [rsi + 0x90], eax
movsxd rax, r15d
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 9
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
cmp byte [rsp + 0x3c], 0x4c
jne 0x1401dc616
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401dc680
mov rcx, qword [rsi + 0x18]
neg ebp
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x1401dc6af
mov edx, dword [rsi + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
mov eax, r15d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rdi + 0x21]
xor r15d, r15d
cmp al, 0x5a
je 0x1401dc89e
test r8d, r8d
jle 0x1401dc988
cmp byte [rsp + 0x3c], 0x59
jne 0x1401dc6c0
mov edx, dword [rsi + 0x90]
cmp al, 0x56
mov eax, dword [rsp + 0x44]
mov r8d, dword [rbx + 0x2c]
mov dword [rsp + 0x40], edx
mov edx, dword [rbx + 0x34]
mov dword [rsp + 0x28], eax
je 0x1401dcac0
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x39
mov rcx, rbx
call dbg.windowCodeRangeTest
movzx eax, byte [rdi + 0x21]
mov edx, dword [rsi + 0x90]
mov dword [rsp + 0x4c], edx
cmp byte [rdi + 0x22], al
jne 0x1401dc928
test r14d, r14d
jne 0x1401dca88
mov eax, dword [rbx + 0x30]
mov r8d, dword [rdi + 0x84]
mov r14d, dword [rbx + 0x2c]
mov dword [rsp + 0x48], eax
test r8d, r8d
jne 0x1401dc542
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
mov r9d, 1
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1401dc7e3
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], eax
call sym.windowAggStep.isra.0
jmp 0x1401dc7e3
mov dword [rsp + 0x40], 0
jmp 0x1401dc910
cmp byte [rdi + 0x20], 0x59
jne 0x1401dc516
jmp 0x1401dc730
mov edx, r13d
mov rcx, r12
call sym.sqlite3GetTempRange
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov r8d, r14d
mov r9d, eax
mov dword [rsp + 0x3c], eax
call sym.windowReadPeerValues.isra.0
mov eax, dword [rsp + 0x4c]
mov rdx, qword [rdi + 0x18]
mov rcx, r12
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
call dbg.windowIfNewPeer
cmp r13d, 1
mov eax, dword [rsp + 0x3c]
jne 0x1401dc65e
test eax, eax
je 0x1401dc870
movzx edx, byte [r12 + 0x1f]
cmp dl, 7
ja 0x1401dc870
lea ecx, [rdx + 1]
mov byte [r12 + 0x1f], cl
mov dword [r12 + rdx*4 + 0xe8], eax
jmp 0x1401dc870
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r8d, r8d
call sym.windowAggFinal.isra.0
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rdi + 0x22]
cmp byte [rdi + 0x21], al
je 0x1401dc71d
jmp 0x1401dc7d0
xor r9d, r9d
xor r8d, r8d
mov edx, 9
mov rcx, rsi
mov dword [rsp + 0x20], 0
call dbg.growOp3
mov r15d, eax
jmp 0x1401dc865
cmp byte [rdi + 0x20], 0x59
jne 0x1401dc928
jmp 0x1401dc730
mov eax, dword [r12 + 0x38]
lea r14d, [rax + 1]
mov eax, r14d
lea r15d, [rax + 1]
mov dword [r12 + 0x38], r15d
jmp 0x1401dc76c
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, edx
mov rcx, rbx
mov edx, 0x37
call dbg.windowCodeRangeTest
movzx eax, byte [rdi + 0x21]
jmp 0x1401dc910
mov dword [rsp + 0x20], 0
mov r8d, dword [rbx + 0x3c]
mov r9d, r14d
mov rcx, rsi
mov edx, 0x87
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r14d
mov r9d, dword [rsp + 0x44]
mov rcx, rsi
mov r8d, dword [rbx + 0x28]
mov edx, 0x39
call sym.sqlite3VdbeAddOp3
jmp 0x1401dc783
mov dword [rsp + 0x20], 0
mov r8d, dword [rbx + 0x2c]
mov r9d, r14d
mov edx, 0x87
mov rcx, rsi
call sym.sqlite3VdbeAddOp3
mov r9d, r15d
mov edx, 0x87
mov rcx, rsi
mov dword [rsp + 0x20], 0
mov r8d, dword [rbx + 0x3c]
call sym.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r14d
mov r8d, r15d
mov rcx, rsi
mov r9d, dword [rsp + 0x44]
mov edx, 0x39
call sym.sqlite3VdbeAddOp3
test r14d, r14d
je 0x1401dcbc0
movzx eax, byte [r12 + 0x1f]
cmp al, 7
ja 0x1401dc928
lea edx, [rax + 1]
mov byte [r12 + 0x1f], dl
mov dword [r12 + rax*4 + 0xe8], r14d
test r15d, r15d
jne 0x1401dc7ab
jmp 0x1401dc928
cmp r13d, 1
jne 0x1401dc520
jmp 0x1401dc7d0
test r15d, r15d
je 0x1401dc928
movzx eax, byte [r12 + 0x1f]
cmp al, 7
ja 0x1401dc928
lea edx, [rax + 1]
mov byte [r12 + 0x1f], dl
mov dword [r12 + rax*4 + 0xe8], r15d
jmp 0x1401dc928
mov eax, dword [r12 + 0x38]
jmp 0x1401dcaac