Function at 0x10003760
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016c31b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x10438fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
cmp dword [edi], esi
je 0x10003af7
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], esi
jb 0x100037b7
mov eax, dword [eax]
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x2c]
push edx
push ecx
mov ecx, edi
mov dword [ebp - 4], esi
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Geodatabase::GetQueryName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____const
mov eax, dword [ebx + 0x10]
push 5
push 0x10198234
push eax
push esi
mov ecx, ebx
call fcn.100077b0
test eax, eax
je 0x10003a58
mov ecx, dword [ebx + 0x10]
push 0xd
push str.Feature_Class
push ecx
push esi
mov ecx, ebx
call fcn.100077b0
test eax, eax
je 0x10003a58
mov edx, dword [ebx + 0x10]
push 0xe
push str.Raster_Dataset
push edx
push esi
mov ecx, ebx
call fcn.100077b0
test eax, eax
je 0x10003a58
mov ecx, ebx
mov esi, str.Raster_Catalog
call fcn.100074a0
test al, al
jne 0x10003a56
mov ecx, ebx
mov esi, 0x10197e1c
call fcn.100074a0
test al, al
jne 0x10003a56
mov ecx, ebx
mov esi, str.Feature_Dataset
call fcn.100074a0
test al, al
je 0x100038a9
mov eax, dword [edi]
push 0
push 0x10439a0c
push 0x104399f4
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
jne 0x10003891
lea ecx, [ebp - 0x2c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
mov eax, 0x8000ffff
jmp 0x10003b24
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.10040d30
mov ebx, 8
jmp 0x10003b0e
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
mov ecx, ebx
mov esi, str.Workspace
mov byte [ebp - 4], 2
call fcn.100074a0
test al, al
je 0x100038e1
lea eax, [ebp - 0x48]
push eax
mov edx, str.SELECT_Definition_FROM_GDB_Items_WHERE_Name__Workspace
call fcn.10005fc0
jmp 0x10003950
mov edi, dword [ebp - 0x68]
cmp dword [edi + 0x14], 8
jb 0x100038ec
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x68]
call fcn.100164f0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.10016cf0
lea ecx, [ebp - 0x48]
push ecx
mov edx, str.SELECT_Definition_FROM_GDB_Items_WHERE_UPPER_Path___
call fcn.10005fc0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x48]
push edx
call fcn.10005ff0
lea eax, [ebp - 0x48]
push eax
mov eax, str._AND_Type_IN__SELECT_UUID_FROM_GDB_ItemTypes_WHERE_Name__
call fcn.10005ff0
push 0
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.10008380
mov ecx, esi
push ecx
mov eax, 0x10198188
call fcn.10005ff0
lea eax, [ebp - 0x68]
call fcn.100164d0
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x68], 0
lea edx, [ebp - 0x68]
push edx
push 1
lea eax, [ebp - 0x48]
mov bl, 4
push eax
mov ecx, edi
mov byte [ebp - 4], bl
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Geodatabase::ExecuteSQL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___bool__class_FileGDBAPI::EnumRows__const
mov esi, eax
test esi, esi
js 0x100039a5
lea ecx, [ebp - 0x9c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::constructor_void_
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
mov esi, eax
test esi, esi
jns 0x100039c6
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [ebp - 0x48]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [ebp - 0x2c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
jmp 0x10003b22
cmp esi, 1
jne 0x100039ff
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [ebp - 0x48]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [ebp - 0x2c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
mov eax, 0x80042601
jmp 0x10003b24
push str.Definition
lea ecx, [ebp - 0x64]
call fcn.10008580
mov edx, dword [ebp - 0x6c]
push edx
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::GetXML_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____const
lea ecx, [ebp - 0x64]
mov esi, eax
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [ebp - 0x48]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
mov ebx, 8
jmp 0x10003b10
xor esi, esi
mov edi, dword [ebp - 0x2c]
mov ebx, 8
mov dword [ebp - 0x70], esi
cmp dword [ebp - 0x18], ebx
jae 0x10003a6b
lea edi, [ebp - 0x2c]
push esi
lea eax, [ebp - 0x78]
call fcn.100164f0
mov esi, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push ecx
push 0
mov byte [ebp - 4], 1
mov ecx, dword [esi]
push eax
call fcn.10032100
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10003aae
lea edx, [eax - 0xc]
test edx, edx
je 0x10003aae
add eax, 0xfffffff4
dec dword [eax]
jne 0x10003aae
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
test edi, edi
jns 0x10003ac8
cmp dword [ebp - 0x18], ebx
jb 0x10003ac4
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
jmp 0x10003b24
mov ecx, dword [esi]
push 0
push 0x10439a0c
push 0x104399f4
push 0
push ecx
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
jne 0x10003afe
cmp dword [ebp - 0x18], ebx
jb 0x10003af7
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x8000ffff
jmp 0x10003b24
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x6c]
push eax
call fcn.10036f30
mov esi, eax
cmp dword [ebp - 0x18], ebx
jb 0x10003b22
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.10148524
mov esp, ebp
pop ebp
ret 0xc