Function at 0x100556f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016a958
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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, ecx
cmp byte [ebx + 4], 0
mov dword [ebp - 0x74], ebx
mov edi, edx
mov dword [ebp - 0x78], eax
je 0x10055821
push 0x28
lea ecx, [ebp - 0x64]
push ecx
push 0x10410b30
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp dword [edi + 0x14], 8
jb 0x1005574b
mov edi, dword [edi]
xor esi, esi
push esi
lea eax, [ebp - 0x6c]
call fcn.100164f0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], esi
call fcn.10016cf0
push esi
push esi
mov dword [ebp - 0x68], esi
push esi
lea esi, [ebp - 0x68]
call fcn.100163a0
mov edi, 0x101e8a20
mov eax, esi
mov byte [ebp - 4], 1
call fcn.10016670
mov eax, dword [ebp - 0x6c]
mov edx, esi
push edx
call fcn.10016730
mov eax, esi
push eax
mov eax, str._AND_Type_IN__SELECT_UUID_FROM_GDB_ItemTypes_WHERE_Name_IN__Range_Domain__Coded_Value_Domain__
call fcn.10016730
mov edi, dword [ebx + 0x4c]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, esi
mov dword [ebp - 0x70], 0
call fcn.100438c0
add esp, 4
push 0
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x70]
push 0
push edi
call sub.MSVCR100.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005582b
mov byte [ebp - 4], 1
test edi, edi
je 0x100557e5
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x10055806
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10055806
add eax, 0xfffffff4
dec dword [eax]
jne 0x10055806
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10055821
lea edx, [eax - 0xc]
test edx, edx
je 0x10055821
add eax, 0xfffffff4
dec dword [eax]
jne 0x10055821
push eax
call esi
add esp, 4
mov eax, 0x80004005
jmp 0x100559b6
push esi
call fcn.10045a40
mov ebx, eax
test ebx, ebx
jns 0x1005588c
mov byte [ebp - 4], 1
test edi, edi
je 0x10055849
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x1005586a
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005586a
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005586a
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10055885
lea edx, [eax - 0xc]
test edx, edx
je 0x10055885
add eax, 0xfffffff4
dec dword [eax]
jne 0x10055885
push eax
call esi
add esp, 4
mov eax, ebx
jmp 0x100559b6
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jns 0x100558f0
mov byte [ebp - 4], 1
test edi, edi
je 0x100558ad
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x100558ce
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100558ce
add eax, 0xfffffff4
dec dword [eax]
jne 0x100558ce
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10055885
lea edx, [eax - 0xc]
test edx, edx
je 0x10055885
add eax, 0xfffffff4
dec dword [eax]
jne 0x10055885
push eax
call esi
add esp, 4
mov eax, ebx
jmp 0x100559b6
mov ecx, esi
call fcn.10045e80
mov ebx, eax
test ebx, ebx
jns 0x10055926
mov byte [ebp - 4], 1
test edi, edi
je 0x1005590f
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea eax, [ebp - 0x68]
call fcn.100164d0
lea eax, [ebp - 0x6c]
call fcn.100164d0
mov eax, ebx
jmp 0x100559b6
cmp ebx, 1
jne 0x10055952
mov byte [ebp - 4], bl
test edi, edi
je 0x1005593b
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
mov ecx, edi
call edx
lea eax, [ebp - 0x68]
call fcn.100164d0
lea eax, [ebp - 0x6c]
call fcn.100164d0
mov eax, 0x80043001
jmp 0x100559b6
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x10055982
mov byte [ebp - 4], 1
test edi, edi
je 0x1005596b
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea eax, [ebp - 0x68]
call fcn.100164d0
lea eax, [ebp - 0x6c]
call fcn.100164d0
mov eax, 0x80004005
jmp 0x100559b6
mov esi, dword [ebp - 0x78]
mov ebx, dword [eax + 8]
mov ecx, dword [ebp - 0x74]
call fcn.100571c0
mov esi, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x100559a4
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea eax, [ebp - 0x68]
call fcn.100164d0
lea eax, [ebp - 0x6c]
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