Function at 0x445bd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x6167e8]
mov edx, dword [0x616910]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x616b04]
push edi
mov edi, dword [0x616704]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc1c], ebx
mov dword [ebp - 0xc24], edi
mov eax, dword [edi + 0x4c10]
mov byte [ebp - 0xc15], 0
mov byte [ebp - 0xc0d], 0
cmp word [eax + 0x1800], 0
je 0x4461ba
mov eax, dword [edi + 0x4c14]
mov ecx, dword [edi + 0x4c18]
mov word [edi + 0x2fa4], 0
mov ax, word [eax + 0x39c2]
mov word [ecx + 0x39ba], ax
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x4c10]
mov dword [edi + 0x1040], eax
add ecx, 0x1800
mov eax, dword [edi + 0x4c18]
mov eax, dword [eax + 0x820]
mov dword [edi + 0x1044], esi
lea esi, [edi + 0x38]
mov dword [edi + 0x1038], eax
mov dword [edi + 0x1048], edx
call fcn.0040d890
test eax, eax
jne 0x4460e0
push esi
lea eax, [ebp - 0xc0c]
push 0x200
push eax
call fcn.00565fee
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
cmp word [esi], 0
je 0x445ccd
push 0x5a9fb0
lea ecx, [ebp - 0xc0c]
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [edi + 0x438]
push ecx
lea ecx, [ebp - 0xc0c]
push ecx
call eax
mov ecx, dword [edi + 0x4c10]
lea eax, [ebp - 0x80c]
push eax
add ecx, 0x1800
lea edx, [ebp - 0x40c]
call fcn.00408910
add esp, 4
lea ecx, [ebp - 0x40c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x445d2c
test dx, dx
je 0x445d28
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x445d2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x445d06
xor eax, eax
jmp 0x445d31
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x40c]
push eax
push 0x200
push esi
setne byte [ebp - 0xc0d]
call fcn.00565fee
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
lea eax, [edi + 0x438]
push 0x200
push eax
call fcn.00565fee
mov eax, dword [ebp - 0xc14]
lea esi, [edi + 8]
add esp, 0xc
movups xmm0, xmmword [eax + 0x48]
push esi
push dword [edi + 0x104c]
movups xmmword [edi + 0x20], xmm0
call dword [sym.imp.sqlite3.dll_sqlite3_open16]
add esp, 8
mov dword [ebp - 0xc14], eax
test eax, eax
je 0x445dd5
push 0x3e8
call fcn.00560858
add esp, 4
mov esi, eax
push dword [ebp - 0xc14]
push 0x36fc
push str.SQLite3_open_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 ebx
jmp 0x4460c3
push 0
lea ebx, [edi + 0xc]
push ebx
push 0xffffffffffffffff
push str.SELECT_title_FROM_folderSubTable_WHERE_rootPath____AND_path___
push dword [esi]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare16]
add esp, 0x14
mov dword [ebp - 0xc14], eax
test eax, eax
je 0x445e19
push 0x3e8
call fcn.00560858
add esp, 4
push dword [ebp - 0xc14]
push 0x36fd
push str.SQLite3_prepare_error
jmp 0x4460a0
push 0
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x40c]
push eax
push 1
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text16]
add esp, 0x14
mov dword [ebp - 0xc14], eax
test eax, eax
je 0x445e9f
push 0x3e8
call fcn.00560858
add esp, 4
mov esi, eax
push dword [ebp - 0xc14]
push 0x36fe
push str.SQLite3_bind_1_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 - 0xc1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00560853
add esp, 4
mov byte [ebp - 0xc15], 1
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x80c]
push eax
push 2
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text16]
add esp, 0x14
mov dword [ebp - 0xc14], eax
test eax, eax
je 0x445ef1
push 0x3e8
call fcn.00560858
add esp, 4
push dword [ebp - 0xc14]
push 0x36ff
push str.SQLite3_bind_2_error
jmp 0x4460a0
mov ecx, dword [ebx]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_text16]
test ecx, ecx
je 0x445f34
push ecx
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 0x445f34
push 0
push dword [ebx]
call esi
mov byte [edi + 0x2fa5], 1
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0xc
cmp eax, 0x64
je 0x445f17
cmp byte [ebp - 0xc15], 0
jne 0x4460d2
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0xc14], eax
test eax, eax
je 0x445f73
push 0x3e8
call fcn.00560858
add esp, 4
push dword [ebp - 0xc14]
push 0x3700
jmp 0x44609b
push 0
push ebx
push 0xffffffffffffffff
push str.SELECT_title__author_FROM_folderTable_WHERE_path___
push dword [edi + 8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare16]
add esp, 0x14
mov dword [ebp - 0xc14], eax
test eax, eax
je 0x445fb5
push 0x3e8
call fcn.00560858
add esp, 4
push dword [ebp - 0xc14]
push 0x3701
push str.SQLite3_prepare_error
jmp 0x4460a0
push 0
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x40c]
push eax
push 1
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text16]
add esp, 0x14
test eax, eax
jne 0x446077
mov eax, dword [ebx]
test eax, eax
je 0x446077
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 0x446077
lea eax, [edi + 0x838]
mov dword [ebp - 0xc14], eax
lea eax, [edi + 0xc38]
mov dword [ebp - 0xc20], eax
xor edi, edi
push 0
push dword [ebx]
call esi
push eax
push 0x200
push dword [ebp - 0xc14]
call fcn.00565fee
add esp, 0x14
push 1
push dword [ebx]
call esi
push eax
push 0x200
push dword [ebp - 0xc20]
call fcn.00565fee
add esp, 0x14
inc edi
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x446021
test edi, edi
mov edi, dword [ebp - 0xc24]
je 0x446077
mov byte [edi + 0x2fa4], 1
push dword [ebx]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4460d2
push 0x3e8
call fcn.00560858
add esp, 4
push ebx
push 0x3702
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 - 0xc1c]
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
jmp 0x4460fa
xor eax, eax
mov word [esi], ax
mov word [edi + 0x438], ax
mov word [edi + 0x838], ax
mov word [edi + 0xc38], ax
mov ecx, dword [edi + 0x4c18]
call fcn.004067b0
cmp byte [edi + 0x3fc8], 0
cwde
mov dword [edi + 0x103c], eax
je 0x446128
mov eax, dword [edi + 0x2fb4]
mov byte [ebp - 0xc0d], 1
mov dword [edi + 0x2fb0], eax
movzx eax, byte [ebp - 0xc0d]
xor ebx, ebx
cmp byte [edi + 0x3fca], bl
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x8075
push dword [edi + 4]
cmove ebx, eax
mov word [edi + 0x3fc8], 0
mov byte [edi + 0x3fca], 0
call esi
push 0
push 0
push 0x8077
push dword [edi + 4]
call esi
cmp byte [edi + 0x2fa5], 0
je 0x446179
test bl, bl
je 0x446187
push 1
push 0
push 0x8078
push dword [edi + 4]
call esi
push 0
push 0
push 0x807b
push dword [edi + 4]
call esi
cmp byte [edi + 0x2fa5], 0
mov eax, dword [edi + 4]
je 0x4461a5
push 1
jmp 0x4461b0
cmp byte [edi + 0x2fa4], 0
jne 0x4461a1
push 0
push 0
push 0x807d
push eax
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c