Function at 0x5851de
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xd0
push ebx
mov ebx, dword [ebp + 0x74]
mov eax, dword [ebx + 0x22c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x230]
xor ecx, ecx
inc ecx
mov dword [ebx + 0x22c], eax
inc eax
push esi
mov esi, dword [ebp + 0x78]
mov dword [ebx + 0x230], eax
push edi
mov edi, dword [ebx]
xor eax, eax
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x4c], edi
cmp esi, eax
je 0x585dd7
cmp byte [edi + 0x1e], al
jne 0x585dd7
cmp dword [ebx + 0x40], eax
jne 0x585dd7
push eax
push eax
push eax
push 0x15
mov eax, ebx
call fcn.0055dec8
add esp, 0x10
test eax, eax
je 0x585250
xor eax, eax
inc eax
jmp 0x585dd9
push 0x2c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00596530
mov eax, dword [ebp + 0x7c]
add esp, 0xc
cmp byte [eax], 4
ja 0x58527f
push edi
mov edi, dword [esi + 0x18]
call fcn.00556729
and dword [esi + 0x18], 0
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
push 0
push esi
push ebx
call fcn.0058518b
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x58], eax
mov eax, dword [esi + 8]
mov dword [ebp + 0x34], eax
mov eax, dword [esi]
add esp, 0xc
cmp dword [ebx + 0x40], 0
mov dword [ebp + 0x40], eax
jne 0x585d90
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x1e], 0
jne 0x585d90
movzx eax, word [esi + 6]
shr eax, 2
and eax, 1
mov edi, ebx
mov dword [ebp + 0x44], eax
call fcn.0056287c
mov dword [ebp + 0x68], eax
test eax, eax
je 0x585d90
mov eax, dword [ebp + 0x40]
push dword [eax]
mov eax, dword [ebp + 0x7c]
call fcn.0055f16e
pop ecx
test eax, eax
jne 0x585d90
and dword [ebp + 0x48], eax
jmp 0x5853da
mov eax, dword [ebp + 0x34]
movsx ecx, word [eax]
cmp dword [ebp + 0x48], ecx
jge 0x5853e4
mov ecx, dword [ebp + 0x48]
imul ecx, ecx, 0x38
lea ebx, [ecx + eax + 8]
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x24], eax
test eax, eax
je 0x5853d7
cmp byte [ebx + 0x14], 0
jne 0x5853d7
mov eax, esi
call fcn.0055662c
mov ecx, dword [ebp + 0x74]
add dword [ecx + 0x220], eax
mov eax, dword [ebp + 0x24]
movzx edi, word [eax + 6]
shr edi, 2
and edi, 1
push edi
push dword [ebp + 0x44]
mov eax, esi
push dword [ebp + 0x48]
push ecx
call fcn.005666e9
add esp, 0x10
test eax, eax
je 0x58536a
test edi, edi
je 0x585364
or word [esi + 6], 4
mov dword [ebp + 0x44], 1
or dword [ebp + 0x48], 0xffffffff
jmp 0x5853a6
push dword [ebx + 0x18]
lea eax, [ebp - 0x64]
push 9
call fcn.0055787e
mov eax, dword [ebp + 0x74]
mov cl, byte [eax + 0x230]
mov edi, dword [ebp + 0x24]
mov byte [ebx + 0x17], cl
lea ecx, [ebp - 0x64]
push ecx
push edi
push eax
call fcn.005851de
mov byte [ebx + 0x14], 1
fld qword [edi + 0x48]
add esp, 0x14
call fcn.005969d6
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x1e], 0
jne 0x585d90
mov eax, esi
call fcn.0055662c
mov ecx, dword [ebp + 0x74]
sub dword [ecx + 0x220], eax
mov eax, dword [esi + 8]
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x7c]
cmp byte [eax], 4
jbe 0x5853d7
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x48]
cmp dword [esi + 0x1c], 0
je 0x5852f0
mov eax, dword [esi]
mov dword [ebp + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x64], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x18], eax
movzx eax, word [esi + 6]
mov ecx, eax
and ecx, 1
cmp dword [esi + 0x1c], 0
mov dword [ebp + 0x2c], ecx
je 0x585468
cmp dword [esi + 0x24], 0
jne 0x58544a
xor ecx, ecx
xor edx, edx
mov eax, esi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], esi
mov ecx, eax
mov eax, dword [eax + 0x1c]
inc edx
test eax, eax
jne 0x585419
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x58544a
cmp edx, eax
jle 0x58544a
mov edi, dword [ebp + 0x74]
push str.too_many_terms_in_compound_SELECT
call fcn.0055a104
pop ecx
jmp 0x585d90
push dword [ebp + 0x7c]
mov edi, dword [ebp + 0x74]
push edi
mov eax, esi
call fcn.0056cae6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x22c], ecx
jmp 0x585dd9
and al, 5
cmp al, 1
jne 0x58548c
mov ebx, dword [ebp + 0x40]
push 0
push dword [ebp + 0x4c]
call fcn.0055d458
mov dword [esi + 0x10], eax
mov dword [ebp + 0x64], eax
pop ecx
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
mov ebx, dword [ebp + 0x58]
mov edi, dword [esi + 0x10]
call fcn.00556a67
test eax, eax
jne 0x5854a8
mov eax, dword [ebp + 0x4c]
test byte [eax + 0xc], 0x20
jne 0x5854a8
and dword [ebp + 0x58], 0
mov edi, dword [ebp + 0x58]
mov ebx, dword [ebp + 0x74]
test edi, edi
je 0x5854e5
push edi
push ebx
call fcn.00569f89
mov ecx, dword [ebx + 0x44]
push 0xfffffffffffffff0
push eax
mov dword [edi + 8], ecx
inc dword [ebx + 0x44]
mov eax, dword [edi]
push 0
inc eax
inc eax
push eax
push dword [edi + 8]
push dword [ebp + 0x68]
push 0x29
pop eax
call fcn.00560b2c
add esp, 0x20
mov dword [ebp + 0x50], eax
mov dword [esi + 0x40], eax
jmp 0x5854e9
or dword [ebp + 0x50], 0xffffffff
mov eax, dword [ebp + 0x7c]
cmp byte [eax], 9
jne 0x585506
mov ecx, dword [ebp + 0x40]
push dword [ecx]
mov ecx, dword [ebp + 0x68]
push dword [eax + 4]
push 0x29
pop eax
call fcn.0055c34c
pop ecx
pop ecx
mov eax, dword [ebp + 0x68]
call fcn.0055c35f
fld qword [0x5ca2e0]
mov dword [ebp - 0x30], eax
fstp qword [esi + 0x48]
push eax
mov eax, esi
mov ecx, ebx
call fcn.005628a5
test byte [esi + 6], 1
pop ecx
je 0x585561
mov edi, dword [ebx + 0x44]
lea eax, [edi + 1]
mov dword [ebx + 0x44], eax
push dword [esi]
mov dword [ebp + 0x24], edi
push ebx
call fcn.00569f89
push 0xfffffffffffffff0
push eax
push 0
push 0
push edi
push dword [ebp + 0x68]
push 0x29
pop eax
call fcn.00560b2c
mov ecx, dword [ebp + 0x68]
add esp, 0x20
mov dl, 0x10
call fcn.00555aea
jmp 0x585565
or dword [ebp + 0x24], 0xffffffff
cmp dword [ebp + 0x44], 0
mov edi, dword [ebp + 0x64]
jne 0x5855ea
test edi, edi
jne 0x5855ee
push edi
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x3c]
push dword [ebp + 0x34]
push ebx
call fcn.0057e358
mov edi, eax
add esp, 0x14
test edi, edi
je 0x585d90
fld qword [esi + 0x48]
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x5855a3
fld qword [edi + 0x28]
fstp qword [esi + 0x48]
cmp dword [ebp + 0x50], 0
jl 0x5855c1
cmp dword [ebp + 0x58], 0
jne 0x5855c1
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x68]
push 1
call fcn.0055c554
or dword [esi + 0x40], 0xffffffff
pop ecx
push dword [edi + 0x14]
mov eax, dword [ebp + 0x7c]
push dword [edi + 0x10]
push 0xffffffffffffffff
push dword [ebp + 0x58]
push 0
push 0
push dword [ebp + 0x40]
push esi
push ebx
call fcn.005620e9
add esp, 0x24
call fcn.0055f9f4
jmp 0x585d47
test edi, edi
je 0x585637
mov eax, dword [esi]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
test ecx, ecx
jle 0x585609
add eax, 0x10
xor edx, edx
mov word [eax], dx
dec ecx
add eax, 0x14
test ecx, ecx
jg 0x5855fc
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
test eax, eax
jle 0x585622
add ecx, 0x10
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x585615
fld qword [0x5fdca8]
fcom qword [esi + 0x48]
fnstsw ax
test ah, 5
jp 0x58563b
fstp qword [esi + 0x48]
jmp 0x58563d
fld1
jmp 0x585632
fstp st(0)
mov eax, dword [ebp + 0x68]
call fcn.0055c35f
push 0x24
mov dword [ebp + 0x38], eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00596530
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x50], eax
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x38], eax
test edi, edi
je 0x585673
mov eax, dword [edi]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x585677
and dword [ebp - 0x1c], 0
mov esi, dword [ebp + 0x40]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x20], edi
call fcn.00564b38
mov esi, dword [ebp + 0x58]
lea eax, [ebp - 0x54]
push eax
call fcn.00564b38
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
je 0x5856a7
push dword [ebp + 0x18]
lea eax, [ebp - 0x54]
call fcn.00564b11
pop ecx
cmp dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jle 0x5856d0
xor edi, edi
mov eax, dword [ebp - 8]
mov eax, dword [edi + eax]
mov esi, dword [eax + 0x10]
lea ecx, [ebp - 0x54]
push ecx
call fcn.00564b38
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 4]
pop ecx
jl 0x5856b4
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x1e], 0
jne 0x585d90
mov ebx, dword [ebp + 0x64]
test ebx, ebx
je 0x585b32
mov edi, dword [ebp + 0x74]
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x24], eax
inc eax
push ebx
push edi
mov dword [edi + 0x44], eax
call fcn.00569f89
mov esi, dword [ebp + 0x68]
push 0xfffffffffffffff0
push eax
push 0
push dword [ebp - 0x1c]
mov dword [ebp + 4], eax
push dword [ebp - 0x24]
push esi
push 0x29
pop eax
call fcn.00560b2c
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x48]
inc eax
mov dword [ebp + 0x30], eax
inc eax
mov dword [ebp + 0x14], eax
inc eax
mov dword [ebp + 0x44], eax
mov dword [edi + 0x48], eax
mov eax, esi
call fcn.0055c35f
inc dword [edi + 0x48]
mov dword [ebp + 0x10], eax
mov eax, dword [edi + 0x48]
mov dword [ebp + 0x54], eax
mov eax, esi
call fcn.0055c35f
push dword [ebp + 0x14]
mov dword [ebp + 0x28], eax
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebx]
add eax, ecx
lea ecx, [eax + 1]
mov dword [edi + 0x48], eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebx]
add ecx, eax
xor ebx, ebx
push ebx
mov dword [edi + 0x48], ecx
push 7
pop eax
mov ecx, esi
call fcn.0055c34c
push dword [ebp + 0x30]
mov ecx, esi
push ebx
push 7
pop eax
call fcn.0055c34c
push dword [ebp + 0x28]
mov ecx, esi
push dword [ebp + 0x54]
push 2
pop eax
call fcn.0055c34c
push ebx
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x3c]
push dword [ebp + 0x34]
push edi
call fcn.0057e358
add esp, 0x4c
mov dword [ebp + 0x1c], eax
cmp eax, ebx
je 0x585d90
mov ebx, dword [ebp + 0x64]
test ebx, ebx
jne 0x5857c8
mov eax, dword [ebp + 0x78]
mov ebx, dword [eax + 0x10]
and dword [ebp + 0x3c], 0
jmp 0x58591c
cmp dword [ebp + 0x2c], 0
je 0x5857dc
mov eax, dword [ebp + 0x78]
test byte [eax + 6], 1
mov eax, str.DISTINCT
je 0x5857e1
mov eax, str.GROUP_BY
push eax
call fcn.00562425
mov edi, dword [ebx]
mov edx, dword [ebp - 0x14]
lea eax, [edi + 1]
pop ecx
mov dword [ebp + 0x3c], 1
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x50], eax
test edx, edx
jle 0x585815
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
cmp dword [ecx], eax
jl 0x58580f
inc dword [ebp + 0x50]
inc eax
add ecx, 0x18
dec edx
jne 0x585807
mov esi, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x74]
call fcn.00556b18
mov esi, eax
mov eax, ecx
call fcn.00556a44
push 0
push eax
mov ecx, esi
mov eax, ebx
call fcn.0055d840
mov ecx, dword [ebp + 0x68]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x24]
push 0x35
pop eax
call fcn.0055c34c
mov eax, dword [ebp + 0x5c]
and dword [ebp + 0x48], 0
add esp, 0x10
cmp dword [ebp - 0x14], 0
mov dword [ebp + 0x64], eax
jle 0x5858b4
add eax, esi
and dword [ebp + 0x5c], 0
mov dword [ebp + 0x2c], eax
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x64]
cmp dword [eax + 0xc], ecx
jl 0x5858a5
push dword [ebp + 0x2c]
mov edi, dword [ebp + 0x74]
push dword [eax + 8]
push dword [eax]
mov eax, dword [eax + 4]
call fcn.0056c3c7
add esp, 0xc
cmp dword [ebp + 0x2c], eax
je 0x58589f
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x68]
push eax
push 0xf
pop eax
call fcn.0055c34c
pop ecx
pop ecx
inc dword [ebp + 0x64]
inc dword [ebp + 0x2c]
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
add dword [ebp + 0x5c], 0x18
cmp eax, dword [ebp - 0x14]
jl 0x585863
mov eax, dword [ebp + 0x74]
call fcn.00556ac9
mov ecx, dword [ebp + 0x68]
mov edi, eax
push edi
push dword [ebp + 0x50]
push esi
push 0x1e
pop eax
call fcn.0055c2b7
mov ecx, dword [ebp + 0x68]
push edi
push dword [ebp - 0x24]
push 0x46
pop eax
call fcn.0055c34c
mov eax, dword [ebp + 0x74]
mov edx, edi
call fcn.00556ae4
mov edi, dword [ebp + 0x50]
mov ecx, esi
call fcn.00556b3c
mov edi, dword [ebp + 0x1c]
call fcn.0055f9f4
push dword [ebp + 0x38]
mov ecx, dword [ebp + 0x68]
push dword [ebp - 0x24]
push 0x40
pop eax
call fcn.0055c34c
mov eax, dword [ebp + 0x74]
add esp, 0x1c
mov byte [ebp - 0x27], 1
call fcn.00556a44
mov esi, dword [ebp + 0x68]
mov eax, esi
call fcn.00555a93
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
call fcn.00556a44
xor eax, eax
cmp dword [ebx], eax
mov dword [ebp + 0x64], eax
jle 0x585985
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0x3c], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x64]
je 0x58595c
add ecx, eax
push ecx
push eax
push dword [ebp - 0x24]
mov ecx, esi
push 0x1c
pop eax
call fcn.0055c2b7
add esp, 0xc
jmp 0x585977
mov esi, dword [ebp + 0x74]
lea edi, [eax + ecx]
mov ecx, dword [ebp + 0x5c]
mov byte [ebp - 0x28], 1
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx]
call fcn.0055d772
mov esi, dword [ebp + 0x68]
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
add dword [ebp + 0x5c], 0x14
cmp eax, dword [ebx]
jl 0x58593a
mov edi, dword [ebp + 0xc]
push 0xfffffffffffffffa
push dword [ebp + 4]
push dword [ebx]
push edi
push dword [ebp + 0x20]
push esi
push 0x18
pop eax
call fcn.00560b2c
mov eax, esi
call fcn.00555a93
mov dword [ebp + 4], eax
inc eax
push eax
push 0
push eax
push 0x19
pop eax
mov ecx, esi
call fcn.0055c2b7
push dword [ebp + 0x20]
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x74]
call fcn.0055d6c6
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0x44]
push 2
pop eax
call fcn.0055c34c
push dword [ebp + 0x38]
mov ecx, esi
push dword [ebp + 0x14]
push 0x71
pop eax
call fcn.0055c34c
push dword [ebp + 0x28]
mov ecx, esi
push dword [ebp + 0x54]
push 2
pop eax
call fcn.0055c34c
mov eax, dword [ebp + 4]
add esp, 0x40
mov ecx, esi
call fcn.00555afc
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x74]
call fcn.0056aa10
push dword [ebp + 0x30]
xor ebx, ebx
inc ebx
push ebx
push 7
pop eax
mov ecx, esi
call fcn.0055c34c
add esp, 0x10
cmp dword [ebp + 0x3c], 0
je 0x585a38
push dword [ebp + 0x50]
mov ecx, esi
push dword [ebp - 0x24]
push 0x43
pop eax
call fcn.0055c34c
pop ecx
jmp 0x585a4b
mov edi, dword [ebp + 0x1c]
call fcn.0055f9f4
mov ecx, dword [ebp + 8]
push ebx
mov eax, esi
call fcn.0055c554
pop ecx
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0x44]
push 2
pop eax
call fcn.0055c34c
push dword [ebp + 0x38]
mov eax, ebx
push 0
mov ecx, esi
call fcn.0055c34c
mov eax, esi
call fcn.00555a93
push dword [ebp + 0x14]
mov dword [ebp + 8], eax
push ebx
push 7
pop eax
mov ecx, esi
call fcn.0055c34c
push dword [ebp + 0x44]
mov ecx, esi
push 3
pop eax
call fcn.0055c33b
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.005559cf
mov eax, esi
call fcn.00555a93
mov ebx, eax
lea eax, [ebx + 2]
push eax
push dword [ebp + 0x30]
mov ecx, esi
push 0x71
pop eax
call fcn.0055c34c
push dword [ebp + 0x44]
mov ecx, esi
push 3
pop eax
call fcn.0055c33b
mov eax, dword [ebp + 0x74]
lea edi, [ebp - 0x28]
call fcn.00562c6a
push 8
inc ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x74]
call fcn.0057987d
push dword [ebp + 8]
mov eax, dword [ebp + 0x78]
push ebx
push dword [ebp + 0x24]
push dword [ebp + 0x58]
push 0
push 0
push dword [eax]
push eax
push dword [ebp + 0x74]
mov eax, dword [ebp + 0x7c]
call fcn.005620e9
add esp, 0x5c
push dword [ebp + 0x44]
mov ecx, esi
push 3
pop eax
call fcn.0055c33b
mov edx, dword [ebp + 0x28]
mov ecx, esi
call fcn.005559cf
push dword [ebp + 0x74]
mov ebx, edi
call fcn.0056a952
push dword [ebp + 0x54]
mov ecx, esi
push 3
pop eax
call fcn.0055c33b
add esp, 0xc
jmp 0x585d37
mov esi, dword [ebp + 0x78]
and dword [ebp + 0x30], 0
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.00557c2f
mov edi, eax
pop ecx
test edi, edi
je 0x585c31
mov ebx, dword [ebp + 0x74]
mov esi, dword [edi + 0x44]
mov ecx, dword [ebx]
call fcn.005577f7
and dword [ebp + 0x54], 0
and dword [ebp + 0x1c], 0
mov esi, eax
mov eax, dword [ebx + 0x44]
mov dword [ebp + 0x28], eax
inc eax
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x14]
mov dword [ebp + 0x20], eax
mov eax, ebx
call fcn.005769ba
push dword [edi]
mov ebx, dword [edi + 0x14]
mov eax, dword [ebp + 0x74]
push 0
push esi
call fcn.0055df3f
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x585bcf
test ebx, ebx
je 0x585ba6
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 4]
jge 0x585ba8
mov ebx, eax
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x585b9a
test ebx, ebx
je 0x585bcf
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jge 0x585bcf
mov eax, dword [ebx + 0x14]
push ebx
push dword [ebp + 0x74]
mov dword [ebp + 0x20], eax
call fcn.00568fbb
pop ecx
pop ecx
mov dword [ebp + 0x54], eax
push esi
push dword [ebp + 0x20]
mov esi, dword [ebp + 0x68]
push dword [ebp + 0x28]
mov ecx, esi
push 0x26
pop eax
call fcn.0055c2b7
add esp, 0xc
cmp dword [ebp + 0x54], 0
je 0x585bfd
push 0xfffffffffffffff0
push dword [ebp + 0x54]
or eax, 0xffffffff
push esi
call fcn.0055c595
add esp, 0xc
mov eax, dword [ebp - 8]
push dword [eax + 8]
mov ecx, esi
push dword [ebp + 0x28]
push 0x1f
pop eax
call fcn.0055c34c
push dword [ebp + 0x28]
mov ecx, esi
push 0x2b
pop eax
call fcn.0055c33b
mov eax, edi
mov edi, dword [ebp + 0x74]
add esp, 0xc
mov ecx, ebx
call fcn.00562cb5
jmp 0x585cf5
and dword [ebp + 0x54], 0
mov eax, esi
call fcn.00557bbf
mov byte [ebp + 0x63], al
test al, al
je 0x585c7f
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [ebp + 0x4c]
mov ebx, dword [eax + 0x10]
push 0
push esi
call fcn.0055d458
pop ecx
pop ecx
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x30], eax
test eax, eax
je 0x585c7f
cmp byte [esi + 0x1e], 0
jne 0x585c7f
cmp byte [ebp + 0x63], 1
mov edx, dword [eax + 0xc]
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x98
mov esi, dword [ebp + 0x74]
push esi
lea ebx, [ebp - 0x28]
call fcn.0056a952
movzx ax, byte [ebp + 0x63]
movzx eax, ax
push eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x3c]
push dword [ebp + 0x34]
push esi
call fcn.0057e358
mov edi, eax
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
jne 0x585cbf
push dword [ebp + 0x4c]
mov edi, dword [ebp + 0x30]
call fcn.00556729
jmp 0x585444
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0056aa10
pop ecx
pop ecx
cmp dword [ebp + 0x54], ebx
jne 0x585ce6
cmp byte [ebp + 0x63], bl
je 0x585ce6
push dword [edi + 0x14]
mov ecx, dword [ebp + 0x68]
xor eax, eax
push ebx
inc eax
call fcn.0055c34c
pop ecx
pop ecx
call fcn.0055f9f4
lea edi, [ebp - 0x28]
mov eax, esi
call fcn.00562c6a
push 8
push dword [ebp + 0x38]
xor esi, esi
push dword [ebp + 0x18]
mov dword [ebp + 0x58], esi
push dword [ebp + 0x74]
call fcn.0057987d
push dword [ebp + 0x38]
mov eax, dword [ebp + 0x78]
push dword [ebp + 0x38]
push 0xffffffffffffffff
push esi
push esi
push esi
push dword [eax]
push eax
push dword [ebp + 0x74]
mov eax, dword [ebp + 0x7c]
call fcn.005620e9
push dword [ebp + 0x4c]
mov edi, dword [ebp + 0x30]
call fcn.00556729
mov esi, dword [ebp + 0x68]
add esp, 0x38
mov edx, dword [ebp + 0x38]
mov ecx, esi
call fcn.005559cf
mov esi, dword [ebp + 0x78]
mov ebx, dword [ebp + 0x74]
cmp dword [ebp + 0x24], 0
jl 0x585d5a
push str.DISTINCT
mov edi, ebx
call fcn.00562425
pop ecx
cmp dword [ebp + 0x58], 0
je 0x585d81
push str.ORDER_BY
mov edi, ebx
call fcn.00562425
push dword [ebp + 0x7c]
mov eax, dword [ebp + 0x40]
push dword [eax]
push dword [ebp + 0x68]
push esi
push ebx
call fcn.005624b9
add esp, 0x18
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x68]
call fcn.005559cf
and dword [ebp + 0x5c], 0
cmp dword [ebp + 0x5c], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x74]
mov dword [eax + 0x22c], ecx
jne 0x585db9
mov ecx, dword [ebp + 0x7c]
cmp byte [ecx], 5
jne 0x585db9
push dword [ebp + 0x40]
push dword [ebp + 0x34]
push eax
call fcn.00566470
add esp, 0xc
push dword [ebp - 0x18]
push dword [ebp + 0x4c]
call fcn.00551521
push dword [ebp - 8]
push dword [ebp + 0x4c]
call fcn.00551521
mov eax, dword [ebp + 0x5c]
add esp, 0x10
jmp 0x585dd9
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret