Function at 0x526688
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x526bcc
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 2], 0
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x50cd68]
call fcn.0051cc08
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x526baa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.005263b8
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0x30
mov edx, 0x526be4
call fcn.00404430
mov eax, dword [ebp - 8]
mov word [eax + 0x38], 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov edi, eax
lea eax, [edi + 0x14]
mov edx, 0x526c4c
call fcn.00404430
mov word [edi + 0x18], 0x17
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x24]
call fcn.00405998
mov dword [edi + 0x2c], eax
lea eax, [ebp - 2]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov edx, edi
call fcn.0041e7a0
push 0
mov ecx, 1
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00520f60
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
mov dword [ebp - 0x10], 0x1f
mov eax, ebx
call fcn.005263b0
call fcn.00514524
test al, al
je 0x52678c
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
inc eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 2
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
add edi, 0x10
mov edx, edi
mov eax, dword [0x47fd0c]
call fcn.00480344
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x526b8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.0047f8a8
mov dword [ebp - 0x24], eax
mov edx, 2
mov eax, dword [ebp - 0x24]
call fcn.0047f8a8
mov dword [ebp - 0x20], eax
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 9
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0xc]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
push edi
push edi
mov eax, dword [ebp - 0xc]
call fcn.0048ec50
mov ecx, edi
mov edx, esi
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0047f8a8
mov dword [ebp - 0x28], eax
mov edx, 4
mov eax, dword [ebp - 0x24]
call fcn.0047f8a8
mov dword [ebp - 0x30], eax
mov edx, 4
mov eax, dword [ebp - 0x20]
call fcn.0047f8a8
mov dword [ebp - 0x2c], eax
push 2
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 9
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0xc]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
push edi
push edi
mov eax, dword [ebp - 0xc]
call fcn.0048ec50
mov ecx, edi
mov edx, esi
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.0047f8a8
mov dword [ebp - 0x34], eax
mov edx, 4
mov eax, dword [ebp - 0x30]
call fcn.0047f8a8
mov dword [ebp - 0x3c], eax
mov edx, 4
mov eax, dword [ebp - 0x2c]
call fcn.0047f8a8
mov dword [ebp - 0x38], eax
push 3
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 9
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
lea edx, [ebp - 0xc]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
push edi
push edi
mov eax, dword [ebp - 0xc]
call fcn.0048ec50
mov ecx, edi
mov edx, esi
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.0047f8a8
mov dword [ebp - 0x40], eax
mov edx, 4
mov eax, dword [ebp - 0x3c]
call fcn.0047f8a8
mov dword [ebp - 0x48], eax
mov edx, 4
mov eax, dword [ebp - 0x38]
call fcn.0047f8a8
mov dword [ebp - 0x44], eax
push 4
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 9
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0xc]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
push edi
push edi
mov eax, dword [ebp - 0xc]
call fcn.0048ec50
mov ecx, edi
mov edx, esi
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
mov ecx, 1
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0052141c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, esi
pop eax
call fcn.00513808
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x526a6b
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx esi, ax
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, esi
mov edx, dword [ebp - 0x1c]
call fcn.00513414
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x14]
call fcn.00404430
jmp 0x526a73
lea eax, [ebx + 0x14]
call fcn.004043dc
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x526ac0
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx esi, ax
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, esi
mov edx, dword [ebp - 0x28]
call fcn.00513414
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x18]
call fcn.00404430
jmp 0x526ac8
lea eax, [ebx + 0x18]
call fcn.004043dc
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x526b15
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx esi, ax
lea eax, [ebp - 0x54]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, esi
mov edx, dword [ebp - 0x34]
call fcn.00513414
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x20]
call fcn.00404430
jmp 0x526b1d
lea eax, [ebx + 0x20]
call fcn.004043dc
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x526b6a
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx esi, ax
lea eax, [ebp - 0x58]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, esi
mov edx, dword [ebp - 0x40]
call fcn.00513414
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x1c]
call fcn.00404430
jmp 0x526b72
lea eax, [ebx + 0x1c]
call fcn.004043dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x526b94
mov edx, dword [ebp - 0x18]
mov eax, dword [0x47fd0c]
call fcn.00480360
ret