Function at 0x5337f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], str.Wrong_number_of_columns_for_an_rtree_table
mov dword [esp + 0x20], str.Too_few_columns_for_an_rtree_table
mov dword [esp + 0x24], str.Too_many_columns_for_an_rtree_table
push esi
push edi
cmp ecx, 6
jge 0x533835
mov ecx, 2
jmp 0x53384e
cmp ecx, 0xe
jle 0x533841
mov ecx, 3
jmp 0x53384e
and ecx, reloc.WS2_32.dll_accept
jns 0x53384e
dec ecx
or ecx, 0xfffffffe
inc ecx
mov ecx, dword [esp + ecx*4 + 0x20]
test ecx, ecx
je 0x533875
push ecx
push 0x62deb8
call fcn.004b9ee0
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 1
push eax
call fcn.0051b6e0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov esi, dword [ecx + 4]
lea edx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x533890
mov edi, dword [ecx + 8]
sub esi, edx
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x5338a0
sub edi, ecx
lea ebx, [edi + esi]
lea eax, [ebx + 0x1f2]
mov dword [esp + 0x18], eax
call fcn.0052aa10
test eax, eax
jne 0x533b1b
lea eax, [ebx + 0x1f2]
test eax, eax
jle 0x533b1b
mov eax, ebx
cdq
add eax, 0x1f2
adc edx, 0
push edx
push eax
call fcn.004b7920
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x533b1b
push dword [esp + 0x18]
push 0
push ebx
call fcn.005d05b0
lea ecx, [ebx + 0x1f0]
mov dword [ebx + 0x28], 1
lea eax, [ecx + 1]
mov dword [ebx], 0x660f40
add eax, esi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
cdq
sub eax, edx
sar eax, 1
mov byte [ebx + 0x14], al
add al, al
mov byte [ebx + 0x15], al
add al, 2
shl al, 2
cmp dword [esp + 0x20], 0
mov byte [ebx + 0x17], al
setne al
mov byte [ebx + 0x16], al
mov eax, dword [ebp + 0xc]
push esi
push dword [eax + 4]
push ecx
call fcn.005cfab0
push edi
mov edi, dword [ebp + 0xc]
push dword [edi + 8]
push dword [ebx + 0x24]
call fcn.005cfab0
mov eax, dword [ebx + 0x20]
add esp, 0x24
cmp dword [ebp + 0x18], 0
je 0x5339b9
push eax
push str.PRAGMA__Q.page_size
mov dword [esp + 0x1c], 0
call fcn.004b9ee0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.00533760
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5339e5
movzx eax, byte [ebx + 0x17]
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x33
add ecx, 0xffffffc0
mov dword [ebx + 0x10], ecx
add eax, 4
cmp eax, ecx
jge 0x533a01
mov dword [ebx + 0x10], eax
jmp 0x533a01
push dword [ebx + 0x24]
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.004b9ee0
mov ecx, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x24], ecx
mov edx, ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00533760
mov esi, eax
add esp, 0x10
test esi, esi
je 0x533a01
push dword [esp + 0x10]
call fcn.0052cca0
push eax
push 0x62deb8
call fcn.004b9ee0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
push dword [esp + 0x18]
call fcn.004b7cf0
add esp, 4
test esi, esi
jne 0x533b0b
push dword [ebp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebx
push dword [edi + 8]
push dword [edi + 4]
call fcn.005334e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x533a50
push dword [esp + 0x10]
call fcn.0052cca0
push eax
push 0x62deb8
call fcn.004b9ee0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
jmp 0x533aaa
push dword [edi + 0xc]
push str.CREATE_TABLE_x__s
call fcn.004b9ee0
mov edi, eax
add esp, 8
mov ebx, 4
test edi, edi
je 0x533a98
nop dword [eax + eax]
cmp ebx, dword [ebp + 8]
jge 0x533abc
mov eax, dword [ebp + 0xc]
mov esi, edi
push dword [eax + ebx*4]
push edi
push str._s___s
call fcn.004b9ee0
push esi
mov edi, eax
call fcn.004b7cf0
add esp, 0x10
inc ebx
test edi, edi
jne 0x533a70
mov esi, 7
push edi
call fcn.004b7cf0
mov ebx, dword [esp + 0x20]
add esp, 4
test esi, esi
jne 0x533b0b
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x533a98
push edi
push str._s__
mov esi, edi
call fcn.004b9ee0
push esi
mov edi, eax
call fcn.004b7cf0
add esp, 0xc
test edi, edi
je 0x533a98
mov ebx, dword [esp + 0x10]
push edi
push ebx
call fcn.0051af20
mov esi, eax
add esp, 8
test esi, esi
je 0x533a9d
push ebx
call fcn.0052cca0
push eax
push 0x62deb8
call fcn.004b9ee0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
jmp 0x533a9d
mov ecx, ebx
call fcn.0052f300
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret