Function at 0x10004170
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101696e5
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], esi
cmp dword [ecx], ebx
jne 0x100041e0
mov eax, 0x8000ffff
jmp 0x100047de
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, eax
je 0x1000420e
mov edx, dword [esp + 0x24]
push edx
push eax
call fcn.10008050
mov edi, dword [esi + 4]
add esp, 8
mov dword [esp + 0x20], eax
call fcn.100074f0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esi + 4], eax
cmp dword [edi + 0x14], 8
jb 0x10004216
mov edi, dword [edi]
push ebx
lea eax, [esp + 0x24]
call fcn.100164f0
lea eax, [esp + 0x20]
mov dword [esp + 0x128], ebx
call fcn.10016cf0
xor ecx, ecx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
push 0x30
push str.SELECT_UUID_FROM_GDB_Items_WHERE_UPPER_Path___
lea ecx, [esp + 0x84]
mov byte [esp + 0x130], 1
call fcn.10008480
mov edi, dword [esp + 0x20]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10004270
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x80]
call fcn.10006ca0
push 1
mov eax, 0x10197e38
lea ecx, [esp + 0x80]
call fcn.10006ca0
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x134], 2
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
cmp esi, ebx
jge 0x10004338
mov byte [esp + 0x128], 1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x100042e3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x90], 8
jb 0x100042fb
mov ecx, dword [esp + 0x7c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
cmp edi, ebx
je 0x10004331
lea eax, [edi - 0xc]
test eax, eax
je 0x10004331
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x10004331
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
jmp 0x100047de
or esi, 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
cmp eax, ebx
je 0x100043fd
lea ecx, [esp + 0x34]
mov byte [esp + 0x128], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x128], 1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x100043a6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x90], 8
jb 0x100043be
mov ecx, dword [esp + 0x7c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
cmp edi, ebx
je 0x100043f3
lea eax, [edi - 0xc]
test eax, eax
je 0x100043f3
add edi, 0xfffffff4
add dword [edi], esi
jne 0x100043f3
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80042601
jmp 0x100047de
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::GetGlobalID_class_FileGDBAPI::Guid__const
mov esi, eax
cmp esi, ebx
jge 0x10004491
lea ecx, [esp + 0x34]
mov byte [esp + 0x128], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x128], 1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x10004459
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x7c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
cmp edi, ebx
je 0x10004331
lea ecx, [edi - 0xc]
test ecx, ecx
je 0x10004331
add edi, 0xfffffff4
dec dword [edi]
jne 0x10004331
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
jmp 0x100047de
mov edi, 7
xor edx, edx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], dx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x12c], 4
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Guid::ToString_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
xor ecx, ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], cx
lea edx, [esp + 0x98]
push edx
mov edx, str._SELECT_DestID_FROM_GDB_ItemRelationships_WHERE_OriginID__
mov byte [esp + 0x12c], 5
call fcn.10005fc0
push ebx
lea eax, [esp + 0xc8]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa0]
call fcn.10008380
push 1
mov eax, 0x10197e38
mov ecx, esi
call fcn.10006ca0
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x10], ebx
je 0x1000455b
lea ecx, [esp + 0x98]
push ecx
mov eax, str._AND_Type___SELECT_UUID_FROM_GDB_ItemRelationshipTypes_WHERE_Name__
call fcn.10005ff0
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0xa0]
call fcn.10008380
mov edx, esi
push edx
mov eax, 0x10198188
call fcn.10005ff0
push 1
mov eax, 0x10198230
lea ecx, [esp + 0x9c]
call fcn.10006ca0
lea eax, [esp + 0x7c]
push eax
mov edx, str.SELECT_Definition_FROM_GDB_Items_WHERE_UUID_IN
call fcn.10005fc0
push ebx
lea ecx, [esp + 0x9c]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x84]
call fcn.10008380
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x10], ebx
je 0x100045cb
lea edx, [esp + 0x7c]
push edx
mov eax, str._AND_Type___SELECT_UUID_FROM_GDB_ItemTypes_WHERE_Name__
call fcn.10005ff0
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x84]
call fcn.10008380
mov eax, esi
push eax
mov eax, 0x10198188
call fcn.10005ff0
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
push 1
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x134], 6
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
cmp esi, ebx
jl 0x100046cc
lea ecx, [esp + 0x58]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::constructor_void_
push str.Definition
lea ecx, [esp + 0x100]
mov byte [esp + 0x12c], 7
call fcn.10008580
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 9
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
jne 0x10004756
jmp 0x10004660
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x100]
push edx
lea ecx, [esp + 0x60]
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
mov esi, eax
cmp esi, ebx
jge 0x10004730
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x60]
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::IsNull_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___bool__const
cmp byte [esp + 0x1f], bl
jne 0x10004740
lea ecx, [esp + 0xe0]
call fcn.100085d0
lea ecx, [esp + 0xfc]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x58]
mov byte [esp + 0x128], 6
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 5
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x98]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xc4]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x34]
mov byte [esp + 0x128], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x7c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea eax, [esp + 0x20]
call fcn.100164d0
mov eax, esi
jmp 0x100047de
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0xe0]
call fcn.10006860
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
je 0x10004660
lea ecx, [esp + 0xe0]
call fcn.100085d0
lea ecx, [esp + 0xfc]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x58]
mov byte [esp + 0x128], 6
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 5
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x98]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xc4]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x34]
mov byte [esp + 0x128], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x7c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea eax, [esp + 0x20]
call fcn.100164d0
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 0x10