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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10169825
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov dword [esp + 0x20], 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 + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], esi
cmp dword [ecx], ebx
jne 0x100031a0
mov eax, 0x8000ffff
jmp 0x100036ad
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, eax
je 0x100031d3
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 + 0x20]
add esp, 0xc
mov dword [esi + 4], edx
cmp dword [edi + 0x14], 8
jb 0x100031db
mov edi, dword [edi]
push ebx
lea eax, [esp + 0x1c]
call fcn.100164f0
lea eax, [esp + 0x18]
mov dword [esp + 0x120], ebx
call fcn.10016cf0
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], ax
push 0x30
push str.SELECT_UUID_FROM_GDB_Items_WHERE_UPPER_Path___
lea ecx, [esp + 0x7c]
mov byte [esp + 0x128], 1
call fcn.10008480
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10003230
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x78]
call fcn.10006ca0
push 1
mov eax, 0x10197e38
lea ecx, [esp + 0x78]
call fcn.10006ca0
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push 1
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x12c], 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 0x100032ef
mov byte [esp + 0x120], 1
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1000329a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
cmp dword [esp + 0x88], 8
jb 0x100032b2
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
cmp esi, ebx
je 0x100032e8
lea edx, [esi - 0xc]
test edx, edx
je 0x100032e8
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x100032e8
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
jmp 0x100036ad
or edi, 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x4c], bl
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 3
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
cmp eax, ebx
je 0x100033b5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x120], 1
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1000335d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x88], 8
jb 0x10003375
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
cmp esi, ebx
je 0x100033ab
lea eax, [esi - 0xc]
test eax, eax
je 0x100033ab
add dword [esi - 0xc], edi
lea eax, [esi - 0xc]
jne 0x100033ab
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80042601
jmp 0x100036ad
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::Row::GetGlobalID_class_FileGDBAPI::Guid__const
mov edi, eax
cmp edi, ebx
jge 0x1000342c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
mov byte [esp + 0x120], 1
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x10003411
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x74]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
cmp esi, ebx
je 0x100032e8
lea ecx, [esi - 0xc]
test ecx, ecx
jmp 0x100032d4
mov edi, 7
xor edx, edx
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], dx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x124], 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 + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], cx
lea edx, [esp + 0x90]
push edx
mov edx, str._SELECT_DestID_FROM_GDB_ItemRelationships_WHERE_OriginID__
mov byte [esp + 0x124], 5
call fcn.10005fc0
push ebx
lea eax, [esp + 0xc0]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x98]
call fcn.10008380
push 1
mov eax, 0x10197e38
mov ecx, esi
call fcn.10006ca0
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x10], ebx
je 0x100034f6
lea ecx, [esp + 0x90]
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 + 0x98]
call fcn.10008380
mov edx, esi
push edx
mov eax, 0x10198188
call fcn.10005ff0
push 1
mov eax, 0x10198230
lea ecx, [esp + 0x94]
call fcn.10006ca0
lea eax, [esp + 0x74]
push eax
mov edx, str.SELECT_Path_FROM_GDB_Items_WHERE_UUID_IN
call fcn.10005fc0
push ebx
lea ecx, [esp + 0x94]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x7c]
call fcn.10008380
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x10], ebx
je 0x10003560
lea edx, [esp + 0x74]
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 + 0x7c]
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 + 0x24]
push 1
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x12c], 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 0x100036f5
lea ecx, [esp + 0x50]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::constructor_void_
push str.Path
lea ecx, [esp + 0xf8]
mov byte [esp + 0x124], 7
call fcn.10008580
xor eax, eax
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], ax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], 9
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
jne 0x10003625
nop
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x58]
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 + 0xd8]
cmp esi, ebx
jl 0x100036d3
mov edi, dword [esp + 0x1c]
call fcn.10006780
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call sym.FileGDBAPI.dll_public:_int___thiscall_FileGDBAPI::EnumRows::Next_class_FileGDBAPI::Row__
test eax, eax
je 0x100035e0
lea ecx, [esp + 0xd8]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xf4]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x50]
mov byte [esp + 0x120], 6
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 5
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x90]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xbc]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 1
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x74]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea eax, [esp + 0x18]
call fcn.100164d0
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 0x10
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xf4]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x50]
mov byte [esp + 0x120], 6
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 5
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x90]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0xbc]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 2
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::Row::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 1
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::EnumRows::destructor_void_
lea ecx, [esp + 0x74]
call sym.FileGDBAPI.dll_public:_void___thiscall_FileGDBAPI::SpatialReference::destructor_void_
lea eax, [esp + 0x18]
call fcn.100164d0
mov eax, esi
jmp 0x100036ad