Function at 0x100567f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016a860
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 edi, ecx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 4], 0
je 0x10056985
cmp dword [edi + 0x14], 8
jb 0x1005682f
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 [0x10410ab0]
mov edx, dword [0x10410ab4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10410ab8]
mov dword [eax + 4], edx
mov edx, dword [0x10410abc]
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 edi, 0x101e8a20
mov eax, esi
mov byte [ebp - 4], 2
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 edi, dword [ebx + 0x4c]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov dword [ebp - 0x1c], 0
call fcn.100438c0
add esp, 4
push 0
push 0x1044bc6c
push 0x1044bd5c
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
push 0
push edi
call sub.MSVCR100.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005699e
mov byte [ebp - 4], 2
test edi, edi
je 0x1005692e
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 0x1005694f
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1005694f
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005694f
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1005696a
lea edx, [eax - 0xc]
test edx, edx
je 0x1005696a
add eax, 0xfffffff4
dec dword [eax]
jne 0x1005696a
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056985
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10056985
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056985
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 ebx, eax
test ebx, ebx
jns 0x10056a29
mov byte [ebp - 4], 2
test edi, edi
je 0x100569bc
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 0x100569dd
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100569dd
add eax, 0xfffffff4
dec dword [eax]
jne 0x100569dd
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100569f8
lea edx, [eax - 0xc]
test edx, edx
je 0x100569f8
add eax, 0xfffffff4
dec dword [eax]
jne 0x100569f8
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056a13
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10056a13
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056a13
push eax
call esi
add esp, 4
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 8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebx, eax
test ebx, ebx
jns 0x10056ac3
mov byte [ebp - 4], 2
test edi, edi
je 0x10056a4e
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 0x10056a6f
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10056a6f
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056a6f
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10056a8a
lea edx, [eax - 0xc]
test edx, edx
je 0x10056a8a
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056a8a
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056a13
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10056a13
add eax, 0xfffffff4
dec dword [eax]
jne 0x10056a13
push eax
call esi
add esp, 4
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 8
mov ecx, esi
call fcn.10045e80
mov ebx, eax
test ebx, ebx
jns 0x10056b10
mov byte [ebp - 4], 2
test edi, edi
je 0x10056ae2
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, 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 8
cmp ebx, 1
jne 0x10056b57
mov byte [ebp - 4], 2
test edi, edi
je 0x10056b26
mov edx, dword [edi]
mov eax, dword [edx]
push ebx
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 0x10056ba1
mov byte [ebp - 4], 2
test edi, edi
je 0x10056b70
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 0x10056bc3
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