Function at 0x47f0e0
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 0x47fcd9
cmp byte [edi + 0x1e], al
jne 0x47fcd9
cmp dword [ebx + 0x40], eax
jne 0x47fcd9
push eax
push eax
push eax
push 0x15
mov eax, ebx
call fcn.00457dc9
add esp, 0x10
test eax, eax
je 0x47f152
xor eax, eax
inc eax
jmp 0x47fcdb
push 0x2c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048e0e0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
cmp byte [eax], 4
ja 0x47f181
push edi
mov edi, dword [esi + 0x18]
call fcn.0045062b
and dword [esi + 0x18], 0
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
push 0
push esi
push ebx
call fcn.0047f08d
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 0x47fc92
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x1e], 0
jne 0x47fc92
movzx eax, word [esi + 6]
shr eax, 2
and eax, 1
mov edi, ebx
mov dword [ebp + 0x44], eax
call fcn.0045c77d
mov dword [ebp + 0x68], eax
test eax, eax
je 0x47fc92
mov eax, dword [ebp + 0x40]
push dword [eax]
mov eax, dword [ebp + 0x7c]
call fcn.0045906f
pop ecx
test eax, eax
jne 0x47fc92
and dword [ebp + 0x48], eax
jmp 0x47f2dc
mov eax, dword [ebp + 0x34]
movsx ecx, word [eax]
cmp dword [ebp + 0x48], ecx
jge 0x47f2e6
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 0x47f2d9
cmp byte [ebx + 0x14], 0
jne 0x47f2d9
mov eax, esi
call fcn.0045052e
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.004605ea
add esp, 0x10
test eax, eax
je 0x47f26c
test edi, edi
je 0x47f266
or word [esi + 6], 4
mov dword [ebp + 0x44], 1
or dword [ebp + 0x48], 0xffffffff
jmp 0x47f2a8
push dword [ebx + 0x18]
lea eax, [ebp - 0x64]
push 9
call fcn.00451780
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.0047f0e0
mov byte [ebx + 0x14], 1
fld qword [edi + 0x48]
add esp, 0x14
call fcn.0048e586
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x1e], 0
jne 0x47fc92
mov eax, esi
call fcn.0045052e
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 0x47f2d9
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x48]
cmp dword [esi + 0x1c], 0
je 0x47f1f2
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 0x47f36a
cmp dword [esi + 0x24], 0
jne 0x47f34c
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 0x47f31b
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x47f34c
cmp edx, eax
jle 0x47f34c
mov edi, dword [ebp + 0x74]
push str.too_many_terms_in_compound_SELECT
call fcn.00454005
pop ecx
jmp 0x47fc92
push dword [ebp + 0x7c]
mov edi, dword [ebp + 0x74]
push edi
mov eax, esi
call fcn.004669e7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x22c], ecx
jmp 0x47fcdb
and al, 5
cmp al, 1
jne 0x47f38e
mov ebx, dword [ebp + 0x40]
push 0
push dword [ebp + 0x4c]
call fcn.00457359
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.00450969
test eax, eax
jne 0x47f3aa
mov eax, dword [ebp + 0x4c]
test byte [eax + 0xc], 0x20
jne 0x47f3aa
and dword [ebp + 0x58], 0
mov edi, dword [ebp + 0x58]
mov ebx, dword [ebp + 0x74]
test edi, edi
je 0x47f3e7
push edi
push ebx
call fcn.00463e8a
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.0045aa2d
add esp, 0x20
mov dword [ebp + 0x50], eax
mov dword [esi + 0x40], eax
jmp 0x47f3eb
or dword [ebp + 0x50], 0xffffffff
mov eax, dword [ebp + 0x7c]
cmp byte [eax], 9
jne 0x47f408
mov ecx, dword [ebp + 0x40]
push dword [ecx]
mov ecx, dword [ebp + 0x68]
push dword [eax + 4]
push 0x29
pop eax
call fcn.0045624d
pop ecx
pop ecx
mov eax, dword [ebp + 0x68]
call fcn.00456260
fld qword [0x4b2090]
mov dword [ebp - 0x30], eax
fstp qword [esi + 0x48]
push eax
mov eax, esi
mov ecx, ebx
call fcn.0045c7a6
test byte [esi + 6], 1
pop ecx
je 0x47f463
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.00463e8a
push 0xfffffffffffffff0
push eax
push 0
push 0
push edi
push dword [ebp + 0x68]
push 0x29
pop eax
call fcn.0045aa2d
mov ecx, dword [ebp + 0x68]
add esp, 0x20
mov dl, 0x10
call fcn.0044f9e9
jmp 0x47f467
or dword [ebp + 0x24], 0xffffffff
cmp dword [ebp + 0x44], 0
mov edi, dword [ebp + 0x64]
jne 0x47f4ec
test edi, edi
jne 0x47f4f0
push edi
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x3c]
push dword [ebp + 0x34]
push ebx
call fcn.00478259
mov edi, eax
add esp, 0x14
test edi, edi
je 0x47fc92
fld qword [esi + 0x48]
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x47f4a5
fld qword [edi + 0x28]
fstp qword [esi + 0x48]
cmp dword [ebp + 0x50], 0
jl 0x47f4c3
cmp dword [ebp + 0x58], 0
jne 0x47f4c3
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x68]
push 1
call fcn.00456455
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.0045bfea
add esp, 0x24
call fcn.004598f5
jmp 0x47fc49
test edi, edi
je 0x47f539
mov eax, dword [esi]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
test ecx, ecx
jle 0x47f50b
add eax, 0x10
xor edx, edx
mov word [eax], dx
dec ecx
add eax, 0x14
test ecx, ecx
jg 0x47f4fe
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
test eax, eax
jle 0x47f524
add ecx, 0x10
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x47f517
fld qword [0x4ce9c8]
fcom qword [esi + 0x48]
fnstsw ax
test ah, 5
jp 0x47f53d
fstp qword [esi + 0x48]
jmp 0x47f53f
fld1
jmp 0x47f534
fstp st(0)
mov eax, dword [ebp + 0x68]
call fcn.00456260
push 0x24
mov dword [ebp + 0x38], eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0048e0e0
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 0x47f575
mov eax, dword [edi]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x47f579
and dword [ebp - 0x1c], 0
mov esi, dword [ebp + 0x40]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x20], edi
call fcn.0045ea39
mov esi, dword [ebp + 0x58]
lea eax, [ebp - 0x54]
push eax
call fcn.0045ea39
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
je 0x47f5a9
push dword [ebp + 0x18]
lea eax, [ebp - 0x54]
call fcn.0045ea12
pop ecx
cmp dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jle 0x47f5d2
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.0045ea39
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 4]
pop ecx
jl 0x47f5b6
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x1e], 0
jne 0x47fc92
mov ebx, dword [ebp + 0x64]
test ebx, ebx
je 0x47fa34
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.00463e8a
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.0045aa2d
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.00456260
inc dword [edi + 0x48]
mov dword [ebp + 0x10], eax
mov eax, dword [edi + 0x48]
mov dword [ebp + 0x54], eax
mov eax, esi
call fcn.00456260
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.0045624d
push dword [ebp + 0x30]
mov ecx, esi
push ebx
push 7
pop eax
call fcn.0045624d
push dword [ebp + 0x28]
mov ecx, esi
push dword [ebp + 0x54]
push 2
pop eax
call fcn.0045624d
push ebx
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x3c]
push dword [ebp + 0x34]
push edi
call fcn.00478259
add esp, 0x4c
mov dword [ebp + 0x1c], eax
cmp eax, ebx
je 0x47fc92
mov ebx, dword [ebp + 0x64]
test ebx, ebx
jne 0x47f6ca
mov eax, dword [ebp + 0x78]
mov ebx, dword [eax + 0x10]
and dword [ebp + 0x3c], 0
jmp 0x47f81e
cmp dword [ebp + 0x2c], 0
je 0x47f6de
mov eax, dword [ebp + 0x78]
test byte [eax + 6], 1
mov eax, str.DISTINCT
je 0x47f6e3
mov eax, str.GROUP_BY
push eax
call fcn.0045c326
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 0x47f717
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
cmp dword [ecx], eax
jl 0x47f711
inc dword [ebp + 0x50]
inc eax
add ecx, 0x18
dec edx
jne 0x47f709
mov esi, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x74]
call fcn.00450a1a
mov esi, eax
mov eax, ecx
call fcn.00450946
push 0
push eax
mov ecx, esi
mov eax, ebx
call fcn.00457741
mov ecx, dword [ebp + 0x68]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x24]
push 0x35
pop eax
call fcn.0045624d
mov eax, dword [ebp + 0x5c]
and dword [ebp + 0x48], 0
add esp, 0x10
cmp dword [ebp - 0x14], 0
mov dword [ebp + 0x64], eax
jle 0x47f7b6
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 0x47f7a7
push dword [ebp + 0x2c]
mov edi, dword [ebp + 0x74]
push dword [eax + 8]
push dword [eax]
mov eax, dword [eax + 4]
call fcn.004662c8
add esp, 0xc
cmp dword [ebp + 0x2c], eax
je 0x47f7a1
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x68]
push eax
push 0xf
pop eax
call fcn.0045624d
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 0x47f765
mov eax, dword [ebp + 0x74]
call fcn.004509cb
mov ecx, dword [ebp + 0x68]
mov edi, eax
push edi
push dword [ebp + 0x50]
push esi
push 0x1e
pop eax
call fcn.004561b8
mov ecx, dword [ebp + 0x68]
push edi
push dword [ebp - 0x24]
push 0x46
pop eax
call fcn.0045624d
mov eax, dword [ebp + 0x74]
mov edx, edi
call fcn.004509e6
mov edi, dword [ebp + 0x50]
mov ecx, esi
call fcn.00450a3e
mov edi, dword [ebp + 0x1c]
call fcn.004598f5
push dword [ebp + 0x38]
mov ecx, dword [ebp + 0x68]
push dword [ebp - 0x24]
push 0x40
pop eax
call fcn.0045624d
mov eax, dword [ebp + 0x74]
add esp, 0x1c
mov byte [ebp - 0x27], 1
call fcn.00450946
mov esi, dword [ebp + 0x68]
mov eax, esi
call fcn.0044f992
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
call fcn.00450946
xor eax, eax
cmp dword [ebx], eax
mov dword [ebp + 0x64], eax
jle 0x47f887
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0x3c], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x64]
je 0x47f85e
add ecx, eax
push ecx
push eax
push dword [ebp - 0x24]
mov ecx, esi
push 0x1c
pop eax
call fcn.004561b8
add esp, 0xc
jmp 0x47f879
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.00457673
mov esi, dword [ebp + 0x68]
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
add dword [ebp + 0x5c], 0x14
cmp eax, dword [ebx]
jl 0x47f83c
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.0045aa2d
mov eax, esi
call fcn.0044f992
mov dword [ebp + 4], eax
inc eax
push eax
push 0
push eax
push 0x19
pop eax
mov ecx, esi
call fcn.004561b8
push dword [ebp + 0x20]
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x74]
call fcn.004575c7
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0x44]
push 2
pop eax
call fcn.0045624d
push dword [ebp + 0x38]
mov ecx, esi
push dword [ebp + 0x14]
push 0x71
pop eax
call fcn.0045624d
push dword [ebp + 0x28]
mov ecx, esi
push dword [ebp + 0x54]
push 2
pop eax
call fcn.0045624d
mov eax, dword [ebp + 4]
add esp, 0x40
mov ecx, esi
call fcn.0044f9fb
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x74]
call fcn.00464911
push dword [ebp + 0x30]
xor ebx, ebx
inc ebx
push ebx
push 7
pop eax
mov ecx, esi
call fcn.0045624d
add esp, 0x10
cmp dword [ebp + 0x3c], 0
je 0x47f93a
push dword [ebp + 0x50]
mov ecx, esi
push dword [ebp - 0x24]
push 0x43
pop eax
call fcn.0045624d
pop ecx
jmp 0x47f94d
mov edi, dword [ebp + 0x1c]
call fcn.004598f5
mov ecx, dword [ebp + 8]
push ebx
mov eax, esi
call fcn.00456455
pop ecx
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0x44]
push 2
pop eax
call fcn.0045624d
push dword [ebp + 0x38]
mov eax, ebx
push 0
mov ecx, esi
call fcn.0045624d
mov eax, esi
call fcn.0044f992
push dword [ebp + 0x14]
mov dword [ebp + 8], eax
push ebx
push 7
pop eax
mov ecx, esi
call fcn.0045624d
push dword [ebp + 0x44]
mov ecx, esi
push 3
pop eax
call fcn.0045623c
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.0044f8ce
mov eax, esi
call fcn.0044f992
mov ebx, eax
lea eax, [ebx + 2]
push eax
push dword [ebp + 0x30]
mov ecx, esi
push 0x71
pop eax
call fcn.0045624d
push dword [ebp + 0x44]
mov ecx, esi
push 3
pop eax
call fcn.0045623c
mov eax, dword [ebp + 0x74]
lea edi, [ebp - 0x28]
call fcn.0045cb6b
push 8
inc ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x74]
call fcn.0047377e
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.0045bfea
add esp, 0x5c
push dword [ebp + 0x44]
mov ecx, esi
push 3
pop eax
call fcn.0045623c
mov edx, dword [ebp + 0x28]
mov ecx, esi
call fcn.0044f8ce
push dword [ebp + 0x74]
mov ebx, edi
call fcn.00464853
push dword [ebp + 0x54]
mov ecx, esi
push 3
pop eax
call fcn.0045623c
add esp, 0xc
jmp 0x47fc39
mov esi, dword [ebp + 0x78]
and dword [ebp + 0x30], 0
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.00451b31
mov edi, eax
pop ecx
test edi, edi
je 0x47fb33
mov ebx, dword [ebp + 0x74]
mov esi, dword [edi + 0x44]
mov ecx, dword [ebx]
call fcn.004516f9
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.004708bb
push dword [edi]
mov ebx, dword [edi + 0x14]
mov eax, dword [ebp + 0x74]
push 0
push esi
call fcn.00457e40
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x47fad1
test ebx, ebx
je 0x47faa8
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 4]
jge 0x47faaa
mov ebx, eax
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x47fa9c
test ebx, ebx
je 0x47fad1
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jge 0x47fad1
mov eax, dword [ebx + 0x14]
push ebx
push dword [ebp + 0x74]
mov dword [ebp + 0x20], eax
call fcn.00462ebc
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.004561b8
add esp, 0xc
cmp dword [ebp + 0x54], 0
je 0x47faff
push 0xfffffffffffffff0
push dword [ebp + 0x54]
or eax, 0xffffffff
push esi
call fcn.00456496
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.0045624d
push dword [ebp + 0x28]
mov ecx, esi
push 0x2b
pop eax
call fcn.0045623c
mov eax, edi
mov edi, dword [ebp + 0x74]
add esp, 0xc
mov ecx, ebx
call fcn.0045cbb6
jmp 0x47fbf7
and dword [ebp + 0x54], 0
mov eax, esi
call fcn.00451ac1
mov byte [ebp + 0x63], al
test al, al
je 0x47fb81
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.00457359
pop ecx
pop ecx
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x30], eax
test eax, eax
je 0x47fb81
cmp byte [esi + 0x1e], 0
jne 0x47fb81
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.00464853
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.00478259
mov edi, eax
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
jne 0x47fbc1
push dword [ebp + 0x4c]
mov edi, dword [ebp + 0x30]
call fcn.0045062b
jmp 0x47f346
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00464911
pop ecx
pop ecx
cmp dword [ebp + 0x54], ebx
jne 0x47fbe8
cmp byte [ebp + 0x63], bl
je 0x47fbe8
push dword [edi + 0x14]
mov ecx, dword [ebp + 0x68]
xor eax, eax
push ebx
inc eax
call fcn.0045624d
pop ecx
pop ecx
call fcn.004598f5
lea edi, [ebp - 0x28]
mov eax, esi
call fcn.0045cb6b
push 8
push dword [ebp + 0x38]
xor esi, esi
push dword [ebp + 0x18]
mov dword [ebp + 0x58], esi
push dword [ebp + 0x74]
call fcn.0047377e
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.0045bfea
push dword [ebp + 0x4c]
mov edi, dword [ebp + 0x30]
call fcn.0045062b
mov esi, dword [ebp + 0x68]
add esp, 0x38
mov edx, dword [ebp + 0x38]
mov ecx, esi
call fcn.0044f8ce
mov esi, dword [ebp + 0x78]
mov ebx, dword [ebp + 0x74]
cmp dword [ebp + 0x24], 0
jl 0x47fc5c
push str.DISTINCT
mov edi, ebx
call fcn.0045c326
pop ecx
cmp dword [ebp + 0x58], 0
je 0x47fc83
push str.ORDER_BY
mov edi, ebx
call fcn.0045c326
push dword [ebp + 0x7c]
mov eax, dword [ebp + 0x40]
push dword [eax]
push dword [ebp + 0x68]
push esi
push ebx
call fcn.0045c3ba
add esp, 0x18
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x68]
call fcn.0044f8ce
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 0x47fcbb
mov ecx, dword [ebp + 0x7c]
cmp byte [ecx], 5
jne 0x47fcbb
push dword [ebp + 0x40]
push dword [ebp + 0x34]
push eax
call fcn.00460371
add esp, 0xc
push dword [ebp - 0x18]
push dword [ebp + 0x4c]
call fcn.0044b423
push dword [ebp - 8]
push dword [ebp + 0x4c]
call fcn.0044b423
mov eax, dword [ebp + 0x5c]
add esp, 0x10
jmp 0x47fcdb
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret