Function at 0x10052ee0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016abf1
mov eax, dword fs:[0]
push eax
sub esp, 0x148
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
cmp byte [ecx + 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], edx
je 0x10053033
mov ecx, dword [eax]
lea edx, [ebp - 0xc4]
push edx
push eax
mov eax, dword [ecx]
call eax
xor ebx, ebx
cmp eax, ebx
jl 0x10053166
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x28
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0xc4]
push edx
call esi
push 0x28
lea eax, [ebp - 0x64]
push eax
push 0x10410b60
call esi
push ebx
push ebx
push ebx
lea esi, [ebp - 0x148]
mov dword [ebp - 0x148], ebx
call fcn.100163a0
mov edi, str.SELECT__FROM_GDB_ItemRelationships_WHERE_OriginID__
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.10016670
mov ecx, esi
push ecx
lea eax, [ebp - 0xb4]
call fcn.10016730
mov edx, esi
push edx
mov eax, str._AND_Type__
call fcn.10016730
mov eax, esi
push eax
lea eax, [ebp - 0x64]
call fcn.10016730
mov ecx, esi
push ecx
mov eax, 0x10197e38
call fcn.10016730
mov edx, dword [ebp - 0x150]
mov edi, dword [edx + 0x28]
lea eax, [ebp - 0x14c]
push eax
mov ecx, esi
mov dword [ebp - 0x14c], ebx
call fcn.100438c0
add esp, 4
push ebx
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14c]
push ebx
push esi
call sub.MSVCR100.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1005303d
mov byte [ebp - 4], 0
test esi, esi
je 0x10053011
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x10053033
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10053033
add eax, 0xfffffff4
dec dword [eax]
jne 0x10053033
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80004005
jmp 0x10053166
push ebx
call fcn.10045a40
mov edi, eax
test edi, edi
jns 0x10053084
mov byte [ebp - 4], 0
test esi, esi
je 0x1005305b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x1005307d
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005307d
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005307d
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
jmp 0x10053166
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov edi, eax
test edi, edi
jns 0x100530b7
mov byte [ebp - 4], 0
test esi, esi
je 0x100530a5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea eax, [ebp - 0x148]
call fcn.100164d0
mov eax, edi
jmp 0x10053166
mov ecx, ebx
call fcn.10045e80
test eax, eax
jne 0x10053130
cmp dword [ebx + 0x1c], 0
je 0x10052fff
lea esi, [ebp - 0x144]
call fcn.100a0880
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x150]
call fcn.10053740
test eax, eax
jne 0x10053110
lea edx, [ebp - 0xd4]
push edx
mov eax, esi
push eax
call fcn.100a0a70
mov edi, dword [ebp - 0x154]
lea eax, [ebp - 0xd4]
call fcn.10006960
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.100a0920
mov ecx, ebx
call fcn.10045e80
mov esi, dword [ebp - 0x14c]
test eax, eax
je 0x100530c2
mov byte [ebp - 4], 0
test esi, esi
je 0x10053142
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x10053164
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10053164
add eax, 0xfffffff4
dec dword [eax]
jne 0x10053164
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
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