Function at 0x526c50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52708f
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0xa], 0xffff
mov word [ebp - 0xc], 0
mov eax, ebx
call fcn.005263b0
mov ecx, eax
mov dl, 1
mov eax, dword [0x50cd68]
call fcn.0051cc08
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52705a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.005263b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0x30
mov edx, 0x5270a8
call fcn.00404430
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 1
mov eax, ebx
call fcn.005263b0
call fcn.00514524
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x14]
call fcn.00513650
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov esi, eax
lea eax, [esi + 0x14]
mov edx, 0x527114
call fcn.00404430
mov word [esi + 0x18], 1
cmp dword [ebx + 0x14], 0
je 0x526d2b
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x10]
call fcn.00405998
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0xc]
mov dword [esi + 0x30], eax
jmp 0x526d3b
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0xa]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.0041e7a0
mov eax, ebx
call fcn.005263b0
call fcn.00514524
lea ecx, [ebp - 0x14]
mov edx, dword [ebx + 0x18]
call fcn.00513650
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov esi, eax
lea eax, [esi + 0x14]
mov edx, 0x527120
call fcn.00404430
mov word [esi + 0x18], 1
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x14]
call fcn.00405998
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.0041e7a0
push 0
mov ecx, 1
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00520f60
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, edi
pop eax
call fcn.00513808
mov esi, 0x1f
mov eax, ebx
call fcn.005263b0
call fcn.00514524
test al, al
je 0x526dea
mov eax, esi
add eax, eax
mov esi, eax
inc esi
and esi, 0xfffffffe
mov eax, esi
add eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x47fd0c]
call fcn.00480344
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x52703d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
call fcn.0047f8a8
mov dword [ebp - 0x2c], eax
mov edx, 2
mov eax, dword [ebp - 0x2c]
call fcn.0047f8a8
mov dword [ebp - 0x28], eax
push 1
mov eax, dword [ebp - 0x24]
push eax
push esi
push 9
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 8]
mov ecx, edi
mov eax, dword [ebp - 4]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, edi
pop eax
call fcn.00513808
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.0048ec50
mov ecx, dword [ebp - 0x1c]
mov edx, edi
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, edi
pop eax
call fcn.00513808
mov edx, esi
mov eax, dword [ebp - 0x24]
call fcn.0047f8a8
mov dword [ebp - 0x30], eax
mov edx, 4
mov eax, dword [ebp - 0x2c]
call fcn.0047f8a8
mov dword [ebp - 0x38], eax
mov edx, 4
mov eax, dword [ebp - 0x28]
call fcn.0047f8a8
mov dword [ebp - 0x34], eax
push 2
mov eax, dword [ebp - 0x30]
push eax
push esi
push 9
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 8]
mov ecx, edi
mov eax, dword [ebp - 4]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, edi
pop eax
call fcn.00513808
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.0048ec50
mov ecx, dword [ebp - 0x1c]
mov edx, edi
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, edi
pop eax
call fcn.00513808
mov ecx, 1
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0052141c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, edi
pop eax
call fcn.00513808
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x526fa1
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx esi, ax
lea eax, [ebp - 0x3c]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, esi
mov edx, dword [ebp - 0x24]
call fcn.00513414
jmp 0x526fa9
lea eax, [ebp - 0x3c]
call fcn.004043dc
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x526feb
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx esi, ax
lea eax, [ebp - 0x40]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, esi
mov edx, dword [ebp - 0x30]
call fcn.00513414
jmp 0x526ff3
lea eax, [ebp - 0x40]
call fcn.004043dc
push edi
mov eax, ebx
call fcn.005263b8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
call fcn.00518ab4
mov esi, eax
mov eax, dword [ebx + 0x3c]
mov dword [eax + 0x64], esi
mov eax, dword [ebx + 0x3c]
add eax, 0x60
mov edx, dword [esi + 0x24]
mov ecx, dword [0x47e9c0]
call fcn.00405cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527044
mov edx, dword [ebp - 0x20]
mov eax, dword [0x47fd0c]
call fcn.00480360
ret