Function at 0x4320f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x616910]
push esi
mov dword [ebp - 0x414], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [0x61672c]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x420], eax
mov eax, dword [0x616b04]
mov ecx, dword [edi + 0x50e8]
mov dword [ebp - 0x418], eax
mov eax, dword [0x6167e8]
mov dword [ebp - 0x41c], eax
mov word [edi + 0x33a4], si
mov eax, dword [ecx]
mov byte [ebp - 0x40c], 0
test eax, eax
je 0x43216b
nop
mov eax, dword [eax + 0x1004]
inc esi
test eax, eax
jne 0x432160
mov eax, dword [ecx + 4]
test eax, eax
je 0x432193
movsx ecx, word [eax]
shl esi, 0xa
mov eax, dword [eax + ecx*4]
movsx edx, word [eax]
lea eax, [ecx - 0x401]
add eax, esi
shl eax, 0xa
add edx, eax
mov dword [edi + 0x1440], edx
jmp 0x43219d
mov dword [edi + 0x1440], 0
mov eax, dword [edi + 0x50e4]
mov esi, dword [edi + 0x50e0]
add esi, 0x1800
mov ecx, esi
mov eax, dword [eax + 0x824]
mov dword [edi + 0x1438], eax
mov eax, dword [ebp - 0x418]
mov dword [edi + 0x1444], eax
lea eax, [edi + 0x438]
mov dword [edi + 0x1448], ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432203
test dx, dx
je 0x4321f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432203
add eax, 4
add ecx, 4
test dx, dx
jne 0x4321d5
mov dword [ebp - 0x418], 0
jmp 0x43220e
sbb ebx, ebx
or ebx, 1
mov dword [ebp - 0x418], ebx
push esi
lea eax, [edi + 0x438]
push 0x200
push eax
call fcn.00565fee
mov ecx, dword [edi + 0x50e0]
add esp, 0xc
add ecx, 0x1800
call fcn.0040d890
mov edx, dword [edi + 0x50e0]
lea ecx, [edx + 0x1800]
test eax, eax
jne 0x432279
cmp word [ecx], 0x2a
jne 0x432254
cmp word [edx + 0x1802], 0x43
je 0x432270
cmp word [edx + 0x3884], 0
lea ecx, [edx + 0x3884]
jne 0x432270
mov ecx, dword [edi + 0x50e4]
add ecx, 0x1932
mov eax, edi
add eax, 0x838
jmp 0x43227f
lea eax, [edi + 0x838]
push ecx
push 0x200
push eax
call fcn.00565fee
mov ebx, dword [ebp - 0x410]
add esp, 0xc
cmp ebx, 0xfffffffd
je 0x432373
mov edx, dword [edi + 0x50e0]
cmp byte [edx + 0x4f1c], 0
je 0x43230e
cmp byte [edx + 0x53a6], 0
je 0x43230e
mov ecx, dword [edi + 0x50e4]
movzx eax, word [ecx + 0x1d32]
mov esi, eax
cmp eax, 0x2a
jne 0x4322d3
cmp word [ecx + 0x1d34], 0x43
je 0x4322dd
cmp word [ecx + 0x3532], 0
jne 0x4322e7
cmp word [ecx + 0x3132], 0
je 0x43230e
cmp esi, 0x2a
jne 0x4322f6
cmp word [ecx + 0x1d34], 0x43
je 0x432306
cmp word [ecx + 0x3532], 0
lea eax, [ecx + 0x3532]
jne 0x432314
lea eax, [ecx + 0x3132]
jmp 0x432314
lea eax, [edx + 0x3402]
push eax
lea eax, [edi + 0xc38]
push 0x200
push eax
call fcn.00565fee
add esp, 0xc
lea ecx, [edi + 0x1038]
cmp ebx, 0xfffffffe
je 0x43236e
cmp ebx, 0xffffffff
je 0x432352
mov eax, dword [ebp - 0x420]
push dword [eax + ebx*4]
push 0x200
push ecx
call fcn.00565fee
add esp, 0xc
jmp 0x432373
mov eax, dword [edi + 0x50e4]
add eax, 0x41a
push eax
push 0x200
push ecx
call fcn.00565fee
add esp, 0xc
jmp 0x432373
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x41c]
movups xmm0, xmmword [eax + 0x48]
lea eax, [edi + 8]
push eax
push dword [edi + 0x144c]
movups xmmword [edi + 0x20], xmm0
call dword [sym.imp.sqlite3.dll_sqlite3_open16]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4323b7
push 0x3e8
call fcn.00560858
add esp, 4
push ebx
push 0x2b05
push str.SQLite3_open_error
jmp 0x432598
push 0
lea esi, [edi + 0xc]
push esi
push 0xffffffffffffffff
push str.SELECT_rootPath_FROM_favoriteSubTable_WHERE_path___
push dword [edi + 8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare16]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4323f3
push 0x3e8
call fcn.00560858
add esp, 4
push ebx
push 0x13c5
push str.SQLite3_prepare_error
jmp 0x432598
lea eax, [edi + 0x438]
push eax
lea eax, [ebp - 0x408]
push 0x200
push eax
call fcn.00565fee
add esp, 0xc
lea ecx, [ebp - 0x408]
call fcn.0040d890
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x432469
lea eax, [ebp - 0x408]
push eax
call ebx
dec eax
cmp word [ebp + eax*2 - 0x408], 0x2f
lea ecx, [eax - 1]
cmovne ecx, eax
test ecx, ecx
js 0x432469
movzx eax, word [ebp + ecx*2 - 0x408]
cmp eax, 0x2f
je 0x432469
cmp eax, 0x2e
je 0x432469
cmp eax, 0x23
je 0x43245f
sub ecx, 1
jns 0x432441
jmp 0x432469
xor eax, eax
mov word [ebp + ecx*2 - 0x408], ax
push 0
lea eax, [ebp - 0x408]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0x408]
push eax
push 1
push dword [esi]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text16]
add esp, 0x14
test eax, eax
jne 0x43256b
mov eax, dword [esi]
test eax, eax
je 0x43256b
push eax
call dword [sym.imp.sqlite3.dll_sqlite3_column_count]
add esp, 4
mov dword [ebp - 0x410], 0
push dword [esi]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x432565
push 0
push dword [esi]
call dword [sym.imp.sqlite3.dll_sqlite3_column_text16]
mov ebx, eax
lea ecx, [edi + 0x38]
add esp, 8
mov edx, ebx
nop dword [eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x432506
test si, si
je 0x432502
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x432506
add ecx, 4
add edx, 4
test ax, ax
jne 0x4324e0
xor eax, eax
jmp 0x43250b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x40c]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
lea eax, [edi + 0x38]
push ebx
push 0x200
push eax
mov dword [ebp - 0x40c], ecx
call fcn.00565fee
mov ebx, dword [ebp - 0x410]
lea esi, [edi + 0xc]
add esp, 0xc
mov byte [edi + 0x33a5], 1
inc ebx
mov dword [ebp - 0x410], ebx
push dword [esi]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x4324c5
test ebx, ebx
jne 0x43256b
xor eax, eax
mov word [edi + 0x38], ax
push dword [esi]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x432692
push 0x3e8
call fcn.00560858
add esp, 4
push ebx
push 0x2b0c
push str.SQLite3_finalize_error
push str._s_Place_d_LastCode_d
mov esi, eax
push 0x3e8
push esi
call fcn.00407340
add esp, 0x18
push 0x30
push 0x5aa224
push esi
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00560853
add esp, 4
mov dword [edi + 0x4bd8], 0
push dword [edi + 8]
call dword [sym.imp.sqlite3.dll_sqlite3_close]
add esp, 4
xor al, al
mov byte [edi + 0x33a4], al
mov ecx, dword [edi + 0x50e4]
call fcn.0041d0a0
cmp byte [edi + 0x43c0], 0
mov ecx, 1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cwde
mov dword [edi + 0x143c], eax
mov eax, dword [ebp - 0x40c]
push 0
movzx eax, al
cmovne eax, ecx
mov word [edi + 0x43c0], 0
push 0
xor ebx, ebx
movzx eax, al
cmp byte [edi + 0x43c2], bl
push 0x8049
push dword [edi + 4]
cmove ebx, eax
mov byte [edi + 0x43c2], 0
call esi
push 0
push 0
push 0x804c
push dword [edi + 4]
call esi
cmp byte [edi + 0x33a5], 0
je 0x43265f
test bl, bl
je 0x43266d
push 0
push 0
push 0x804d
push dword [edi + 4]
call esi
push 0
push 0
push 0x8066
push dword [edi + 4]
call esi
cmp byte [edi + 0x33a5], 0
mov eax, dword [edi + 4]
je 0x4328cd
push 1
jmp 0x4328dc
push 0
lea ebx, [edi + 0xc]
mov dword [ebp - 0x410], 0
push ebx
push 0xffffffffffffffff
push str.SELECT_title__author__referCount__updateCount__groupId_FROM_favoriteTable_WHERE_path___
push dword [edi + 8]
mov dword [edi + 0x4bd8], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare16]
add esp, 0x14
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x432735
push 0x3e8
call fcn.00560858
add esp, 4
mov esi, eax
push dword [ebp - 0x41c]
push 0x13c5
push str.SQLite3_prepare_error
push str._s_Place_d_LastCode_d
push 0x3e8
push esi
call fcn.00407340
add esp, 0x18
push 0x30
push 0x5aa224
push esi
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00560853
add esp, 4
push dword [edi + 8]
call dword [sym.imp.sqlite3.dll_sqlite3_close]
mov eax, dword [ebp - 0x40c]
add esp, 4
mov dword [ebp - 0x40c], eax
jmp 0x4325e0
cmp byte [edi + 0x33a5], 0
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
je 0x43276d
lea esi, [edi + 0x38]
push esi
call eax
add eax, eax
push eax
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_bind_text16]
push esi
push 1
push dword [ebx]
call eax
mov ecx, eax
add esp, 0x14
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x40c], eax
jmp 0x4327a8
lea esi, [edi + 0x438]
push esi
call eax
add eax, eax
push eax
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_bind_text16]
push esi
push 1
push dword [ebx]
call eax
mov ecx, eax
add esp, 0x14
mov eax, dword [ebp - 0x40c]
mov edx, 1
cmp dword [ebp - 0x418], 0
movzx eax, al
cmovne eax, edx
mov byte [ebp - 0x40c], al
test ecx, ecx
jne 0x432852
mov eax, dword [ebx]
test eax, eax
je 0x432852
push eax
call dword [sym.imp.sqlite3.dll_sqlite3_column_count]
add esp, 4
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x432852
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
nop
push 0
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_column_text16]
push eax
lea eax, [edi + 0xc38]
push 0x200
push eax
call fcn.00565fee
add esp, 0x14
push 1
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_column_text16]
push eax
lea eax, [edi + 0x1038]
push 0x200
push eax
call fcn.00565fee
add esp, 0x14
push 2
push dword [ebx]
call esi
push 3
push dword [ebx]
mov dword [edi + 0x4bd8], eax
call esi
push 4
push dword [ebx]
mov dword [ebp - 0x410], eax
call esi
mov dword [edi + 0x3398], eax
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
je 0x4327e0
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4328ad
push 0x3e8
call fcn.00560858
add esp, 4
mov esi, eax
push ebx
push 0x2b0c
push str.SQLite3_finalize_error
push str._s_Place_d_LastCode_d
push 0x3e8
push esi
call fcn.00407340
add esp, 0x18
push 0x30
push 0x5aa224
push esi
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00560853
add esp, 4
push dword [edi + 8]
call dword [sym.imp.sqlite3.dll_sqlite3_close]
add esp, 4
cmp dword [ebp - 0x410], 0
je 0x4325e0
mov al, 1
jmp 0x4325e2
cmp byte [edi + 0x33a4], 0
jne 0x43268b
push 0
push 0
push 0x8068
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18