Function at 0x4d28a0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5f237c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push esi
push edi
mov edi, dword [ebx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x44], edi
movd xmm0, edi
pshufd xmm4, xmm0, 0
movaps xmmword [ebp - 0x20], xmm4
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], eax
mov dword [edi + 0xc], ecx
je 0x4d29f7
push ecx
call fcn.00495a20
push dword [ebp - 0x3c]
mov esi, eax
push dword [ebp - 0x40]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.00495ae0
xor ecx, ecx
add esp, 0x14
mov dword [ebp - 0x34], ecx
cmp byte [edi + 0x19], cl
jbe 0x4d293e
nop dword [eax]
push ecx
push str._a_d
push esi
call fcn.00495ae0
mov ecx, dword [ebp - 0x34]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jl 0x4d2920
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.00495ae0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.00495ae0
push dword [edi + 0x10]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.00495ae0
add esp, 0x34
test esi, esi
je 0x4d2a7c
cmp esi, 0x5f426c
je 0x4d2a7c
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4d29b0
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4d29b0
test byte [esi + 0x15], 4
jne 0x4d29b0
push esi
call fcn.00517280
add esp, 4
jmp 0x4d29b3
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 0x34], eax
call fcn.0048e850
mov esi, dword [ebp - 0x34]
add esp, 4
test esi, esi
je 0x4d2a7c
push 0
push 0
push 0
push esi
push dword [ebp - 0x48]
call fcn.0048c750
push esi
mov dword [ebp - 0x4c], eax
call fcn.0048e850
mov eax, dword [ebp - 0x4c]
add esp, 0x18
test eax, eax
jne 0x4d2e61
movaps xmm4, xmmword [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
movaps xmm1, xmmword [0x5c9320]
mov edx, 2
movaps xmm3, xmmword [0x5c9340]
xor eax, eax
movd xmm2, edx
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
paddd xmm0, xmm4
movups xmmword [ebp + eax*4 - 0x30], xmm0
add eax, 4
cmp eax, 8
jl 0x4d2a10
push 0
push 0
push 0
push 0
push 0
push 0
push str.sqlite_stat1
push dword [edi + 0x20]
xorps xmm0, xmm0
push ecx
movlpd qword [ebp - 0x38], xmm0
call fcn.00493bd0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4d2a94
xor eax, eax
mov dword [edi + 0x30], 0x100000
cmp esi, 1
mov dword [edi + 0x34], 0
cmove esi, eax
jmp 0x4d2b66
mov eax, 7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a51d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.0048e5f0
add esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4d2ab6
lea esi, [eax + 7]
jmp 0x4d2b66
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x80
push 0xffffffffffffffff
push eax
push dword [ebp - 0x48]
call fcn.004f30c0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4d2b14
mov esi, dword [ebp - 0x4c]
push esi
call fcn.00490f70
add esp, 4
cmp eax, 0x64
jne 0x4d2af5
push 0
push esi
call fcn.004913e0
add esp, 8
jmp 0x4d2afb
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], edx
call fcn.00491e80
mov ecx, dword [ebp - 0x34]
add esp, 4
mov edx, dword [ebp - 0x4c]
mov esi, eax
jmp 0x4d2b2d
cmp esi, 7
je 0x4d2b27
xor esi, esi
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], esi
jmp 0x4d2b5b
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
test esi, esi
jne 0x4d2b5b
mov eax, ecx
or eax, edx
jne 0x4d2b43
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], eax
jmp 0x4d2b5b
test edx, edx
jl 0x4d2b4e
jg 0x4d2b55
cmp ecx, 0x64
ja 0x4d2b55
mov ecx, 0x64
xor edx, edx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
push dword [ebp - 0x50]
call fcn.0048e850
add esp, 4
xor edi, edi
test esi, esi
jne 0x4d2c30
cmp edi, 3
jne 0x4d2b83
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x19], 0
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x4d2b8a
mov eax, dword [edi*4 + 0x5f3680]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push eax
call fcn.0048e5f0
add esp, 0xc
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4d2c21
push 0
push dword [ebp + edi*4 - 0x30]
push 0
push 0x85
push 0xffffffffffffffff
push eax
push dword [ebp - 0x48]
call fcn.004f30c0
add esp, 0x1c
mov esi, eax
cmp dword [0x5f3ae0], 0
je 0x4d2c13
mov eax, dword [0x6004e8]
test eax, eax
je 0x4d2bdd
push eax
call dword [0x5f3b3c]
add esp, 4
push dword [ebp - 0x34]
call dword [0x5f3b18]
push dword [ebp - 0x34]
sub dword [0x6003f8], eax
dec dword [0x60041c]
call dword [0x5f3b10]
mov eax, dword [0x6004e8]
add esp, 8
test eax, eax
je 0x4d2c26
push eax
call dword [0x5f3b44]
add esp, 4
jmp 0x4d2c26
push dword [ebp - 0x34]
call dword [0x5f3b10]
add esp, 4
jmp 0x4d2c26
mov esi, 7
inc edi
cmp edi, 8
jl 0x4d2b68
mov edi, dword [ebp - 0x44]
cmp byte [edi + 0x19], 0
je 0x4d2e5f
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.0048e5f0
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
je 0x4d2e5a
call fcn.00516300
test eax, eax
jne 0x4d2cac
push eax
push 0x18
call fcn.004f3350
mov esi, eax
add esp, 8
test esi, esi
je 0x4d2cac
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4d2c81
mov eax, dword [eax + 0x6c]
jmp 0x4d2c86
mov eax, 0x3b9aca00
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
jmp 0x4d2cb1
mov esi, 0x5f426c
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.00495ae0
mov eax, dword [ebp - 0x44]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x4d2d3b
test edi, edi
je 0x4d2cfe
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 8]
jb 0x4d2cef
push 1
push 0x5b97b8
push esi
call fcn.004ab030
add esp, 0xc
jmp 0x4d2cfe
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edx
mov al, byte [0x5b97b8]
mov byte [ecx + edx - 1], al
mov eax, dword [ebp - 0x44]
lea ecx, [edi + 2]
movzx eax, byte [eax + 0x1a]
cmp edi, eax
jge 0x4d2d1f
push edi
push ecx
push edi
push str.a_dcoalesce___d_a_d_
push esi
call fcn.00495ae0
add esp, 0x14
jmp 0x4d2d2f
push ecx
push edi
push str.a_d__d
push esi
call fcn.00495ae0
add esp, 0x10
mov eax, dword [ebp - 0x44]
inc edi
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x4d2cd0
push str._WHERE_rowid_1
push esi
call fcn.00495ae0
add esp, 8
test esi, esi
je 0x4d2e5a
cmp esi, 0x5f426c
je 0x4d2e5a
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4d2d84
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4d2d84
test byte [esi + 0x15], 4
jne 0x4d2d84
push esi
call fcn.00517280
add esp, 4
mov edi, eax
jmp 0x4d2d87
mov edi, dword [esi + 4]
cmp dword [0x5f3ae0], 0
je 0x4d2dd2
mov eax, dword [0x6004e8]
test eax, eax
je 0x4d2da3
push eax
call dword [0x5f3b3c]
add esp, 4
push esi
call dword [0x5f3b18]
sub dword [0x6003f8], eax
dec dword [0x60041c]
push esi
call dword [0x5f3b10]
mov eax, dword [0x6004e8]
add esp, 8
test eax, eax
je 0x4d2ddc
push eax
call dword [0x5f3b44]
jmp 0x4d2dd9
push esi
call dword [0x5f3b10]
add esp, 4
test edi, edi
je 0x4d2e5a
mov eax, dword [ebp - 0x44]
push 0
add eax, 0x70
push eax
push 0
push 0x85
push 0xffffffffffffffff
push edi
push dword [ebp - 0x48]
call fcn.004f30c0
add esp, 0x1c
mov esi, eax
cmp dword [0x5f3ae0], 0
je 0x4d2e4e
mov eax, dword [0x6004e8]
test eax, eax
je 0x4d2e1c
push eax
call dword [0x5f3b3c]
add esp, 4
push edi
call dword [0x5f3b18]
sub dword [0x6003f8], eax
dec dword [0x60041c]
push edi
call dword [0x5f3b10]
mov eax, dword [0x6004e8]
add esp, 8
test eax, eax
je 0x4d2e5f
push eax
call dword [0x5f3b44]
add esp, 4
jmp 0x4d2e5f
push edi
call dword [0x5f3b10]
add esp, 4
jmp 0x4d2e5f
mov esi, 7
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a51d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret