Function at 0x573650
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x573658
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x573987
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004043dc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004059a0
mov esi, eax
test esi, esi
jl 0x5736df
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*2]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test byte [eax + edi*8 + 0x14], 1
je 0x5736db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + edi*8 + 0xc], 0
je 0x5736db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + edi*8 + 4], 0
jne 0x5736db
push dword [ebp - 4]
push 0x5739a0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + edi*8 + 0xc]
push 0x5739bc
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040476c
inc ebx
dec esi
jne 0x57368d
cmp dword [ebp - 4], 0
je 0x57393f
push 0x5739c8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
call fcn.00572bf8
pop ecx
push dword [ebp - 8]
push 0x573a14
push dword [ebp - 4]
push 0x573a2c
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040476c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004f4608
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0047a6d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004059a0
mov esi, eax
test esi, esi
jl 0x5737f7
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
test byte [edx + eax*8 + 0x14], 1
je 0x5737ef
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x5737ef
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp dword [edx + eax*8 + 4], 0
jne 0x5737ef
mov al, byte [0x573a58]
push eax
lea eax, [ebp - 0x18]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
mov edx, dword [ecx + edx*8 + 0xc]
call fcn.00415be0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, 0x573a64
mov edi, dword [eax]
call dword [edi + 0x244]
test al, al
je 0x5737ef
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.00470bb0
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x1c]
call fcn.00417f44
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + ebx*2]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
lea eax, [ecx + eax*8 + 4]
call fcn.00404430
inc ebx
dec esi
jne 0x57374e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0047a6dc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004059a0
mov esi, eax
test esi, esi
jl 0x57393f
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*2]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test byte [eax + edi*8 + 0x14], 1
je 0x573937
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + edi*8 + 0xc], 0
je 0x573937
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp dword [edx + eax*8 + 4], 0
je 0x57386c
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov eax, dword [edx + eax*8 + 4]
mov edx, 0x573a74
call fcn.004047f8
jne 0x573937
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x57391f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fc0a8
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404474
push 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
mov eax, dword [0x597e74]
mov eax, dword [eax]
xor ecx, ecx
mov edi, dword [eax]
call dword [edi + 0x40]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404474
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x57391f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004f4608
mov edx, 0x573a8c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0047a6d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.00470bb0
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x34]
call fcn.00417f44
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404474
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0047a6dc
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
lea eax, [edx + eax*8 + 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
call fcn.00404430
inc ebx
dec esi
jne 0x57381a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57398e
lea eax, [ebp - 0x44]
call fcn.004115a8
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404400
lea eax, [ebp - 0x2c]
call fcn.004115a8
lea eax, [ebp - 0x1c]
call fcn.004043dc
lea eax, [ebp - 0x18]
call fcn.004115a8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404400
ret