Function at 0x10066b84
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x228]
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 0x22c]
xor ecx, ecx
inc ecx
mov dword [ebx + 0x228], eax
inc eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x22c], eax
push edi
mov edi, dword [ebx]
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edi
cmp esi, eax
je 0x10067954
cmp byte [edi + 0x1e], al
jne 0x10067954
cmp dword [ebx + 0x40], eax
jne 0x10067954
push eax
push eax
push eax
push 0x15
mov eax, ebx
call fcn.10057d55
add esp, 0x10
test eax, eax
je 0x10066bfd
xor eax, eax
inc eax
jmp 0x10067956
push 0x2c
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.10087ea0
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [eax], 4
ja 0x10066c2d
push edi
mov edi, dword [esi + 0x18]
call fcn.10053b6b
and dword [esi + 0x18], 0
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
push 0
push esi
push ebx
call fcn.1006681d
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x60], eax
mov eax, dword [esi]
add esp, 0xc
cmp dword [ebx + 0x40], 0
mov dword [esp + 0x3c], eax
jne 0x100678fb
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x100678fb
movzx eax, word [esi + 6]
shr eax, 2
and eax, 1
mov edi, ebx
mov dword [esp + 0x38], eax
call fcn.100647a9
mov dword [esp + 0x14], eax
test eax, eax
je 0x100678fb
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], 1
mov edi, dword [ebp + 0x10]
movzx eax, byte [edi]
jle 0x10066cab
cmp eax, 6
je 0x10066c9f
cmp eax, 7
jne 0x10066cab
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
mov edi, ebx
jmp 0x10066e53
and dword [esp + 0x30], 0
jmp 0x10066dea
mov eax, dword [esp + 0x54]
movsx ecx, word [eax]
cmp dword [esp + 0x30], ecx
jge 0x10066df4
mov ecx, dword [esp + 0x30]
imul ecx, ecx, 0x38
lea ebx, [ecx + eax + 8]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10066de6
cmp byte [ebx + 0x14], 0
jne 0x10066de6
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.10052e87
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 8]
add dword [eax + 0x21c], ecx
mov eax, dword [esp + 0x1c]
movzx edi, word [eax + 6]
shr edi, 2
and edi, 1
push edi
push dword [esp + 0x3c]
mov eax, esi
push dword [esp + 0x38]
push dword [ebp + 8]
call fcn.10065cb7
add esp, 0x10
test eax, eax
je 0x10066d47
test edi, edi
je 0x10066d40
or word [esi + 6], 4
mov dword [esp + 0x38], 1
or dword [esp + 0x30], 0xffffffff
jmp 0x10066da5
mov eax, dword [ebx + 0x18]
and dword [esp + 0xb4], 0
and dword [esp + 0xb8], 0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x22c]
mov byte [esp + 0xac], 9
mov byte [esp + 0xad], 0
mov byte [ebx + 0x17], cl
lea ecx, [esp + 0xac]
push ecx
push edi
push eax
call fcn.10066b84
mov byte [ebx + 0x14], 1
fld qword [edi + 0x48]
add esp, 0xc
call fcn.1009f206
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x100678fb
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.10052e87
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
sub dword [eax + 0x21c], ecx
mov edi, dword [ebp + 0x10]
cmp byte [edi], 4
mov eax, dword [esi + 8]
mov dword [esp + 0x54], eax
jbe 0x10066de6
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], eax
inc dword [esp + 0x30]
cmp dword [esi + 0x1c], 0
je 0x10066cb5
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x60], eax
movzx eax, word [esi + 6]
mov ecx, eax
and ecx, 1
xor edx, edx
mov dword [esp + 0x50], ecx
cmp dword [esi + 0x1c], edx
je 0x10066e7e
cmp dword [esi + 0x24], edx
jne 0x10066e5e
xor ecx, ecx
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 0x10066e2c
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x10066e5e
cmp edx, eax
jle 0x10066e5e
mov edi, dword [ebp + 8]
push str.too_many_terms_in_compound_SELECT
call fcn.10037a66
pop ecx
jmp 0x100678fb
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, esi
call fcn.1006496e
pop ecx
pop ecx
mov ecx, dword [esp + 0xa4]
mov dword [edi + 0x228], ecx
jmp 0x10067956
and al, 5
cmp al, 1
jne 0x10066ea5
mov ebx, dword [esp + 0x3c]
push 0
push dword [esp + 0x2c]
call fcn.1005370a
mov dword [esi + 0x10], eax
mov dword [esp + 0x18], eax
pop ecx
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
mov ebx, dword [esp + 0x24]
mov edi, dword [esi + 0x10]
call fcn.10055bba
test eax, eax
jne 0x10066ec4
mov eax, dword [esp + 0x28]
test byte [eax + 0xc], 0x20
jne 0x10066ec4
and dword [esp + 0x24], 0
mov edi, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x10066f03
push edi
push ebx
call fcn.10063df0
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 0x29
push dword [esp + 0x34]
call fcn.10048356
add esp, 0x24
mov dword [esp + 0x2c], eax
mov dword [esi + 0x40], eax
jmp 0x10066f08
or dword [esp + 0x2c], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 9
jne 0x10066f27
mov ecx, dword [esp + 0x3c]
push dword [ecx]
push dword [eax + 4]
mov eax, dword [esp + 0x1c]
push 0x29
call fcn.1004833f
add esp, 0xc
mov eax, dword [esp + 0x14]
call fcn.100483f0
fld qword [0x100bbb90]
push eax
fstp qword [esi + 0x48]
mov dword [esp + 0xac], eax
push esi
mov eax, ebx
call fcn.100647d2
test byte [esi + 6], 1
pop ecx
pop ecx
je 0x10066f89
mov edi, dword [ebx + 0x44]
lea eax, [edi + 1]
mov dword [ebx + 0x44], eax
push dword [esi]
mov dword [esp + 0x38], edi
push ebx
call fcn.10063df0
push 0xfffffffffffffff0
push eax
push 0
push 0
push edi
push 0x29
push dword [esp + 0x34]
call fcn.10048356
mov ecx, dword [esp + 0x38]
add esp, 0x24
mov dl, 0x10
call fcn.100485b0
jmp 0x10066f8e
or dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x38], 0
mov edx, dword [esp + 0x10]
jne 0x10067026
test edx, edx
jne 0x1006702a
push edx
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x48]
push dword [esp + 0x60]
push ebx
call fcn.1006e1b6
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100678fb
fld qword [esi + 0x48]
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x10066fd9
fld qword [edi + 0x28]
fstp qword [esi + 0x48]
cmp dword [esp + 0x2c], 0
jl 0x10066ffb
cmp dword [esp + 0x24], 0
jne 0x10066ffb
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push 1
call fcn.100486e4
or dword [esi + 0x40], 0xffffffff
pop ecx
push dword [edi + 0x14]
mov eax, dword [ebp + 0x10]
push dword [edi + 0x10]
push 0xffffffffffffffff
push dword [esp + 0x30]
push 0
push 0
push dword [esp + 0x54]
push esi
push ebx
call fcn.10063acc
add esp, 0x24
call fcn.1006e9ca
jmp 0x100678a7
test edx, edx
je 0x10067073
mov eax, dword [esi]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
test ecx, ecx
jle 0x10067045
add eax, 0x10
xor edi, edi
mov word [eax], di
dec ecx
add eax, 0x14
test ecx, ecx
jg 0x10067038
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
test eax, eax
jle 0x1006705e
add ecx, 0x10
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x10067051
fld qword [0x100bbbe0]
fcom qword [esi + 0x48]
fnstsw ax
test ah, 5
jp 0x10067077
fstp qword [esi + 0x48]
jmp 0x10067079
fld1
jmp 0x1006706e
fstp st(0)
mov eax, dword [esp + 0x14]
call fcn.100483f0
mov dword [esp + 0x4c], eax
xor eax, eax
push 9
pop ecx
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xbc], ebx
test eax, eax
je 0x100670c5
mov eax, dword [eax]
inc eax
mov dword [esp + 0x84], eax
jmp 0x100670cd
and dword [esp + 0x84], 0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
lea eax, [esp + 0xbc]
push eax
call fcn.10055eb3
mov esi, dword [esp + 0x28]
pop ecx
lea eax, [esp + 0xbc]
push eax
call fcn.10055eb3
xor ebx, ebx
pop ecx
cmp dword [esp + 0x60], ebx
je 0x10067115
push dword [esp + 0x60]
lea eax, [esp + 0xc0]
call fcn.10055e8c
pop ecx
cmp dword [esp + 0x9c], ebx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x94], eax
jle 0x10067156
xor edi, edi
mov eax, dword [esp + 0x98]
mov eax, dword [edi + eax]
mov esi, dword [eax + 0x10]
lea ecx, [esp + 0xbc]
push ecx
call fcn.10055eb3
inc ebx
add edi, 0x10
cmp ebx, dword [esp + 0xa0]
pop ecx
jl 0x1006712e
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x100678fb
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1006765b
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
mov dword [esp + 0x7c], eax
inc eax
push ebx
push edi
mov dword [edi + 0x44], eax
call fcn.10063df0
mov esi, dword [esp + 0x1c]
push 0xfffffffffffffff0
push eax
push 0
push dword [esp + 0x98]
mov dword [esp + 0x7c], eax
push dword [esp + 0x94]
push 0x29
push esi
call fcn.10048356
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x48]
add esp, 0x24
inc eax
mov dword [esp + 0x48], eax
inc eax
mov dword [esp + 0x6c], eax
inc eax
mov dword [esp + 0x38], eax
mov dword [edi + 0x48], eax
mov eax, esi
call fcn.100483f0
inc dword [edi + 0x48]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.100483f0
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx]
add eax, ecx
lea ecx, [eax + 1]
mov dword [edi + 0x48], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx]
xor ebx, ebx
push ebx
push dword [esp + 0x70]
add ecx, eax
push ebx
push 7
mov eax, esi
mov dword [edi + 0x48], ecx
call fcn.100482c4
push ebx
push dword [esp + 0x5c]
mov eax, esi
push ebx
push 7
call fcn.100482c4
push dword [esp + 0x64]
mov eax, esi
push dword [esp + 0x40]
push 2
call fcn.1004833f
add esp, 0x2c
push ebx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x48]
push dword [esp + 0x60]
push edi
call fcn.1006e1b6
add esp, 0x14
mov dword [esp + 0x58], eax
cmp eax, ebx
je 0x100678fb
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x10067275
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x10]
and dword [esp + 0x40], 0
jmp 0x10067408
cmp dword [esp + 0x50], 0
je 0x1006728a
mov eax, dword [ebp + 0xc]
test byte [eax + 6], 1
mov eax, str.DISTINCT
je 0x1006728f
mov eax, str.GROUP_BY
push eax
call fcn.10063eac
mov edi, dword [ebx]
mov edx, dword [esp + 0x90]
lea eax, [edi + 1]
pop ecx
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
test edx, edx
jle 0x100672cf
mov ecx, dword [esp + 0x88]
add ecx, 0xc
cmp dword [ecx], eax
jl 0x100672c9
inc dword [esp + 0x2c]
inc eax
add ecx, 0x18
dec edx
jne 0x100672c0
mov esi, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
call fcn.10055f28
mov esi, eax
mov eax, ecx
call fcn.10054895
push 0
push eax
mov ecx, esi
mov eax, ebx
call fcn.10055502
lea eax, [esi + edi]
push eax
push dword [esp + 0x88]
mov eax, dword [esp + 0x24]
push 0x35
call fcn.1004833f
mov eax, dword [esp + 0x34]
and dword [esp + 0x44], 0
add esp, 0x14
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x10], eax
jle 0x1006738f
add eax, esi
and dword [esp + 0x20], 0
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x10]
cmp dword [eax + 0xc], ecx
jl 0x10067379
push dword [esp + 0x50]
mov edi, dword [ebp + 8]
push dword [eax + 4]
push dword [eax + 8]
push dword [eax]
call fcn.1005481d
add esp, 0x10
cmp dword [esp + 0x50], eax
je 0x10067371
push dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x1c]
push 0xf
call fcn.1004833f
add esp, 0xc
inc dword [esp + 0x10]
inc dword [esp + 0x50]
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
add dword [esp + 0x20], 0x18
cmp eax, dword [esp + 0x8c]
jl 0x1006732b
mov eax, dword [ebp + 8]
call fcn.10055ed9
mov edi, eax
mov eax, dword [esp + 0x14]
push edi
push dword [esp + 0x30]
push esi
push 0x1e
call fcn.100482c4
mov eax, dword [esp + 0x24]
push edi
push dword [esp + 0x90]
push 0x46
call fcn.1004833f
mov eax, dword [ebp + 8]
add esp, 0x1c
mov edx, edi
call fcn.10055ef4
mov edi, dword [esp + 0x2c]
mov ecx, esi
call fcn.10055f4c
mov edi, dword [esp + 0x58]
call fcn.1006e9ca
push dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x80]
push 0x40
call fcn.1004833f
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [esp + 0x79], 1
call fcn.10054895
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
call fcn.10054895
xor eax, eax
cmp dword [ebx], eax
mov dword [esp + 0x10], eax
jle 0x10067478
mov dword [esp + 0x20], eax
cmp dword [esp + 0x40], 0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
je 0x1006744d
add ecx, eax
push ecx
push eax
push dword [esp + 0x84]
mov eax, esi
push 0x1c
call fcn.100482c4
add esp, 0x10
jmp 0x10067467
lea edi, [eax + ecx]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x78], 1
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx]
mov ecx, dword [ebp + 8]
call fcn.100553e3
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add dword [esp + 0x20], 0x14
cmp eax, dword [ebx]
jl 0x10067425
mov edi, dword [esp + 0x70]
push 0xfffffffffffffffa
push dword [esp + 0x68]
push dword [ebx]
push edi
push dword [esp + 0x6c]
push 0x18
push esi
call fcn.10048356
mov eax, dword [esi + 0x1c]
add esp, 0x1c
mov dword [esp + 0x64], eax
inc eax
push eax
push 0
push eax
push 0x19
mov eax, esi
call fcn.100482c4
push dword [esp + 0x6c]
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
call fcn.100548b3
add esp, 0x14
push dword [esp + 0x74]
mov eax, esi
push dword [esp + 0x3c]
push 2
call fcn.1004833f
add esp, 0xc
push dword [esp + 0x4c]
mov eax, esi
push dword [esp + 0x70]
push 0x71
call fcn.1004833f
add esp, 0xc
push dword [esp + 0x44]
mov eax, esi
push dword [esp + 0x20]
push 2
call fcn.1004833f
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x70]
add esp, 0xc
mov ecx, esi
call fcn.100485a0
lea eax, [esp + 0x78]
push eax
push dword [ebp + 8]
call fcn.100669af
push 0
push dword [esp + 0x54]
xor ebx, ebx
inc ebx
push ebx
push 7
mov eax, esi
call fcn.100482c4
add esp, 0x18
cmp dword [esp + 0x40], 0
je 0x10067547
push dword [esp + 0x2c]
mov eax, esi
push dword [esp + 0x80]
push 0x43
call fcn.1004833f
add esp, 0xc
jmp 0x1006755d
mov edi, dword [esp + 0x58]
call fcn.1006e9ca
mov ecx, dword [esp + 0x68]
push ebx
mov eax, esi
call fcn.100486e4
pop ecx
push dword [esp + 0x74]
mov eax, esi
push dword [esp + 0x3c]
push 2
call fcn.1004833f
add esp, 0xc
xor edi, edi
push edi
push dword [esp + 0x50]
mov eax, esi
push edi
push ebx
call fcn.100482c4
mov eax, dword [esi + 0x1c]
push edi
push dword [esp + 0x80]
mov dword [esp + 0x80], eax
push ebx
push 7
mov eax, esi
call fcn.100482c4
push dword [esp + 0x58]
mov eax, esi
push 3
call fcn.1004832a
mov edx, dword [esp + 0x9c]
mov ecx, esi
call fcn.1004843c
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 2]
push eax
push dword [esp + 0x74]
mov eax, esi
push 0x71
call fcn.1004833f
add esp, 0x34
push dword [esp + 0x38]
mov eax, esi
push 3
call fcn.1004832a
mov eax, dword [ebp + 8]
lea edi, [esp + 0x80]
call fcn.10066965
push 8
inc ebx
push ebx
push dword [esp + 0x70]
push dword [ebp + 8]
call fcn.1005584c
push dword [esp + 0x80]
mov eax, dword [ebp + 0xc]
push ebx
push dword [esp + 0x54]
push dword [esp + 0x48]
push 0
push 0
push dword [eax]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
call fcn.10063acc
add esp, 0x3c
push dword [esp + 0x38]
mov eax, esi
push 3
call fcn.1004832a
mov edx, dword [esp + 0x4c]
mov ecx, esi
call fcn.1004843c
push dword [ebp + 8]
mov ebx, edi
call fcn.100668a2
add esp, 0xc
push dword [esp + 0x1c]
mov eax, esi
push 3
call fcn.1004832a
pop ecx
jmp 0x10067895
mov esi, dword [ebp + 0xc]
and dword [esp + 0x48], 0
lea eax, [esp + 0x78]
push eax
mov eax, esi
call fcn.10066203
mov edi, eax
pop ecx
test edi, edi
je 0x10067773
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 0x44]
mov ecx, dword [ebx]
call fcn.10062f1d
and dword [esp + 0x1c], 0
and dword [esp + 0x58], 0
mov esi, eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x44], eax
inc eax
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x5c], eax
mov eax, ebx
call fcn.1005b040
push dword [edi]
mov ebx, dword [edi + 0x14]
mov eax, dword [ebp + 8]
push 0
push esi
call fcn.10057dd4
mov eax, dword [edi + 0x10]
mov ebx, dword [esp + 0x64]
add esp, 0xc
test eax, eax
je 0x10067707
cmp byte [eax + 0x1a], 0
jne 0x100676de
test ebx, ebx
je 0x100676dc
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 4]
jge 0x100676de
mov ebx, eax
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x100676ca
test ebx, ebx
je 0x10067707
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jge 0x10067707
mov eax, dword [ebx + 0x14]
push ebx
push dword [ebp + 8]
mov dword [esp + 0x64], eax
call fcn.1005b386
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x60]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x4c]
mov eax, esi
push 0x26
call fcn.100482c4
add esp, 0x10
cmp dword [esp + 0x1c], 0
je 0x10067739
push 0xfffffffffffffff0
push dword [esp + 0x20]
or eax, 0xffffffff
push esi
call fcn.10048723
add esp, 0xc
mov eax, dword [esp + 0x98]
push dword [eax + 8]
mov eax, esi
push dword [esp + 0x48]
push 0x1f
call fcn.1004833f
add esp, 0xc
push dword [esp + 0x44]
mov eax, esi
push 0x2b
call fcn.1004832a
pop ecx
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov ecx, ebx
call fcn.10066b2b
jmp 0x1006784b
and dword [esp + 0x1c], 0
mov eax, esi
call fcn.10066193
mov byte [esp + 0x1b], al
test al, al
je 0x100677c7
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [esp + 0x28]
mov ebx, dword [eax + 0x10]
push 0
push esi
call fcn.1005370a
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], eax
test eax, eax
je 0x100677c7
cmp byte [esi + 0x1e], 0
jne 0x100677c7
cmp byte [esp + 0x1b], 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 + 8]
push esi
lea ebx, [esp + 0x7c]
call fcn.100668a2
movzx ax, byte [esp + 0x1f]
pop ecx
movzx eax, ax
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x48]
push dword [esp + 0x60]
push esi
call fcn.1006e1b6
mov edi, eax
xor ebx, ebx
add esp, 0x14
cmp edi, ebx
jne 0x1006780f
push dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
call fcn.10053b6b
jmp 0x10066e58
lea eax, [esp + 0x78]
push eax
push esi
call fcn.100669af
pop ecx
pop ecx
cmp dword [esp + 0x1c], ebx
jne 0x1006783b
cmp byte [esp + 0x1b], bl
je 0x1006783b
mov eax, dword [esp + 0x14]
push ebx
push dword [edi + 0x14]
push ebx
push 1
call fcn.100482c4
add esp, 0x10
call fcn.1006e9ca
lea edi, [esp + 0x78]
mov eax, esi
call fcn.10066965
push 8
push dword [esp + 0x50]
xor esi, esi
push dword [esp + 0x68]
mov dword [esp + 0x30], esi
push dword [ebp + 8]
call fcn.1005584c
push dword [esp + 0x5c]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x60]
push 0xffffffffffffffff
push esi
push esi
push esi
push dword [eax]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
call fcn.10063acc
mov edi, dword [esp + 0x7c]
add esp, 0x34
push dword [esp + 0x28]
call fcn.10053b6b
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
pop ecx
mov ecx, esi
call fcn.1004843c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [esp + 0x34], 0
jl 0x100678bb
push str.DISTINCT
mov edi, ebx
call fcn.10063eac
pop ecx
cmp dword [esp + 0x24], 0
je 0x100678e6
push str.ORDER_BY
mov edi, ebx
call fcn.10063eac
mov eax, dword [esp + 0x40]
pop ecx
push dword [ebp + 0x10]
push dword [eax]
push dword [esp + 0x1c]
push esi
push ebx
call fcn.10063f43
add esp, 0x14
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x14]
call fcn.1004843c
and dword [esp + 0x20], 0
cmp dword [esp + 0x20], 0
mov ecx, dword [esp + 0xa4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x228], ecx
jne 0x1006792b
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 5
jne 0x1006792b
push dword [esp + 0x3c]
push dword [esp + 0x58]
push eax
call fcn.10064357
add esp, 0xc
push dword [esp + 0x88]
push dword [esp + 0x2c]
call fcn.10035f73
push dword [esp + 0xa0]
push dword [esp + 0x34]
call fcn.10035f73
mov eax, dword [esp + 0x30]
add esp, 0x10
jmp 0x10067956
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret