Function at 0x10053ef0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016aad0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10438fc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
cmp byte [ebx + 4], 0
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ecx
je 0x10053fe0
push 0x28
lea edx, [ebp - 0x64]
push edx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor edi, edi
push edi
push edi
push edi
lea esi, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.100163a0
mov dword [ebp - 4], edi
mov edi, str.SELECT__FROM_GDB_Items_WHERE_UUID__
mov eax, esi
call fcn.10016670
mov eax, esi
push eax
lea eax, [ebp - 0x64]
call fcn.10016730
mov ecx, esi
push ecx
mov eax, 0x10197e38
call fcn.10016730
mov edi, dword [ebx + 0x4c]
lea edx, [ebp - 0x6c]
push edx
mov ecx, esi
mov dword [ebp - 0x6c], 0
call fcn.100438c0
add esp, 4
push 0
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x6c]
push 0
push edi
call sub.MSVCR100.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10053fea
mov byte [ebp - 4], al
test edi, edi
je 0x10053fc1
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10053fe0
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10053fe0
add eax, 0xfffffff4
dec dword [eax]
jne 0x10053fe0
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80004005
jmp 0x100540e0
push esi
call fcn.10045a40
mov ebx, eax
test ebx, ebx
jns 0x1005402e
mov byte [ebp - 4], 0
test edi, edi
je 0x10054008
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10054027
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10054027
add eax, 0xfffffff4
dec dword [eax]
jne 0x10054027
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, ebx
jmp 0x100540e0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebx, eax
test ebx, ebx
js 0x10053ff6
mov ecx, esi
call fcn.10045e80
mov ebx, eax
test ebx, ebx
jns 0x10054068
mov byte [ebp - 4], 0
test edi, edi
je 0x1005405c
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x68]
call fcn.100164d0
mov eax, ebx
jmp 0x100540e0
cmp ebx, 1
jne 0x1005408d
mov byte [ebp - 4], 0
test edi, edi
je 0x1005407e
mov edx, dword [edi]
mov eax, dword [edx]
push ebx
mov ecx, edi
call eax
lea eax, [ebp - 0x68]
call fcn.100164d0
mov eax, 0x80042601
jmp 0x100540e0
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x100540b4
mov byte [ebp - 4], al
test edi, edi
je 0x100540a5
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x68]
call fcn.100164d0
mov eax, 0x80004005
jmp 0x100540e0
mov esi, dword [ebp - 0x70]
mov ebx, dword [eax + 8]
mov ecx, dword [ebp - 0x74]
call fcn.100571c0
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x100540d6
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x68]
call fcn.100164d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10148524
mov esp, ebp
pop ebp
ret 4