Function at 0x10003b50
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10169790
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
cmp dword [ecx], ebx
jne 0x10003bb9
mov eax, 0x8000ffff
jmp 0x10004143
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, eax
je 0x10003be7
mov edx, dword [esp + 0x28]
push edx
push eax
call fcn.10008050
mov edi, dword [esi + 4]
add esp, 8
mov dword [esp + 0x1c], eax
call fcn.100074f0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esi + 4], eax
cmp dword [edi + 0x14], 8
jb 0x10003bef
mov edi, dword [edi]
push ebx
lea eax, [esp + 0x20]
call fcn.100164f0
lea eax, [esp + 0x1c]
mov dword [esp + 0x140], ebx
call fcn.10016cf0
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
push 0x30
push str.SELECT_UUID_FROM_GDB_Items_WHERE_UPPER_Path___
lea ecx, [esp + 0x80]
mov byte [esp + 0x148], 1
call fcn.10008480
mov edi, dword [esp + 0x1c]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10003c46
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x7c]
call fcn.10006ca0
push 1
mov eax, 0x10197e38
lea ecx, [esp + 0x7c]
call fcn.10006ca0
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x14c], 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 0x10003d12
mov byte [esp + 0x140], 1
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10003cb3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x8c], 8
jb 0x10003ccb
mov ecx, dword [esp + 0x78]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
cmp edi, ebx
je 0x10004141
lea eax, [edi - 0xc]
test eax, eax
je 0x10004141
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x10004141
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10004141
or esi, 0xffffffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 3
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
cmp eax, ebx
je 0x10003dd7
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x140], 1
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10003d80
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x8c], 8
jb 0x10003d98
mov ecx, dword [esp + 0x78]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
cmp edi, ebx
je 0x10003dcd
lea eax, [edi - 0xc]
test eax, eax
je 0x10003dcd
add edi, 0xfffffff4
add dword [edi], esi
jne 0x10003dcd
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80042601
jmp 0x10004143
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::GetGlobalID_class_FileGDBAPI::Guid__const
mov esi, eax
cmp esi, ebx
jge 0x10003e69
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x140], 1
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10003e33
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x78]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
cmp edi, ebx
je 0x10004141
lea ecx, [edi - 0xc]
test ecx, ecx
je 0x10004141
add edi, 0xfffffff4
dec dword [edi]
jne 0x10004141
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10004141
mov edi, 7
xor edx, edx
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], dx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x144], 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 + 0xd4], edi
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], cx
mov byte [esp + 0x140], 5
mov edx, dword [esp + 0x14]
push 0x10197e18
push edx
call fcn.10007460
add esp, 8
test al, al
je 0x10003ee7
lea eax, [esp + 0xc0]
push eax
mov edx, str.DatasetInFolder
jmp 0x10003ef4
lea ecx, [esp + 0xc0]
push ecx
mov edx, str.DatasetInFeatureDataset
call fcn.10005fc0
xor edx, edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
lea eax, [esp + 0x94]
push eax
mov edx, str._SELECT_DestID_FROM_GDB_ItemRelationships_WHERE_OriginID__
mov byte [esp + 0x144], 6
call fcn.10005fc0
push ebx
lea ecx, [esp + 0xe0]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x9c]
call fcn.10008380
push 0x47
mov eax, 0x10198018
mov ecx, esi
call fcn.10006ca0
push ebx
lea edx, [esp + 0xc4]
push edx
or eax, 0xffffffff
call fcn.10008380
push 4
mov eax, str.___
mov ecx, esi
call fcn.10006ca0
lea eax, [esp + 0x78]
push eax
mov edx, str.SELECT_Definition_FROM_GDB_Items_WHERE_UUID_IN
call fcn.10005fc0
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x80]
call fcn.10008380
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x10], ebx
je 0x10003fc8
lea edx, [esp + 0x78]
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 + 0x80]
call fcn.10008380
mov eax, esi
push eax
mov eax, 0x10198188
call fcn.10005ff0
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
push 1
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0x14c], 7
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 0x100040d8
lea ecx, [esp + 0x54]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::constructor_void_
push str.Definition
lea ecx, [esp + 0x118]
mov byte [esp + 0x144], 8
call fcn.10008580
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0xa
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
jne 0x100040af
jmp 0x10004050
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0x5c]
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 0x1000408d
lea eax, [esp + 0x23]
push eax
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x5c]
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 + 0x23], bl
je 0x100040af
jmp 0x1000409d
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0xf8]
call fcn.10006860
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x18]
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
je 0x10004050
lea ecx, [esp + 0xf8]
call fcn.100085d0
lea ecx, [esp + 0x114]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x54]
mov byte [esp + 0x140], 7
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 6
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x94]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xc0]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xdc]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 1
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x78]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea eax, [esp + 0x1c]
call fcn.100164d0
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 0xc