Function at 0x10052c30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ac36
mov eax, dword fs:[0]
push eax
sub esp, 0x118
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 - 0x120], ecx
mov dword [ebp - 0x124], edx
je 0x10052dad
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push eax
mov eax, dword [ecx]
call eax
xor ebx, ebx
cmp eax, ebx
jl 0x10052ebe
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x28
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x114]
push edx
call esi
push 0x28
lea eax, [ebp - 0x104]
push eax
push 0x10410b70
call esi
push 0x28
lea ecx, [ebp - 0x64]
push ecx
push 0x10410b60
call esi
push ebx
push ebx
push ebx
lea esi, [ebp - 0x118]
mov dword [ebp - 0x118], ebx
call fcn.100163a0
mov edi, str.SELECT__FROM_GDB_ItemRelationships_WHERE_DestID__
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.10016670
mov edx, esi
push edx
lea eax, [ebp - 0xb4]
call fcn.10016730
mov eax, esi
push eax
mov eax, 0x10415910
call fcn.10016730
mov ecx, esi
push ecx
lea eax, [ebp - 0x104]
call fcn.10016730
mov edx, esi
push edx
mov eax, str.__
call fcn.10016730
mov eax, esi
push eax
lea eax, [ebp - 0x64]
call fcn.10016730
mov ecx, esi
push ecx
mov eax, 0x10198188
call fcn.10016730
mov edx, dword [ebp - 0x120]
mov edi, dword [edx + 0x28]
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
mov dword [ebp - 0x11c], ebx
call fcn.100438c0
add esp, 4
push ebx
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 1
push ebx
mov ebx, dword [ebp - 0x11c]
push ebx
call sub.MSVCR100.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10052db7
mov byte [ebp - 4], al
test ebx, ebx
je 0x10052d8b
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10052dad
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10052dad
add eax, 0xfffffff4
dec dword [eax]
jne 0x10052dad
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80004005
jmp 0x10052ebe
push esi
call fcn.10045a40
mov edi, eax
test edi, edi
jns 0x10052dfe
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10052dd5
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10052df7
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10052df7
add eax, 0xfffffff4
dec dword [eax]
jne 0x10052df7
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
jmp 0x10052ebe
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edi, eax
test edi, edi
jns 0x10052e31
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10052e1f
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea eax, [ebp - 0x118]
call fcn.100164d0
mov eax, edi
jmp 0x10052ebe
mov ecx, esi
call fcn.10045e80
mov edi, eax
test edi, edi
je 0x10052e5f
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10052e50
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea eax, [ebp - 0x118]
call fcn.100164d0
mov eax, edi
jmp 0x10052ebe
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x10052e89
mov byte [ebp - 4], al
test ebx, ebx
je 0x10052e77
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea eax, [ebp - 0x118]
call fcn.100164d0
mov eax, 0x80004005
jmp 0x10052ebe
mov esi, dword [ebp - 0x124]
mov edi, dword [eax + 8]
mov ecx, dword [ebp - 0x120]
call fcn.10053740
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10052eb1
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea eax, [ebp - 0x118]
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