Function at 0x100563f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016a8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 edi, edx
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x1005657d
cmp dword [edi + 0x14], 8
jb 0x10056431
mov edi, dword [edi]
xor esi, esi
push esi
lea eax, [ebp - 0x18]
call fcn.100164f0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.10016cf0
push esi
push esi
mov dword [ebp - 0x14], esi
push esi
lea esi, [ebp - 0x14]
call fcn.100163a0
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.100511a0
add esp, 0x10
push 0
push 0
push 0
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.100163a0
mov bl, 2
mov edi, str.SELECT__FROM_GDB_Items_WHERE_UPPER_Path___
mov eax, esi
mov byte [ebp - 4], bl
call fcn.10016670
mov eax, esi
push eax
mov eax, dword [ebp - 0x18]
call fcn.10016730
mov ecx, esi
push ecx
mov eax, str._AND_Type_IN__
call fcn.10016730
mov eax, dword [ebp - 0x14]
mov edx, esi
push edx
call fcn.10016730
mov eax, esi
push eax
mov eax, 0x10198230
call fcn.10016730
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x4c]
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
mov dword [ebp - 0x20], 0
call fcn.100438c0
add esp, 4
push 0
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x20]
push 0
push edi
call sub.MSVCR100.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10056596
mov byte [ebp - 4], bl
test edi, edi
je 0x10056526
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x10056547
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10056547
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056547
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10056562
lea edx, [eax - 0xc]
test edx, edx
je 0x10056562
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056562
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005657d
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005657d
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005657d
push eax
call esi
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 8
push esi
call fcn.10045a40
mov dword [ebp - 0x1c], eax
test eax, eax
jns 0x10056622
mov byte [ebp - 4], bl
test edi, edi
je 0x100565b4
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x100565d5
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100565d5
add eax, 0xfffffff4
dec dword [eax]
jne 0x100565d5
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100565f0
lea edx, [eax - 0xc]
test edx, edx
je 0x100565f0
add eax, 0xfffffff4
dec dword [eax]
jne 0x100565f0
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005660b
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005660b
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005660b
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
jns 0x100566bd
mov byte [ebp - 4], bl
test edi, edi
je 0x10056647
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x10056668
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10056668
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056668
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10056683
lea edx, [eax - 0xc]
test edx, edx
je 0x10056683
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056683
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005660b
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005660b
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005660b
push eax
call esi
mov eax, dword [ebp - 0x1c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.10045e80
mov dword [ebp - 0x1c], eax
test eax, eax
jns 0x1005670b
mov byte [ebp - 4], bl
test edi, edi
je 0x100566dc
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x10]
call fcn.100164d0
lea eax, [ebp - 0x14]
call fcn.100164d0
lea eax, [ebp - 0x18]
call fcn.100164d0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 1
jne 0x10056751
mov byte [ebp - 4], bl
test edi, edi
je 0x10056720
mov edx, dword [edi]
push eax
mov eax, dword [edx]
mov ecx, edi
call eax
lea eax, [ebp - 0x10]
call fcn.100164d0
lea eax, [ebp - 0x14]
call fcn.100164d0
lea eax, [ebp - 0x18]
call fcn.100164d0
mov eax, 0x80042601
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x1005679a
mov byte [ebp - 4], bl
test edi, edi
je 0x10056769
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x10]
call fcn.100164d0
lea eax, [ebp - 0x14]
call fcn.100164d0
lea eax, [ebp - 0x18]
call fcn.100164d0
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 8
mov esi, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [ebp + 8]
call fcn.100571c0
mov esi, eax
mov byte [ebp - 4], 2
test edi, edi
je 0x100567bc
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x10]
call fcn.100164d0
lea eax, [ebp - 0x14]
call fcn.100164d0
lea eax, [ebp - 0x18]
call fcn.100164d0
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 8