Function at 0x527124
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x527818
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0xffff
mov word [ebp - 8], 0
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x50cd68]
call fcn.0051cc08
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5277d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.005263b8
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0xc]
add eax, 0x30
mov edx, 0x527830
call fcn.00404430
mov eax, dword [ebp - 0xc]
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 - 0xc]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov esi, eax
lea eax, [esi + 0x14]
mov edx, 0x5278cc
call fcn.00404430
mov word [esi + 0x18], 1
cmp dword [ebx + 0x14], 0
je 0x527200
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 - 8]
mov dword [esi + 0x30], eax
jmp 0x527210
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x2c], eax
lea eax, [ebp - 6]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0xc]
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 - 0xc]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov esi, eax
lea eax, [esi + 0x14]
mov edx, 0x5278d8
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 - 8]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.0041e7a0
push 0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00520f60
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
mov edi, 0x1f
mov eax, ebx
call fcn.005263b0
call fcn.00514524
test al, al
je 0x5272c1
mov eax, edi
add eax, eax
mov edi, eax
inc edi
and edi, 0xfffffffe
mov eax, edi
shl eax, 2
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
add esi, 0x10
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + 8]
imul edx, esi
mov eax, dword [0x47fd0c]
call fcn.00480344
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5277b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.0047f8a8
mov dword [ebp - 0x30], eax
mov edx, 2
mov eax, dword [ebp - 0x30]
call fcn.0047f8a8
mov dword [ebp - 0x2c], eax
push 1
mov eax, dword [ebp - 0x28]
push eax
push edi
push 9
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
push esi
push esi
mov eax, dword [ebp - 0x18]
call fcn.0048ec50
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
mov edx, edi
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 2
mov eax, dword [ebp - 0x34]
push eax
push edi
push 9
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
push esi
push esi
mov eax, dword [ebp - 0x18]
call fcn.0048ec50
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
mov edx, edi
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 3
mov eax, dword [ebp - 0x40]
push eax
push edi
push 9
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
push esi
push esi
mov eax, dword [ebp - 0x18]
call fcn.0048ec50
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
mov edx, edi
mov eax, dword [ebp - 0x40]
call fcn.0047f8a8
mov dword [ebp - 0x4c], eax
mov edx, 4
mov eax, dword [ebp - 0x48]
call fcn.0047f8a8
mov dword [ebp - 0x54], eax
mov edx, 4
mov eax, dword [ebp - 0x44]
call fcn.0047f8a8
mov dword [ebp - 0x50], eax
push 4
mov eax, dword [ebp - 0x4c]
push eax
push edi
push 9
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00520d4c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
push esi
push esi
mov eax, dword [ebp - 0x18]
call fcn.0048ec50
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0051cad4
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0052141c
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov edx, eax
mov ecx, dword [ebp - 4]
pop eax
call fcn.00513808
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x52779b
inc eax
mov dword [ebp - 0x68], eax
xor edi, edi
mov eax, dword [ebx + 0x34]
mov edx, edi
call fcn.0041e8fc
mov dword [ebp - 0x5c], eax
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x30]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x5275d9
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx eax, ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x28]
call fcn.00513494
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
add eax, 0x14
call fcn.00404430
jmp 0x5275e4
mov eax, dword [ebp - 0x5c]
add eax, 0x14
call fcn.004043dc
mov eax, dword [ebp - 0x5c]
mov ax, word [eax + 0x18]
sub ax, 0x3a
je 0x52760c
sub ax, 0x32
je 0x52760c
sub ax, 2
je 0x52760c
sub ax, 2
je 0x527721
jmp 0x527791
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x52765e
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x38]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx eax, ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x34]
call fcn.00513494
jmp 0x527666
lea eax, [ebp - 0x60]
call fcn.004043dc
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x48]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x5276b8
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x44]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx eax, ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x40]
call fcn.00513494
jmp 0x5276c0
lea eax, [ebp - 0x64]
call fcn.004043dc
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call fcn.005263b8
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
call fcn.00518ab4
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x5c]
add eax, 0x60
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x64]
mov edx, dword [edx + 0x24]
mov ecx, dword [0x47e9c0]
call fcn.00405cb0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x70]
sub eax, 0x3a
je 0x52770a
sub eax, 0x32
jne 0x527791
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x40]
add eax, 3
and eax, 0xfffffffc
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x6c], eax
jmp 0x527791
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x54]
mov eax, dword [0x47fd0c]
call fcn.004803a4
test ax, ax
jl 0x527773
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x50]
mov eax, dword [0x47fd0c]
call fcn.004803a4
movsx eax, ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, ebx
call fcn.005263b0
call fcn.00514524
mov ecx, edi
imul ecx, esi
mov edx, dword [ebp - 0x4c]
call fcn.00513494
jmp 0x52777b
lea eax, [ebp - 0x58]
call fcn.004043dc
mov eax, dword [ebp - 0x58]
mov edx, 0x5278e4
call fcn.004047f8
jne 0x527791
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x5e], 2
inc edi
dec dword [ebp - 0x68]
jne 0x52756c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5277bd
mov edx, dword [ebp - 0x24]
mov eax, dword [0x47fd0c]
call fcn.00480360
ret