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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101698d0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
cmp dword [ecx], ebx
jne 0x10002bb9
mov eax, 0x8000ffff
jmp 0x10003105
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, eax
je 0x10002bec
mov edx, dword [esp + 0x1c]
push edx
push eax
call fcn.10007fc0
mov ecx, dword [esp + 0x24]
mov edi, dword [esi + 4]
push ecx
mov dword [esp + 0x24], eax
call fcn.100080d0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 4], edx
cmp dword [edi + 0x14], 8
jb 0x10002bf4
mov edi, dword [edi]
push ebx
lea eax, [esp + 0x1c]
call fcn.100164f0
lea eax, [esp + 0x18]
mov dword [esp + 0x138], ebx
call fcn.10016cf0
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], ax
push 0x30
push str.SELECT_UUID_FROM_GDB_Items_WHERE_UPPER_Path___
lea ecx, [esp + 0x78]
mov byte [esp + 0x140], 1
call fcn.10008480
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 2]
jmp 0x10002c50
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002c50
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x74]
call fcn.10006ca0
push 1
mov eax, 0x10197e38
lea ecx, [esp + 0x74]
call fcn.10006ca0
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push 1
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x144], 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 edi, eax
cmp edi, ebx
jge 0x10002d0f
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x10002cba
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
cmp dword [esp + 0x84], 8
jb 0x10002cd2
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
cmp esi, ebx
je 0x10002d08
lea edx, [esi - 0xc]
test edx, edx
je 0x10002d08
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x10002d08
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
jmp 0x10003105
or edi, 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x48], bl
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 3
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
cmp eax, ebx
je 0x10002dd5
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x10002d7d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x84], 8
jb 0x10002d95
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], dx
cmp esi, ebx
je 0x10002dcb
lea eax, [esi - 0xc]
test eax, eax
je 0x10002dcb
add dword [esi - 0xc], edi
lea eax, [esi - 0xc]
jne 0x10002dcb
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80042601
jmp 0x10003105
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::GetGlobalID_class_FileGDBAPI::Guid__const
mov edi, eax
cmp edi, ebx
jge 0x10002e4c
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x10002e31
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x70]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
cmp esi, ebx
je 0x10002d08
lea ecx, [esi - 0xc]
test ecx, ecx
jmp 0x10002cf4
mov edi, 7
xor edx, edx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], dx
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x13c], 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 + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], cx
mov byte [esp + 0x138], 5
mov edx, dword [esp + 0x10]
push 0x10197e18
push edx
call fcn.10007460
add esp, 8
test al, al
je 0x10002eca
lea eax, [esp + 0xb8]
push eax
mov edx, str.DatasetInFolder
jmp 0x10002ed7
lea ecx, [esp + 0xb8]
push ecx
mov edx, str.DatasetInFeatureDataset
call fcn.10005fc0
xor edx, edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], dx
lea eax, [esp + 0x8c]
push eax
mov edx, str._SELECT_DestID_FROM_GDB_ItemRelationships_WHERE_OriginID__
mov byte [esp + 0x13c], 6
call fcn.10005fc0
push ebx
lea ecx, [esp + 0xd8]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x94]
call fcn.10008380
push 0x47
mov eax, 0x10198018
mov ecx, esi
call fcn.10006ca0
push ebx
lea edx, [esp + 0xbc]
push edx
or eax, 0xffffffff
call fcn.10008380
push 4
mov eax, str.___
mov ecx, esi
call fcn.10006ca0
lea eax, [esp + 0x70]
push eax
mov edx, str.SELECT_Path_FROM_GDB_Items_WHERE_UUID_IN
call fcn.10005fc0
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x78]
call fcn.10008380
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x10], ebx
je 0x10002fa5
lea edx, [esp + 0x70]
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 + 0x78]
call fcn.10008380
mov eax, esi
push eax
mov eax, 0x10198188
call fcn.10005ff0
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push 1
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x144], 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 0x1000309a
lea ecx, [esp + 0x4c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::constructor_void_
push str.Path
lea ecx, [esp + 0x110]
mov byte [esp + 0x13c], 8
call fcn.10008580
xor eax, eax
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], ax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
jne 0x10003071
jmp 0x10003030
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x54]
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::GetString_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 esi, eax
lea ecx, [esp + 0xf0]
cmp esi, ebx
jl 0x10003078
mov edi, dword [esp + 0x1c]
call fcn.10006780
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
je 0x10003030
lea ecx, [esp + 0xf0]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x10c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 7
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 6
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x8c]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xb8]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xd4]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 1
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x70]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea eax, [esp + 0x18]
call fcn.100164d0
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 0xc