Function at 0x50d82c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x50d834
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50dc55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x304]
mov eax, dword [eax + 0x22c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
mov edx, 0x50dc6c
call fcn.00404bd0
mov eax, dword [ebx + 0x320]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x50d88a
lea eax, [ebp - 4]
mov edx, 0x50dd18
call fcn.00404df8
mov eax, dword [ebx + 0x324]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x50d8a9
lea eax, [ebp - 4]
mov edx, 0x50dd30
call fcn.00404df8
push dword [ebp - 4]
push 0x50dd48
push 0x50dd68
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 - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00483d8c
mov eax, dword [ebp - 0xc]
call fcn.004d882c
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
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, 0xa
jne 0x50d905
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 0x50d923
inc edi
cmp edi, 8
jne 0x50d921
jmp 0x50dbfd
mov edx, 0x50dd8c
mov eax, dword [ebp - 0xc]
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, 1
mov eax, esi
call fcn.004c1a98
mov edx, 0x50dd9c
mov eax, dword [ebp - 0xc]
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, 2
mov eax, esi
call fcn.004c1a98
mov edx, 0x50ddac
mov eax, dword [ebp - 0xc]
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, 3
mov eax, esi
call fcn.004c1a98
mov edx, 0x50ddbc
mov eax, dword [ebp - 0xc]
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, 4
mov eax, esi
call fcn.004c1a98
mov edx, 0x50ddd0
mov eax, dword [ebp - 0xc]
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, 5
mov eax, esi
call fcn.004c1a98
mov edx, 0x50dde4
mov eax, dword [ebp - 0xc]
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, 6
mov eax, esi
call fcn.004c1a98
mov edx, 0x50ddf8
mov eax, dword [ebp - 0xc]
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, 7
mov eax, esi
call fcn.004c1a98
mov edx, 0x50de0c
mov eax, dword [ebp - 0xc]
call fcn.00484d94
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x2c]
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, 0x50de20
mov eax, dword [ebp - 0xc]
call fcn.00484d94
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x30]
push eax
mov esi, dword [ebx + 0x304]
mov ecx, dword [esi + 0x24c]
dec ecx
mov edx, 9
mov eax, esi
call fcn.004c1a98
mov edx, 0x50de30
mov eax, dword [ebp - 0xc]
call fcn.00484d94
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x34]
mov edx, 0x50de40
call fcn.00404f34
jne 0x50dbe3
mov edx, 0x50dd9c
mov eax, dword [ebp - 0xc]
call fcn.00484d94
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x38]
push eax
mov edx, 0x50ddf8
mov eax, dword [ebp - 0xc]
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x58]
dec eax
push eax
mov edx, 0x50dde4
mov eax, dword [ebp - 0xc]
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, 0x50ddf8
mov eax, dword [ebp - 0xc]
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x58]
mov esi, eax
mov edx, 0x50dde4
mov eax, dword [ebp - 0xc]
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, 0x50dd8c
mov eax, dword [ebp - 0xc]
call fcn.00484d94
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.00404b8c
mov eax, dword [ebx + 0x304]
mov edx, dword [eax + 0x24c]
inc edx
call fcn.004bf88c
mov eax, dword [ebp - 0xc]
call fcn.0048643c
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xa1], 0
je 0x50d959
mov eax, dword [ebx + 0x304]
mov edx, dword [eax + 0x24c]
cmp edx, 2
jle 0x50dc24
dec edx
call fcn.004bf88c
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x304]
call fcn.004bf874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50dc5c
lea eax, [ebp - 0x3c]
mov edx, 0xc
call fcn.00404b5c
lea eax, [ebp - 4]
call fcn.00404b38
ret