Function at 0x510adc
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x510ae4
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x510f10
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x510f28
call fcn.00404bd0
mov eax, dword [ebx + 0x310]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x510b2a
lea eax, [ebp - 4]
mov edx, 0x510fc8
call fcn.00404df8
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x510b49
lea eax, [ebp - 4]
mov edx, 0x510fe0
call fcn.00404df8
push dword [ebp - 4]
push 0x510ff8
push 0x511018
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404eb0
mov eax, dword [0x669de8]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00483d8c
mov eax, dword [ebp - 8]
call fcn.004d882c
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 8]
call fcn.00483d80
mov edx, 2
mov eax, dword [ebx + 0x304]
call fcn.004bf88c
mov edi, 1
push 0
mov ecx, 1
mov edx, edi
mov eax, dword [ebx + 0x304]
call fcn.004c1a98
inc edi
cmp edi, 9
jne 0x510ba5
xor edi, edi
xor esi, esi
push 0
mov ecx, edi
mov edx, esi
mov eax, dword [ebx + 0x30c]
call fcn.004c1a98
mov eax, esi
shl eax, 2
lea eax, [ebx + eax*8]
lea eax, [eax + edi*4 + 0x334]
call fcn.00404b38
inc esi
cmp esi, 6
jne 0x510bc3
inc edi
cmp edi, 8
jne 0x510bc1
jmp 0x510ec6
mov edx, 0x51103c
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xc]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 1
mov eax, esi
call fcn.004c1a98
mov edx, 0x51104c
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x10]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 2
mov eax, esi
call fcn.004c1a98
mov edx, 0x51105c
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x14]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 3
mov eax, esi
call fcn.004c1a98
mov edx, 0x51106c
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x18]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 4
mov eax, esi
call fcn.004c1a98
mov edx, 0x511080
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1c]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 5
mov eax, esi
call fcn.004c1a98
mov edx, 0x511094
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 6
mov eax, esi
call fcn.004c1a98
mov edx, 0x5110a8
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x24]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 7
mov eax, esi
call fcn.004c1a98
mov edx, 0x5110bc
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x28]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 8
mov eax, esi
call fcn.004c1a98
mov edx, 0x5110cc
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x2c]
mov edx, 0x5110dc
call fcn.00404f34
jne 0x510dcb
push 0x5110e8
mov eax, dword [ebx + 0x304]
mov ecx, dword [eax + 0x24c]
dec ecx
mov edx, 9
call fcn.004c1a98
jmp 0x510de4
push 0
mov eax, dword [ebx + 0x304]
mov ecx, dword [eax + 0x24c]
dec ecx
mov edx, 9
call fcn.004c1a98
mov edx, 0x5110cc
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x30]
mov edx, 0x5110f8
call fcn.00404f34
jne 0x510eac
mov edx, 0x51104c
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x34]
push eax
mov edx, 0x5110a8
mov eax, dword [ebp - 8]
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x58]
dec eax
push eax
mov edx, 0x511094
mov eax, dword [ebp - 8]
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
dec edx
mov eax, dword [ebx + 0x30c]
pop ecx
call fcn.004c1a98
mov edx, 0x5110a8
mov eax, dword [ebp - 8]
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x58]
mov esi, eax
mov edx, 0x511094
mov eax, dword [ebp - 8]
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x58]
shl eax, 2
lea eax, [ebx + eax*8]
lea eax, [eax + esi*4 + 0x310]
push eax
mov edx, 0x51103c
mov eax, dword [ebp - 8]
call fcn.00484d94
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404b8c
mov eax, dword [ebx + 0x304]
mov edx, dword [eax + 0x24c]
inc edx
call fcn.004bf88c
mov eax, dword [ebp - 8]
call fcn.0048643c
mov eax, dword [ebp - 8]
cmp byte [eax + 0xa1], 0
je 0x510bf9
mov eax, dword [ebx + 0x304]
mov edx, dword [eax + 0x24c]
cmp edx, 2
jle 0x510eed
dec edx
call fcn.004bf88c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510f17
lea eax, [ebp - 0x38]
mov edx, 0xc
call fcn.00404b5c
lea eax, [ebp - 4]
call fcn.00404b38
ret