Function at 0x4dfa50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x55e068]
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 + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
movd xmm0, edi
pshufd xmm4, xmm0, 0
movaps xmmword [esp + 0x30], xmm4
mov dword [esp + 0x18], eax
mov dword [edi + 0xc], edx
je 0x4dfbac
push edx
call fcn.00441320
add esp, 4
mov esi, eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.00441730
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x10], ecx
cmp byte [edi + 0x19], cl
jbe 0x4dfae5
push ecx
push str._a_d
push esi
call fcn.00441730
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4dfac5
push dword [esp + 0x18]
push dword [esp + 0x20]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.00441730
push dword [esp + 0x28]
push dword [esp + 0x30]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.00441730
push dword [edi + 0x10]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.00441730
add esp, 0x34
test esi, esi
je 0x4dfc3d
cmp esi, 0x55fef0
je 0x4dfc3d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4dfb5b
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4dfb5b
test byte [esi + 0x15], 4
jne 0x4dfb5b
mov ecx, esi
call fcn.004411a0
jmp 0x4dfb5e
mov eax, dword [esi + 4]
push esi
mov dword [esp + 0x14], eax
call fcn.0043ec40
mov esi, dword [esp + 0x14]
add esp, 4
test esi, esi
je 0x4dfc3d
push 0
push 0
push 0
push esi
push dword [esp + 0x34]
call fcn.00492210
add esp, 0x14
mov dword [esp + 0x28], eax
push esi
call fcn.0043ec40
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4e0022
movaps xmm4, xmmword [esp + 0x30]
mov edx, dword [esp + 0x24]
movaps xmm1, xmmword [0x54f990]
mov ecx, 2
movaps xmm3, xmmword [0x54f9d0]
xor eax, eax
movd xmm2, ecx
nop word [eax + eax]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
paddd xmm0, xmm4
movups xmmword [esp + eax*4 + 0x30], xmm0
add eax, 4
cmp eax, 8
jl 0x4dfbd0
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 + 0x34], xmm0
call fcn.004c1c30
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4dfc53
xor eax, eax
mov dword [edi + 0x30], 0x100000
cmp esi, 1
mov dword [edi + 0x34], 0
cmove esi, eax
jmp 0x4dfd2f
mov eax, 7
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004ff522
mov esp, ebp
pop ebp
ret
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.00441550
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4dfc76
lea esi, [eax + 7]
jmp 0x4dfd2f
push 0
lea ecx, [esp + 0x2c]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x2c]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.00497330
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4dfcda
mov esi, dword [esp + 0x28]
push esi
call fcn.00463aa0
add esp, 4
cmp eax, 0x64
jne 0x4dfcb9
push 0
push esi
call fcn.00464400
add esp, 8
jmp 0x4dfcc1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
call fcn.004629c0
mov edx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
jmp 0x4dfcf1
cmp esi, 7
je 0x4dfced
xor esi, esi
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], esi
jmp 0x4dfd23
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test esi, esi
jne 0x4dfd23
mov eax, ecx
or eax, edx
jne 0x4dfd0b
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], eax
jmp 0x4dfd23
test edx, edx
jl 0x4dfd16
jg 0x4dfd1d
cmp ecx, 0x64
ja 0x4dfd1d
mov ecx, 0x64
xor edx, edx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
push dword [esp + 0x2c]
call fcn.0043ec40
add esp, 4
xor edi, edi
test esi, esi
jne 0x4dfe05
cmp edi, 3
jne 0x4dfd4d
mov eax, dword [esp + 0x20]
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 0x4dfd54
mov eax, dword [edi*4 + 0x539da8]
push dword [esp + 0x18]
push dword [esp + 0x20]
push eax
call fcn.00441550
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x4dfdf6
mov ecx, dword [esp + 0x24]
mov edx, eax
push 0
push dword [esp + edi*4 + 0x34]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.00497330
add esp, 0x14
mov esi, eax
cmp dword [0x55e8c0], 0
je 0x4dfde7
mov eax, dword [0x561c90]
test eax, eax
je 0x4dfdac
push eax
call dword [0x55e910]
add esp, 4
push dword [esp + 0x10]
call dword [0x55e8ec]
sub dword [0x561aa8], eax
add esp, 4
dec dword [0x561acc]
push dword [esp + 0x10]
call dword [0x55e8e4]
mov eax, dword [0x561c90]
add esp, 4
test eax, eax
je 0x4dfdfb
push eax
call dword [0x55e918]
add esp, 4
jmp 0x4dfdfb
push dword [esp + 0x10]
call dword [0x55e8e4]
add esp, 4
jmp 0x4dfdfb
mov esi, 7
inc edi
cmp edi, 8
jl 0x4dfd31
mov edi, dword [esp + 0x20]
cmp byte [edi + 0x19], 0
je 0x4e0020
push dword [esp + 0x18]
push dword [esp + 0x20]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.00441550
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
je 0x4e001b
call fcn.004be470
test eax, eax
jne 0x4dfe85
push eax
push 0x18
call fcn.0043ea10
mov esi, eax
add esp, 8
test esi, esi
je 0x4dfe85
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4dfe5a
mov eax, dword [eax + 0x6c]
jmp 0x4dfe5f
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 0x4dfe8a
mov esi, 0x55fef0
push dword [esp + 0x18]
push dword [esp + 0x20]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.00441730
mov eax, dword [esp + 0x30]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x4dff1e
nop dword [eax]
test edi, edi
je 0x4dfedf
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 8]
jb 0x4dfed0
push 1
mov edx, 0x546e8c
mov ecx, esi
call fcn.004410e0
add esp, 4
jmp 0x4dfedf
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edx
mov al, byte [0x546e8c]
mov byte [ecx + edx - 1], al
mov eax, dword [esp + 0x20]
lea ecx, [edi + 2]
movzx eax, byte [eax + 0x1a]
cmp edi, eax
jge 0x4dff01
push edi
push ecx
push edi
push str.a_dcoalesce___d_a_d_
push esi
call fcn.00441730
add esp, 0x14
jmp 0x4dff11
push ecx
push edi
push str.a_d__d
push esi
call fcn.00441730
add esp, 0x10
mov eax, dword [esp + 0x20]
inc edi
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x4dfeb0
push str._WHERE_rowid_1
push esi
call fcn.00441730
add esp, 8
test esi, esi
je 0x4e001b
cmp esi, 0x55fef0
je 0x4e001b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4dff65
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4dff65
test byte [esi + 0x15], 4
jne 0x4dff65
mov ecx, esi
call fcn.004411a0
mov edi, eax
jmp 0x4dff68
mov edi, dword [esi + 4]
push esi
call fcn.0043ec40
add esp, 4
test edi, edi
je 0x4e001b
mov eax, dword [esp + 0x20]
mov edx, edi
mov ecx, dword [esp + 0x24]
add eax, 0x70
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
call fcn.00497330
add esp, 0x14
mov esi, eax
cmp dword [0x55e8c0], 0
je 0x4dfffe
mov eax, dword [0x561c90]
test eax, eax
je 0x4dffb8
push eax
call dword [0x55e910]
add esp, 4
push edi
call dword [0x55e8ec]
sub dword [0x561aa8], eax
add esp, 4
dec dword [0x561acc]
push edi
call dword [0x55e8e4]
mov eax, dword [0x561c90]
add esp, 4
test eax, eax
je 0x4e0020
push eax
call dword [0x55e918]
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004ff522
mov esp, ebp
pop ebp
ret
push edi
call dword [0x55e8e4]
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004ff522
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.004ff522
mov esp, ebp
pop ebp
ret