Function at 0x1000a9c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087945
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [eax], 0
mov dword [eax + 4], 0
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1000aa0b
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10003f20
mov ecx, dword [edi]
test ecx, ecx
je 0x1000ade1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], vtable.pfc::string8_t_class_pfc::alloc_standard_.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, str.SELECT_meta_FROM_tags_WHERE_path__
call fcn.1006137f
mov ebx, dword [ebp - 0x14]
add esp, 0x14
test ebx, ebx
jne 0x1000aa8b
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.10025979
add esp, 8
push 0x100995b4
push 0x14368
jmp 0x1000ac25
cmp dword [ebx], 0
jne 0x1000aaa6
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.10025979
add esp, 8
mov eax, 1
jmp 0x1000aaa8
xor eax, eax
test eax, eax
je 0x1000aabb
push 0x100995b4
push 0x14368
jmp 0x1000ac25
cmp dword [ebx + 0x14], 0x2df20da3
jne 0x1000abf3
cmp dword [ebx + 0x24], 0
jge 0x1000abf3
mov eax, 1
cmp ax, word [ebx + 0x10]
jg 0x1000abde
mov edi, dword [ebx + 0x64]
mov ecx, edi
call fcn.1003a188
mov eax, 1
mov word [edi + 8], ax
mov eax, dword [ebx]
mov dword [eax + 0x40], 0
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x1000ab1d
test al, 1
je 0x1000ab1d
mov eax, dword [ebx + 0x98]
and eax, 0xfffffffd
or eax, 1
mov dword [ebx + 0x98], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1000ac39
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x1000ab3d
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x14], eax
jmp 0x1000ab44
mov dword [ebp - 0x14], 0x3b9aca00
mov edi, edx
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000ab50
sub edi, dword [ebp - 0x18]
mov eax, 0x2400
and edi, 0x7fffffff
test word [ecx + 8], ax
jne 0x1000ab71
cmp dword [ecx + 0x18], 0
je 0x1000ab7c
call fcn.1003a15a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, 0xa02
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x24], 0
mov dword [ecx + 0xc], edi
mov word [ecx + 8], ax
mov byte [ecx + 0xa], 1
cmp edi, dword [ebp - 0x14]
jle 0x1000aba2
mov edi, 0x12
jmp 0x1000abbb
mov eax, dword [ebx]
mov dl, byte [eax + 0x4e]
cmp dl, 1
je 0x1000ac39
call fcn.10025b34
mov edi, eax
test edi, edi
je 0x1000ac39
mov ecx, dword [ebx]
mov edx, edi
mov dword [ecx + 0x40], edi
call fcn.1002610d
mov ecx, dword [ebx]
cmp byte [ecx + 0x51], 0
jne 0x1000abd7
cmp edi, 0xc0a
jne 0x1000ac39
call fcn.1002425e
jmp 0x1000ac39
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002610d
jmp 0x1000ac39
mov ecx, dword [ebx]
mov edx, 0x15
mov dword [ecx + 0x40], 0x15
call fcn.1002610d
push dword [ebx + 0xc0]
push str.bind_on_a_busy_prepared_statement:___s_
push 0x15
call fcn.10025979
add esp, 0xc
push 0x100995b4
push 0x14370
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10025979
add esp, 0x14
push ebx
call fcn.1003ec17
add esp, 4
cmp eax, 0x64
jne 0x1000adb8
test ebx, ebx
je 0x1000ac74
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x1000ac61
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x1000ac79
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002610d
mov ecx, 0x1008d030
movzx eax, word [ecx + 8]
test al, 2
je 0x1000ac8c
cmp byte [ecx + 0xa], 1
jne 0x1000ac8c
mov eax, dword [ecx + 0xc]
jmp 0x1000acb9
test al, 0x10
je 0x1000aca5
mov edx, dword [ecx + 0xc]
test eax, 0x4000
je 0x1000aca0
mov eax, dword [ecx]
add eax, edx
jmp 0x1000acb9
mov dword [ebp + 0xc], edx
jmp 0x1000acbc
test al, 1
je 0x1000acb2
mov dword [ebp + 0xc], 0
jmp 0x1000acbc
mov dl, 1
call fcn.1003ae57
mov dword [ebp + 0xc], eax
test ebx, ebx
je 0x1000ad0b
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [ecx + 0x51], 0
jne 0x1000acda
cmp edx, 0xc0a
je 0x1000acda
mov eax, dword [ecx + 0x44]
and eax, edx
jmp 0x1000acdf
call fcn.1002425e
mov dword [ebx + 0x28], eax
test ebx, ebx
je 0x1000ad0b
mov edi, dword [ebx + 0x78]
test edi, edi
je 0x1000acf8
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x1000ad10
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002610d
mov edi, 0x1008d030
movzx ecx, word [edi + 8]
test cl, 0x12
je 0x1000ad40
test ecx, 0x4000
je 0x1000ad30
mov ecx, edi
call fcn.10039fa8
test eax, eax
je 0x1000ad30
xor edi, edi
jmp 0x1000ad6d
or word [edi + 8], 0x10
cmp dword [edi + 0xc], 0
je 0x1000ad2c
mov edi, dword [edi + 0x10]
jmp 0x1000ad6d
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x1000ad59
cmp byte [edi + 0xa], 1
jne 0x1000ad59
mov edi, dword [edi + 0x10]
jmp 0x1000ad6d
test cl, 1
je 0x1000ad62
xor edi, edi
jmp 0x1000ad6d
mov dl, 1
mov ecx, edi
call fcn.1003aa17
mov edi, eax
test ebx, ebx
je 0x1000ad93
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [ecx + 0x51], 0
jne 0x1000ad8b
cmp edx, 0xc0a
je 0x1000ad8b
mov eax, dword [ecx + 0x44]
and eax, edx
jmp 0x1000ad90
call fcn.1002425e
mov dword [ebx + 0x28], eax
test edi, edi
je 0x1000adb8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000adb8
lea ecx, [eax + edi]
lea eax, [edi + 0xc]
cmp eax, ecx
ja 0x1000adb8
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1000adbb
mov edi, dword [ebp + 8]
push ebx
call fcn.1003e4c1
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28], 0
jbe 0x1000ade4
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
call fcn.100205d0
jmp 0x1000ade4
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc