Function at 0x100dbdd0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov ebx, edx
mov dword [esp + 8], esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esi + 0xc], ebx
je 0x100dc015
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100dbe5c
push eax
push 0x18
call fcn.100049e0
mov esi, eax
add esp, 8
test esi, esi
je 0x100dbe5c
test ebx, ebx
je 0x100dbe31
mov eax, dword [ebx + 0x78]
jmp 0x100dbe36
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 0x100dbe61
mov esi, 0x1011ed50
push dword [esp + 0x10]
push edi
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
mov eax, dword [esp + 0x1c]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x100dbe9e
mov ebx, eax
push edi
push str._a_d
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x100dbe82
mov ebx, dword [esp + 0x18]
push dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push edi
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
push dword [esp + 0x20]
push edi
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
mov eax, dword [esp + 0x2c]
push dword [eax + 0x10]
push dword [esp + 0x34]
push edi
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0x34
test esi, esi
je 0x100dbffa
cmp esi, 0x1011ed50
je 0x100dbffa
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100dbf15
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100dbf15
test byte [esi + 0x15], 4
jne 0x100dbf15
mov ecx, esi
call fcn.10007790
mov edi, eax
jmp 0x100dbf18
mov edi, dword [esi + 4]
cmp dword [0x1011d0f8], 0
je 0x100dbf66
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dbf34
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dbf70
push eax
call dword [0x1011d150]
jmp 0x100dbf6d
push esi
call dword [0x1011d11c]
add esp, 4
test edi, edi
je 0x100dbffa
push 0
push 0
push 0
push edi
push ebx
call sym.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov esi, eax
cmp dword [0x1011d0f8], 0
je 0x100dbfd8
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dbfa6
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dbfe2
push eax
call dword [0x1011d150]
jmp 0x100dbfdf
push edi
call dword [0x1011d11c]
add esp, 4
test esi, esi
je 0x100dc011
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
movaps xmm1, xmmword [0x10119470]
mov eax, 2
xor ecx, ecx
movd xmm2, eax
lea eax, [esi + 0x50]
movd xmm0, eax
pshufd xmm3, xmm0, 0
movd xmm0, ecx
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movups xmmword [esp + ecx*4 + 0x2c], xmm0
add ecx, 4
cmp ecx, 8
jl 0x100dc033
xor edx, edx
mov dword [esp + 0x20], 0x64
push edx
push edx
push edx
push edx
push edx
push edx
push str.sqlite_stat1
push dword [esi + 0x20]
mov dword [esp + 0x3c], edx
push ebx
call sym.sqlite3.dll_sqlite3_table_column_metadata
mov edi, eax
add esp, 0x24
test edi, edi
je 0x100dc092
xor eax, eax
cmp edi, 1
cmove edi, eax
mov eax, 0x100000
jmp 0x100dc17f
push dword [esi + 0x24]
push dword [esi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call sym.sqlite3.dll_sqlite3_mprintf
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x100dc0b5
lea edi, [eax + 7]
jmp 0x100dc17a
push 0
lea ecx, [esp + 0x28]
mov edx, eax
push ecx
push 0
push 0x80
push 0xffffffffffffffff
mov ecx, ebx
call fcn.10071fd0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100dc107
mov edi, dword [esp + 0x24]
push edi
call sym.sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100dc0fc
push 0
push edi
call sym.sqlite3.dll_sqlite3_column_int64
add esp, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
push edi
call sym.sqlite3.dll_sqlite3_finalize
add esp, 4
mov edi, eax
cmp dword [0x1011d0f8], 0
je 0x100dc159
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dc123
push eax
call dword [0x1011d148]
add esp, 4
mov ebx, dword [esp + 0x28]
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dc167
push eax
call dword [0x1011d150]
jmp 0x100dc164
mov ebx, dword [esp + 0x28]
push ebx
call dword [0x1011d11c]
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jl 0x100dc17a
mov eax, dword [esp + 0x20]
jg 0x100dc181
cmp eax, 0x64
ja 0x100dc181
mov eax, 0x64
xor ecx, ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
xor esi, esi
nop dword [eax]
test edi, edi
jne 0x100dc259
cmp esi, 3
jne 0x100dc1ac
mov eax, dword [esp + 0xc]
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 0x100dc1b3
mov eax, dword [esi*4 + 0x10110cc0]
push dword [esp + 0x10]
push dword [esp + 0x18]
push eax
call sym.sqlite3.dll_sqlite3_mprintf
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100dc24a
mov ecx, dword [esp + 0x18]
mov edx, ebx
push 0
push dword [esp + esi*4 + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.10071fd0
add esp, 0x14
mov edi, eax
cmp dword [0x1011d0f8], 0
je 0x100dc23e
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dc209
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dc24f
push eax
call dword [0x1011d150]
add esp, 4
jmp 0x100dc24f
push ebx
call dword [0x1011d11c]
add esp, 4
jmp 0x100dc24f
mov edi, 7
inc esi
cmp esi, 8
jl 0x100dc190
mov ebx, dword [esp + 0xc]
cmp byte [ebx + 0x19], 0
je 0x100dc5b0
push dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push edi
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call sym.sqlite3.dll_sqlite3_mprintf
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x100dc5ab
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100dc2da
push eax
push 0x18
call fcn.100049e0
mov esi, eax
add esp, 8
test esi, esi
je 0x100dc2da
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100dc2af
mov eax, dword [ebx + 0x78]
jmp 0x100dc2b4
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 0x100dc2e3
mov ebx, dword [esp + 0x18]
mov esi, 0x1011ed50
push dword [esp + 0x10]
push edi
push str.UPDATE___w_.__w_rowid_SET
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
mov eax, dword [esp + 0x1c]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x100dc34f
mov ebx, eax
test edi, edi
je 0x100dc32f
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100dc324
push 1
mov edx, 0x1010ab5c
mov ecx, esi
call fcn.100076a0
add esp, 4
jmp 0x100dc32f
mov eax, dword [esi + 4]
mov dword [esi + 0x10], ecx
mov byte [eax + ecx - 1], 0x2c
lea eax, [edi + 2]
push eax
push edi
push str.a_d__d
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x100dc304
mov ebx, dword [esp + 0x18]
push str._WHERE_rowid_1
push esi
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 8
test esi, esi
je 0x100dc5ab
cmp esi, 0x1011ed50
je 0x100dc5ab
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100dc39a
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100dc39a
test byte [esi + 0x15], 4
jne 0x100dc39a
mov ecx, esi
call fcn.10007790
mov edi, eax
mov dword [esp + 0x14], eax
jmp 0x100dc3a1
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
cmp dword [0x1011d0f8], 0
je 0x100dc3ef
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dc3bd
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dc3f9
push eax
call dword [0x1011d150]
jmp 0x100dc3f6
push esi
call dword [0x1011d11c]
add esp, 4
test edi, edi
je 0x100dc5ab
mov eax, dword [esp + 0xc]
add eax, 0x70
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov dword [eax], 0
test ebx, ebx
jne 0x100dc425
mov eax, str.NULL
jmp 0x100dc43e
mov al, byte [ebx + 0x5d]
cmp al, 0x76
je 0x100dc476
cmp al, 0xba
je 0x100dc439
cmp al, 0x6d
mov eax, str.invalid
jne 0x100dc43e
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call sym.sqlite3.dll_sqlite3_log
add esp, 0xc
push 0x10110a2c
push 0x207a4
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov edi, 0x15
jmp 0x100dc522
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100dc487
push eax
call dword [0x1011d148]
add esp, 4
cmp byte [ebx + 0x5b], 0
jne 0x100dc494
mov ecx, ebx
call fcn.1001a370
push 0
push dword [esp + 0x28]
mov edx, edi
mov ecx, ebx
push 0
push 0x85
push 0xffffffffffffffff
call fcn.10071a40
mov esi, eax
add esp, 0x14
test esi, esi
je 0x100dc4e1
cmp byte [ebx + 0x53], 0
jne 0x100dc4e1
cmp esi, 0x201
je 0x100dc494
cmp esi, 0x11
jne 0x100dc4e1
or edx, 0xffffffff
mov ecx, ebx
call fcn.10052be0
mov ecx, dword [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x100dc494
cmp byte [ebx + 0x5b], 0
jne 0x100dc4ee
mov ecx, ebx
call fcn.1001a3c0
cmp byte [ebx + 0x53], 0
jne 0x100dc4fc
test esi, esi
jne 0x100dc4fc
xor edi, edi
jmp 0x100dc507
mov edx, esi
mov ecx, ebx
call fcn.10005460
mov edi, eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x1c4], 0
test eax, eax
je 0x100dc522
push eax
call dword [0x1011d150]
add esp, 4
cmp dword [0x1011d0f8], 0
je 0x100dc589
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100dc53e
push eax
call dword [0x1011d148]
add esp, 4
mov esi, dword [esp + 0x14]
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100dc5b0
push eax
call dword [0x1011d150]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
push esi
call dword [0x1011d11c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov edi, 7
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret