Function at 0x40f2e0
Capabilities:
Reference sql statements

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x40f577
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
nop dword [rax + rax]
test rax, rax
je 0x40f565
test rbx, rbx
je 0x40f32e
lea rdx, [rbx - 1]
test rbx, rdx
jne 0x40f550
nop dword [rax + rax]
cmp rbx, 0x2000
jbe 0x40f333
jmp 0x40f53f
mov ebx, 8
cmp rax, 0x10000
jae 0x40f405
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x10], rbx
mov rdx, qword [r14 + 0x30]
nop
inc dword [rdx + 0xd8]
mov rdx, qword [r14 + 0x30]
mov qword [rsp + 0x20], rdx
test rdx, rdx
je 0x40f37e
mov rsi, qword [rdx + 0xa0]
test rsi, rsi
je 0x40f37e
test byte [rsi], al
add rsi, 0x11f0
jmp 0x40f3a7
nop
nop
lea rax, [0x00cc4310]
call dbg.runtime.lock2
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x10]
lea rsi, [0x00cc4318]
mov qword [rsp + 0x28], rsi
mov rdi, qword [rsi + 8]
lea rdi, [rbx + rdi]
lea rdi, [rdi - 1]
neg rbx
mov qword [rsp + 0x18], rbx
and rdi, rbx
mov qword [rsi + 8], rdi
add rdi, rax
cmp rdi, 0x40000
ja 0x40f3d9
cmp qword [rsi], 0
jne 0x40f417
mov eax, 0x40000
lea rbx, [0x00cc9580]
call dbg.runtime.sysAlloc
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
cmp qword [rcx], 0
jne 0x40f4c3
nop dword [rax]
jmp 0x40f512
mov rbx, rcx
call dbg.runtime.sysAlloc
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rdi, qword [rsi]
mov r8, qword [rsi + 8]
lea r9, [rax + r8]
mov qword [rsi + 8], r9
nop
mov r9d, dword [rdx + 0xd8]
lea r10d, [r9 - 1]
mov dword [rdx + 0xd8], r10d
lea rdx, [rdi + r8]
nop dword [rax]
cmp r9d, 1
jne 0x40f458
cmp byte [r14 + 0xb1], 0
je 0x40f458
mov qword [r14 + 0x10], 0xfffffffffffffade
mov qword [rsp + 0x30], rdx
lea rdi, [0x00cc4318]
cmp rsi, rdi
jne 0x40f486
nop
nop
lea rax, [0x00cc4310]
call dbg.runtime.unlock2
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
lea rsi, [0x00cc9580]
cmp rcx, rsi
je 0x40f4b6
mov rbx, rax
mov rax, rcx
call dbg.runtime.(*sysMemStat).add
mov rbx, qword [rsp + 0x48]
neg rbx
lea rax, [0x00cc9580]
call dbg.runtime.(*sysMemStat).add
mov rdx, qword [rsp + 0x30]
mov rax, rdx
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rdx, qword [rcx]
mov rax, qword [0x00cc4008]
mov qword [rdx], rax
mov rdx, qword [rcx]
lea rsi, [0x00cc4008]
lock cmpxchg qword [rsi], rdx
sete dl
test dl, dl
je 0x40f4c3
mov rdi, qword [rsp + 0x10]
add rdi, 7
mov r8, qword [rsp + 0x18]
and rdi, r8
mov qword [rcx + 8], rdi
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x20]
mov rsi, rcx
mov rcx, qword [rsp + 0x58]
jmp 0x40f417
lea rdx, [0x00cc4318]
cmp rcx, rdx
je 0x40f52f
lea rax, [0x00977c80]
mov ebx, 0x1f
call dbg.runtime.throw
nop
nop
lea rax, [0x00cc4310]
call dbg.runtime.unlock2
jmp 0x40f51e
lea rax, [0x0097a60c]
mov ebx, 0x23
call dbg.runtime.throw
lea rax, [0x0097e853]
mov ebx, 0x2a
nop dword [rax]
call dbg.runtime.throw
lea rax, [0x009744cf]
mov ebx, 0x1a
call dbg.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call dbg.runtime.morestackc
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp dbg.runtime.persistentalloc1