Function at 0x100534f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ab21
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
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 - 0xe4], ebx
mov dword [ebp - 0xe8], ecx
je 0x10053614
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 - 0xd8]
mov dword [ebp - 0xd8], edi
call fcn.100163a0
mov dword [ebp - 4], edi
mov edi, str.SELECT__FROM_GDB_ItemRelationships_WHERE_OriginID__
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, str._OR_DestID__
call fcn.10016730
mov edx, esi
push edx
lea eax, [ebp - 0x64]
call fcn.10016730
mov eax, esi
push eax
mov eax, 0x10197e38
call fcn.10016730
mov edi, dword [ebx + 0x28]
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, esi
mov dword [ebp - 0xdc], 0
call fcn.100438c0
add esp, 4
push 0
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0xdc]
push 0
push esi
call sub.MSVCR100.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1005361e
mov byte [ebp - 4], 0
test esi, esi
je 0x100535f2
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x10053614
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10053614
add eax, 0xfffffff4
dec dword [eax]
jne 0x10053614
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80004005
jmp 0x10053722
push ebx
call fcn.10045a40
mov edi, eax
test edi, edi
jns 0x10053665
mov byte [ebp - 4], 0
test esi, esi
je 0x1005363c
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x1005365e
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005365e
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005365e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
jmp 0x10053722
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov edi, eax
test edi, edi
js 0x1005362a
mov ecx, ebx
call fcn.10045e80
test eax, eax
jne 0x100536ec
nop
cmp dword [ebx + 0x1c], 0
je 0x100535e0
lea esi, [ebp - 0xd4]
call fcn.100a0880
mov ecx, dword [ebp - 0xe4]
mov byte [ebp - 4], 2
mov edx, dword [ebx + 0x1c]
mov edi, dword [edx + 8]
call fcn.10053740
test eax, eax
jne 0x100536cc
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xe0], eax
call fcn.100573d0
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.100a0920
mov ecx, ebx
call fcn.10045e80
mov esi, dword [ebp - 0xdc]
test eax, eax
je 0x10053680
mov byte [ebp - 4], 0
test esi, esi
je 0x100536fe
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x10053720
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10053720
add eax, 0xfffffff4
dec dword [eax]
jne 0x10053720
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