Function at 0x10033b20
Capabilities:
Check if file exists
Get file attributes
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016939f
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, 6
lea esi, [ebp - 0x14]
mov dword [edi], 0xffffffff
call fcn.10016df0
mov eax, dword [eax]
test eax, eax
je 0x10033b80
push str.DELTA_
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x10033b85
mov eax, SysReAllocString
mov esi, dword [ebp + 0x14]
test eax, eax
sete al
mov byte [esi], al
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10033bae
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10033bae
add eax, 0xfffffff4
dec dword [eax]
jne 0x10033bae
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp byte [esi], 0
je 0x10033cba
mov ebx, dword [ebp + 8]
push 6
lea edx, [ebp + 0x14]
push edx
or eax, 0xffffffff
call fcn.10016e20
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xb]
push eax
push ecx
xor ebx, ebx
push edi
lea edx, [ebp + 0x14]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
push edx
call fcn.10033b20
test eax, eax
jne 0x10033c82
cmp byte [ebp + 0xb], bl
jne 0x10033c82
push ebx
push ebx
push ebx
lea esi, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
call fcn.100163a0
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [edi]
push ebx
mov ebx, dword [ebp - 0x10]
push eax
mov edi, esi
call fcn.10034320
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
xor ecx, ecx
test al, al
sete cl
mov edi, ecx
test esi, esi
je 0x10033c4d
lea edx, [esi - 0xc]
test edx, edx
je 0x10033c4d
dec dword [esi - 0xc]
lea eax, [esi - 0xc]
jne 0x10033c4d
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10033c6c
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10033c6c
add eax, 0xfffffff4
dec dword [eax]
jne 0x10033c6c
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10033ca1
lea edx, [eax - 0xc]
test edx, edx
je 0x10033ca1
add eax, 0xfffffff4
dec dword [eax]
jne 0x10033ca1
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0x14], 0
jne 0x10033cd9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
push str.GDB_SystemCatalog
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 4], 2
add ebx, 0x1e0
push 0
mov edi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call fcn.100164f0
mov ebx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
test esi, esi
je 0x10033d21
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [ebp - 0x24]
mov dword [ebp - 4], 3
call fcn.10024a20
mov esi, eax
test esi, esi
jns 0x10033d3f
lea eax, [ebp - 0x24]
push eax
jmp 0x10033ed8
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x10], 0
jne 0x10033d6e
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.10024970
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov byte [ebp + 0x17], al
test al, al
jne 0x10033d95
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
mov esi, eax
test esi, esi
js 0x10033ed4
push 0
push 0
push 0
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.100163a0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add dword [eax - 0xc], ebx
mov dword [ebp + 8], eax
mov bl, 5
lea eax, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.10016cb0
mov eax, dword [ebp + 8]
push eax
push 0x10197e7c
push str.GDB_SystemCatalog
push str.SELECT__FROM__s_WHERE_Lower__s____s
mov edx, esi
call fcn.10016c90
add esp, 0x10
push 0
lea ecx, [ebp - 0xc8]
push ecx
call fcn.10012150
mov byte [ebp - 4], 6
lea eax, [ebp - 0xc8]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.1004f070
mov esi, eax
test esi, esi
jns 0x10033e3f
cmp byte [ebp + 0x17], 0
jne 0x10033e17
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0xc8]
push ecx
mov byte [ebp - 4], bl
call fcn.10011f10
lea eax, [ebp + 8]
call fcn.100164d0
lea eax, [ebp - 0x10]
call fcn.100164d0
lea edx, [ebp - 0x24]
push edx
jmp 0x10033ed8
mov eax, dword [edi + 0x14]
mov esi, dword [eax + 4]
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0xc8]
call fcn.1004f0e0
mov esi, eax
test esi, esi
js 0x10033e07
mov eax, dword [edi + 0x14]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push esi
push eax
lea eax, [ebp - 0xc8]
push eax
call edx
test eax, eax
jne 0x10033e98
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp byte [ebp + 0x17], 0
jne 0x10033ea8
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [edx], 0xffffffff
lea eax, [ebp - 0xc8]
sete cl
push eax
mov byte [ebp - 4], bl
mov esi, ecx
call fcn.10011f10
lea eax, [ebp + 8]
call fcn.100164d0
lea eax, [ebp - 0x10]
call fcn.100164d0
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.10024970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10