Function at 0x4d8760
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [esp + 0x28], eax
lea eax, [edx - 6]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [esp + 0x34], str.Too_few_columns_for_an_rtree_table
mov dword [esp + 0x38], str.Too_many_columns_for_an_rtree_table
mov dword [esp + 0x3c], str.Auxiliary_rtree_columns_must_be_last
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
cmp eax, 0x61
ja 0x4d8b55
push 1
push 1
push ecx
call fcn.004a0e60
mov esi, dword [edi + 4]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4d87e2
mov ebx, dword [edi + 8]
sub esi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4d87f1
sub ebx, ecx
call fcn.004b6d50
test eax, eax
jne 0x4d8b3e
lea eax, [esi + 0x1fa]
add eax, ebx
push 0
push eax
call fcn.00437710
mov edi, eax
add esp, 8
test edi, edi
je 0x4d8b3e
lea eax, [esi + 0x1fa]
add eax, ebx
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 0x28], 1
lea ecx, [edi + 0x1f8]
mov dword [edi], 0x502528
lea eax, [ecx + 1]
mov dword [edi + 0x20], ecx
add eax, esi
cmp dword [esp + 0x14], 0
push esi
mov esi, dword [esp + 0x28]
mov dword [edi + 0x24], eax
setne al
mov byte [edi + 0x16], al
push dword [esi + 4]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
push dword [esi + 8]
push dword [edi + 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esp + 0x1c]
call fcn.0043a020
mov esi, dword [esi + 0xc]
lea edx, [esp + 0x18]
add esp, 4
mov dword [esp + 0x14], 0
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.004b5c40
push esi
push eax
push str.CREATE_TABLE_x__.s_INT
push ebx
call fcn.0043a430
mov esi, dword [esp + 0x30]
mov ebx, 4
add esp, 0x10
cmp esi, ebx
jle 0x4d8928
mov eax, dword [esp + 0x24]
mov esi, dword [eax + ebx*4]
mov al, byte [edi + 0x19]
cmp byte [esi], 0x2b
jne 0x4d88e5
inc al
mov dword [esp + 0x14], str.__.s
mov byte [edi + 0x19], al
inc esi
jmp 0x4d88f4
test al, al
jne 0x4d8924
inc byte [edi + 0x15]
mov dword [esp + 0x14], str.__.s_NUM
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov ecx, esi
call fcn.004b5c40
push esi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0043a430
mov esi, dword [esp + 0x30]
inc ebx
add esp, 0x10
cmp ebx, esi
jl 0x4d88c6
jmp 0x4d8928
mov esi, dword [esp + 0x20]
push 0x4f4510
push dword [esp + 0x14]
call fcn.0043a430
push dword [esp + 0x18]
call fcn.00439f30
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d8953
mov ebx, dword [esp + 0x1c]
lea esi, [eax + 7]
jmp 0x4d89a6
cmp ebx, esi
jge 0x4d8971
push str.Auxiliary_rtree_columns_must_be_last
push 0x4edc94
call fcn.0043a250
mov ebx, dword [esp + 0x24]
mov esi, 1
jmp 0x4d8999
mov ebx, dword [esp + 0x1c]
push eax
push ebx
call fcn.004a06c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4d89a2
push ebx
call fcn.004b8f70
add esp, 4
push eax
push 0x4edc94
call fcn.0043a250
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00437940
add esp, 4
test esi, esi
jne 0x4d89f7
mov cl, byte [edi + 0x15]
mov al, cl
shr al, 1
mov byte [edi + 0x14], al
cmp al, 1
jae 0x4d89c8
mov eax, str.Too_few_columns_for_an_rtree_table
jmp 0x4d89de
cmp cl, 0xa
jbe 0x4d89d4
mov eax, str.Too_many_columns_for_an_rtree_table
jmp 0x4d89de
test cl, 1
je 0x4d8a12
mov eax, str.Wrong_number_of_columns_for_an_rtree_table
push eax
push 0x4edc94
call fcn.0043a250
mov ecx, dword [esp + 0x20]
add esp, 8
mov esi, 1
mov dword [ecx], eax
mov ecx, edi
call fcn.004d3a10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x20]
add cl, 2
shl cl, 2
cmp dword [ebp + 0x18], 0
mov byte [edi + 0x17], cl
je 0x4d8a6f
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x1c], 0
call fcn.0043a250
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
mov edx, eax
mov ecx, ebx
call fcn.004d86f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d8a9a
movzx eax, byte [edi + 0x17]
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [edi + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x4d8acf
mov dword [edi + 0x10], eax
jmp 0x4d8acf
push dword [edi + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.0043a250
add esp, 0xc
mov dword [esp + 0x10], eax
lea ecx, [edi + 0x10]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.004d86f0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d8aab
push ebx
call fcn.004b8f70
add esp, 4
push eax
push 0x4edc94
jmp 0x4d8ac1
cmp dword [edi + 0x10], 0x1c0
jge 0x4d8acf
push dword [edi + 0x24]
mov esi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call fcn.0043a250
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
push dword [esp + 0x10]
call fcn.00437940
add esp, 4
test esi, esi
jne 0x4d89f7
mov eax, dword [esp + 0x24]
mov edx, ebx
push dword [ebp + 0x18]
mov ecx, edi
push dword [eax + 8]
push dword [eax + 4]
call fcn.004d8100
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4d8b24
push ebx
call fcn.004b8f70
add esp, 4
push eax
push 0x4edc94
call fcn.0043a250
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx], eax
jmp 0x4d89f7
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 4
cmp edx, 6
cmovge eax, ecx
push dword [esp + eax + 0x38]
push 0x4edc94
call fcn.0043a250
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret