Function at 0x40bec0
Capabilities:
Reference sql statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40c1ef
push rbp
mov rbp, rsp
sub rsp, 0x28
cmp word [0x007324e4], 0x10
nop word [rax + rax]
jne 0x40c1dd
mov rdx, qword [0x007c4838]
test rdx, rdx
je 0x40c1cc
nop word [rax + rax]
nop
cmp rdx, 0x80000
ja 0x40c160
cmp rdx, 0x1000
jb 0x40c0ec
lea rbx, [rdx - 1]
nop
test rdx, rbx
jne 0x40c0a0
mov rdx, qword [0x007c4840]
lea rbx, [rdx - 1]
test rdx, rbx
jne 0x40c04e
nop dword [rax]
cmp rdx, 0x400000
jbe 0x40bf54
mov qword [0x007c4840], 0
cmp qword [0x007c4840], 0
nop dword [rax]
jne 0x40c025
lea rax, [0x007869e0]
call sym.runtime._mheap_.init
call sym.runtime.allocmcache
mov qword [0x007c4910], rax
xor eax, eax
jmp 0x40bf85
inc rax
cmp rax, 3
jl 0x40bf82
mov eax, 0x7f
jmp 0x40bfc4
mov qword [rsp + 0x20], rbx
lea rax, [0x0079d5d8]
nop
call sym.runtime._fixalloc_.alloc
mov rcx, qword [rsp + 0x10]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx]
mov qword [rax + 0x10], rdx
mov qword [rcx], rax
mov rax, qword [rsp + 0x18]
dec rax
test rax, rax
jl 0x40bfff
mov qword [rsp + 0x18], rax
mov rcx, rax
shl rax, 0x28
movabs rdx, 0xc000000000
or rax, rdx
mov qword [rsp + 0x10], rax
cmp rcx, 0x3f
jle 0x40bff6
lea rbx, [0x0079d620]
jmp 0x40bf92
lea rbx, [0x00796da0]
jmp 0x40bf92
nop
movabs rax, 0x7fffffffffffffff
lea rcx, [0x007c55e8]
xchg qword [rcx], rax
add rsp, 0x28
pop rbp
ret
lea rdx, [rcx + 1]
mov qword [0x007c4848], rdx
mov rcx, qword [0x007c4848]
mov edx, 1
shl rdx, cl
cmp rcx, 0x40
sbb rbx, rbx
and rdx, rbx
nop
cmp qword [0x007c4840], rdx
jne 0x40c01a
jmp 0x40bf66
call sym.runtime.printlock
lea rax, [0x005e3c59]
mov ebx, 0x17
nop
call sym.runtime.printstring
mov rax, qword [0x007c4840]
call sym.runtime.printuint
lea rax, [0x005e3c42]
mov ebx, 0x17
nop dword [rax]
call sym.runtime.printstring
call sym.runtime.printunlock
lea rax, [0x005e4bc0]
mov ebx, 0x19
call sym.runtime.throw
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x005e156f]
mov ebx, 0x12
call sym.runtime.printstring
mov rax, qword [0x007c4838]
nop dword [rax]
call sym.runtime.printuint
lea rax, [0x005e3c42]
mov ebx, 0x17
call sym.runtime.printstring
call sym.runtime.printunlock
lea rax, [0x005e2502]
mov ebx, 0x14
call sym.runtime.throw
call sym.runtime.printlock
lea rax, [0x005e156f]
mov ebx, 0x12
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [0x007c4838]
call sym.runtime.printuint
lea rax, [0x005e91dd]
mov ebx, 0x25
nop dword [rax]
call sym.runtime.printstring
mov eax, 0x1000
call sym.runtime.printint
lea rax, [0x005dd09f]
mov ebx, 2
nop dword [rax + rax]
call sym.runtime.printstring
call sym.runtime.printunlock
lea rax, [0x005e2502]
mov ebx, 0x14
call sym.runtime.throw
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x005e156f]
mov ebx, 0x12
call sym.runtime.printstring
mov rax, qword [0x007c4838]
nop dword [rax]
call sym.runtime.printuint
lea rax, [0x005e8d37]
mov ebx, 0x24
call sym.runtime.printstring
mov eax, 0x80000
nop dword [rax + rax]
call sym.runtime.printint
lea rax, [0x005dd09f]
mov ebx, 2
call sym.runtime.printstring
call sym.runtime.printunlock
lea rax, [0x005e2502]
mov ebx, 0x14
call sym.runtime.throw
lea rax, [0x005e6eac]
mov ebx, 0x1e
call sym.runtime.throw
lea rax, [0x005e107a]
mov ebx, 0x11
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt.abi0
jmp sym.runtime.mallocinit