Function at 0x5334e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x54], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
movd xmm0, edi
pshufd xmm4, xmm0, 0
movaps xmmword [esp + 0x20], xmm4
mov dword [edi + 0xc], edx
je 0x533588
push dword [edi + 0x10]
push ecx
push eax
push ecx
push eax
push ecx
push eax
push ecx
push eax
push str.CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY__data_BLOB__CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY__nodeno_INTEGER__CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY__parentnode_INTEGER__INSERT_INTO__q._q_node_VALUES_1__zeroblob__d__
call fcn.004b9ee0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x533553
lea eax, [esi + 7]
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push dword [esp + 0x24]
call fcn.00506d90
add esp, 0x14
mov dword [esp + 0x18], eax
push esi
call fcn.004b7cf0
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x53374a
movaps xmm4, xmmword [esp + 0x20]
mov edx, dword [esp + 0x14]
movaps xmm1, xmmword [0x63fd90]
mov ecx, 2
movaps xmm3, xmmword [0x63fdb0]
xor eax, eax
movd xmm2, ecx
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
paddd xmm0, xmm4
movups xmmword [esp + eax*4 + 0x38], xmm0
add eax, 4
cmp eax, 8
jl 0x5335a1
push 0
push 0
push 0
push 0
push 0
push 0
push str.sqlite_stat1
push dword [edi + 0x20]
xorps xmm0, xmm0
push edx
movlpd qword [esp + 0x44], xmm0
call fcn.0052e300
mov esi, eax
add esp, 0x24
test esi, esi
je 0x53360e
xor eax, eax
mov dword [edi + 0x30], 0x100000
cmp esi, 1
mov dword [edi + 0x34], 0
cmove esi, eax
jmp 0x5336eb
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.004b9ee0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x533631
lea esi, [eax + 7]
jmp 0x5336eb
push 0
lea ecx, [esp + 0x5c]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 1
push 0xffffffffffffffff
call fcn.0050be30
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x533696
push dword [esp + 0x58]
call fcn.004db790
add esp, 4
cmp eax, 0x64
jne 0x533672
push esi
push dword [esp + 0x5c]
call fcn.004dc130
add esp, 8
jmp 0x53367a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
call fcn.004daa00
mov edx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
jmp 0x5336ad
cmp esi, 7
je 0x5336a9
xor esi, esi
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], esi
jmp 0x5336df
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test esi, esi
jne 0x5336df
mov eax, ecx
or eax, edx
jne 0x5336c7
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], eax
jmp 0x5336df
test edx, edx
jl 0x5336d2
jg 0x5336d9
cmp ecx, 0x64
ja 0x5336d9
mov ecx, 0x64
xor edx, edx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
push dword [esp + 0x1c]
call fcn.004b7cf0
add esp, 4
xor edi, edi
nop dword [eax]
test esi, esi
jne 0x533748
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [edi + 0x6294a4]
call fcn.004b9ee0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x533732
mov ecx, dword [esp + 0x14]
mov edx, eax
push esi
push dword [esp + edi + 0x3c]
push esi
push 1
push 0xffffffffffffffff
call fcn.0050be30
mov esi, eax
add esp, 0x14
mov eax, dword [esp + 0x1c]
jmp 0x533737
mov esi, 7
push eax
call fcn.004b7cf0
add edi, 4
add esp, 4
cmp edi, 0x20
jl 0x5336f0
mov eax, esi
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret