Function at 0x51df18
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 1
mov eax, dword [ebx + 0x1e4]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0x1e8]
inc dword [ebx + 0x1e8]
mov dword [ebx + 0x1e4], edx
test edi, edi
mov ecx, dword [ebx]
mov dword [ebp - 0x38], ecx
je 0x51df64
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 0x40], 0
jne 0x51df64
cmp dword [ebx + 0x44], 0
je 0x51df6e
mov eax, 1
jmp 0x51f269
push 0
push 0
push 0
push 0x15
push ebx
call fcn.0050a428
add esp, 0x14
test eax, eax
je 0x51df8d
mov eax, 1
jmp 0x51f269
push 0x28
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.005444d8
add esp, 0xc
mov ecx, dword [ebp + 0x10]
movzx ecx, byte [ecx]
cmp ecx, 4
jg 0x51dfc6
mov eax, dword [edi + 0x38]
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00504f24
add esp, 8
xor ecx, ecx
mov dword [edi + 0x38], ecx
and word [edi + 6], 0xfffe
push 0
push edi
push ebx
call fcn.0051db18
add esp, 0xc
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x20], eax
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x18], edx
mov ecx, dword [edi]
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x44], 0
jne 0x51f214
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x40], 0
je 0x51dffb
jmp 0x51f214
test byte [edi + 6], 4
setne dl
and edx, 1
mov dword [ebp - 0x10], edx
push ebx
call fcn.0051b250
pop ecx
mov esi, eax
test esi, esi
je 0x51f214
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
call fcn.00519f7c
add esp, 0xc
test eax, eax
je 0x51e035
jmp 0x51f214
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x51e324
mov eax, dword [ebp - 4]
shl eax, 6
add eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x51e321
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x18], 0
je 0x51e095
mov edx, dword [ebp - 0x40]
test byte [edx + 0x21], 4
jne 0x51e321
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x18]
push eax
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x1c]
push ecx
push 2
push esi
call fcn.004f5c08
add esp, 0x10
jmp 0x51e321
push edi
call fcn.00503fd0
pop ecx
add dword [ebx + 0x1e0], eax
mov eax, dword [ebp - 0x44]
test byte [eax + 6], 4
setne dl
and edx, 1
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x48]
push ecx
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
push edi
push ebx
call fcn.0051ca18
add esp, 0x14
test eax, eax
je 0x51e0ea
cmp dword [ebp - 0x48], 0
je 0x51e0de
mov dword [ebp - 0x10], 1
or word [edi + 6], 4
mov dword [ebp - 4], 0xffffffff
jmp 0x51e2ee
mov ecx, dword [ebp - 0x18]
cmp word [ecx], 1
jne 0x51e229
test byte [edi + 7], 1
jne 0x51e229
inc dword [ebx + 0x4c]
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x1c], eax
inc dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x50], ecx
push 0xffffffffffffffff
push ebx
call fcn.0050e144
add esp, 8
push 1
push esi
call fcn.004f5bcc
add esp, 8
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x24]
push edx
push 0x2c
push esi
call fcn.004f5be8
add esp, 0xc
mov dword [ebp - 0x4c], eax
push 1
push esi
call fcn.004f5fcc
add esp, 8
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x50]
push edx
push 0
push 7
push esi
call fcn.004f5c08
add esp, 0x10
push 1
push esi
call fcn.004f5fcc
mov ecx, dword [ebp - 0x40]
add esp, 8
lea edx, [ebp - 0x134]
mov eax, dword [ecx + 0x1c]
push eax
push 0xa
push edx
call fcn.005197d4
mov ecx, dword [ebp - 0x40]
add esp, 0xc
mov al, byte [ebx + 0x1e8]
lea edx, [ebp - 0x134]
mov byte [ecx + 0x22], al
push edx
mov ecx, dword [ebp - 0x44]
push ecx
push ebx
call fcn.0051df18
add esp, 0xc
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x20]
call fcn.00544790
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x10]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x40]
or byte [ecx + 0x21], 4
mov eax, dword [ebp - 0x12c]
push eax
mov edx, dword [ebp - 0x4c]
push edx
push esi
call fcn.004f5f8c
add esp, 0xc
mov ecx, dword [ebp - 0x128]
push ecx
mov eax, dword [ebp - 0x4c]
push eax
push esi
call fcn.004f5fac
add esp, 0xc
mov edx, dword [ebp - 0x50]
push edx
push 1
push 7
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x1c]
push eax
push 4
push esi
call fcn.004f5be8
add esp, 0xc
mov edx, dword [ebp - 0x4c]
dec edx
push edx
push esi
call fcn.004f5fe8
add esp, 8
push ebx
call fcn.00507e44
pop ecx
jmp 0x51e2ee
xor ecx, ecx
mov dword [ebp - 0x58], ecx
inc dword [ebx + 0x4c]
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x1c], eax
push eax
push 0
push 7
push esi
call fcn.004f5c08
mov dword [ebp - 0x54], eax
add esp, 0x10
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x40]
test byte [edx + 0x21], 2
jne 0x51e268
push ebx
call fcn.00505308
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x134]
mov eax, dword [ecx + 0x24]
push eax
push 9
push edx
call fcn.005197d4
mov ecx, dword [ebp - 0x40]
add esp, 0xc
mov al, byte [ebx + 0x1e8]
lea edx, [ebp - 0x134]
mov byte [ecx + 0x22], al
push edx
mov ecx, dword [ebp - 0x44]
push ecx
push ebx
call fcn.0051df18
add esp, 0xc
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x20]
call fcn.00544790
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x10]
mov dword [ecx + 0x1c], eax
cmp dword [ebp - 0x58], 0
je 0x51e2c7
mov ecx, dword [ebp - 0x58]
push ecx
push esi
call fcn.004f5fe8
add esp, 8
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x1c]
push edx
push 3
push esi
call fcn.004f5be8
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push esi
call fcn.004f5f6c
add esp, 0xc
push ebx
call fcn.00507e44
pop ecx
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x40], 0
je 0x51e2fc
jmp 0x51f214
push edi
call fcn.00503fd0
pop ecx
sub dword [ebx + 0x1e0], eax
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx]
cmp eax, 4
jle 0x51e321
mov edx, dword [edi + 0x38]
mov dword [ebp - 0x20], edx
inc dword [ebp - 4]
cmp dword [edi + 0x3c], 0
jne 0x51e339
mov ecx, dword [ebp - 0x18]
movsx eax, word [ecx]
cmp eax, dword [ebp - 4]
jg 0x51e03f
mov edx, dword [edi]
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + 0x2c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x24], eax
mov edx, dword [edi + 0x34]
mov dword [ebp - 0x28], edx
test byte [edi + 6], 1
setne cl
and ecx, 1
mov byte [ebp - 0xfc], cl
cmp dword [edi + 0x3c], 0
je 0x51e3f6
cmp dword [edi + 0x44], 0
jne 0x51e3d4
xor eax, eax
mov dword [ebp - 0x60], eax
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], edi
cmp dword [ebp - 0x5c], 0
je 0x51e3aa
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x44], edi
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x5c], edx
inc dword [ebp - 0x64]
cmp dword [ebp - 0x5c], 0
jne 0x51e383
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x68]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x51e3d4
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jle 0x51e3d4
push str.too_many_terms_in_compound_SELECT
push ebx
call fcn.004df968
add esp, 8
jmp 0x51f214
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push ebx
call fcn.0051b458
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x1e4], eax
mov eax, dword [ebp - 0x2c]
jmp 0x51f269
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [edi + 0x30]
push ecx
call fcn.00507900
add esp, 8
test eax, eax
jne 0x51e40f
xor ecx, ecx
mov dword [ebp - 0x20], ecx
movzx eax, word [edi + 6]
and eax, 5
dec eax
jne 0x51e451
mov edx, dword [edi]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00507900
add esp, 8
test eax, eax
jne 0x51e451
and word [edi + 6], 0xfffe
push 0
mov eax, dword [edi]
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00504930
mov dword [edi + 0x30], eax
add esp, 0xc
mov ecx, dword [edi + 0x30]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x51e49e
mov edx, dword [ebp - 0x20]
push edx
push ebx
call fcn.0051a4c8
add esp, 8
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebx + 0x48]
inc dword [ebx + 0x48]
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], ecx
push 0xfffffffffffffff0
mov edx, dword [ebp - 0x6c]
push edx
push 0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
add eax, 2
push eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
push ecx
push 0x2a
push esi
call fcn.004f5c28
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov dword [edi + 0x18], eax
jmp 0x51e4a5
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
cmp ecx, 9
jne 0x51e4c9
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
push eax
push 0x2a
push esi
call fcn.004f5c08
add esp, 0x10
push esi
call fcn.004f5ce8
pop ecx
mov dword [ebp - 0x34], eax
xor edx, edx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], 0x43e00000
mov ecx, dword [ebp - 0x34]
push ecx
push edi
push ebx
call fcn.0051b288
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x51e50e
cmp dword [ebp - 0x30], 0
jl 0x51e50e
mov eax, dword [ebp - 0x30]
push eax
push esi
call fcn.004f6338
add esp, 8
mov byte [eax], 0x2b
or word [edi + 6], 0x40
test byte [edi + 6], 1
je 0x51e55f
mov edx, dword [ebx + 0x48]
inc dword [ebx + 0x48]
mov dword [ebp - 0xf8], edx
push 0xfffffffffffffff0
mov ecx, dword [edi]
push ecx
push ebx
call fcn.0051a4c8
add esp, 8
push eax
push 0
push 0
mov eax, dword [ebp - 0xf8]
push eax
push 0x2a
push esi
call fcn.004f5c28
add esp, 0x1c
mov dword [ebp - 0xf4], eax
push 8
push esi
call fcn.004f5fcc
add esp, 8
mov byte [ebp - 0xfb], 3
jmp 0x51e566
mov byte [ebp - 0xfb], 0
cmp dword [ebp - 0x10], 0
jne 0x51e665
cmp dword [ebp - 0x24], 0
jne 0x51e665
cmp byte [ebp - 0xfc], 0
je 0x51e587
mov edx, dword [edi]
jmp 0x51e589
xor edx, edx
mov dword [ebp - 0x70], edx
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
mov eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.00528198
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51f214
mov edx, dword [ebp - 0xc]
fld qword [edx + 0x30]
fld qword [edi + 0x20]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x51e5d9
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x30]
mov dword [edi + 0x20], ecx
mov ecx, dword [edx + 0x34]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 0xe], 0
je 0x51e5ee
mov eax, dword [ebp - 0xc]
mov dl, byte [eax + 0xe]
mov byte [ebp - 0xfb], dl
cmp dword [ebp - 0x20], 0
je 0x51e607
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx + 8]
cmp eax, dword [edx]
jne 0x51e607
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x30], 0
jl 0x51e627
cmp dword [ebp - 0x20], 0
jne 0x51e627
mov eax, dword [ebp - 0x30]
push eax
push esi
call fcn.004f6188
add esp, 8
mov dword [edi + 0x18], 0xffffffff
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x18]
push ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0xfc]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push edi
push ebx
call fcn.00519fb4
add esp, 0x28
mov eax, dword [ebp - 0xc]
push eax
call fcn.00528b1c
pop ecx
jmp 0x51f1be
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x24], 0
je 0x51e6d5
mov eax, dword [edi]
mov edx, dword [eax]
mov eax, dword [edi]
mov eax, dword [eax + 8]
test edx, edx
jle 0x51e696
mov word [eax + 0x10], 0
dec edx
add eax, 0x14
test edx, edx
jg 0x51e688
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [eax + 8]
test edx, edx
jle 0x51e6b3
mov word [eax + 0x10], 0
dec edx
add eax, 0x14
test edx, edx
jg 0x51e6a5
fld qword [edi + 0x20]
fld dword [0x51f270]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x51e6e1
xor edx, edx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], 0x40590000
jmp 0x51e6e1
xor ecx, ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], 0x3ff00000
push esi
call fcn.004f5ce8
pop ecx
mov dword [ebp - 0x88], eax
push 0x20
push 0
lea ecx, [ebp - 0x154]
push ecx
call fcn.005444d8
mov dword [ebp - 0x154], ebx
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x24], 0
je 0x51e72a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
inc eax
jmp 0x51e72c
xor eax, eax
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x154]
push ecx
call fcn.00507d58
add esp, 8
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.00507d58
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x51e77a
mov ecx, dword [ebp - 0x28]
push ecx
lea eax, [ebp - 0x154]
push eax
call fcn.00507d18
add esp, 8
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x51e7c0
or byte [ebp - 0x138], 8
mov eax, dword [ebp - 4]
shl eax, 4
mov edx, dword [ebp - 0x104]
mov ecx, dword [edx + eax]
mov eax, dword [ecx + 0x10]
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.00507d58
add esp, 8
and byte [ebp - 0x138], 0xf7
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x100]
jl 0x51e78d
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x40], 0
jne 0x51f214
cmp dword [ebp - 0x24], 0
je 0x51ee75
mov edx, dword [ebx + 0x48]
inc dword [ebx + 0x48]
mov dword [ebp - 0x120], edx
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
call fcn.0051a4c8
add esp, 8
mov dword [ebp - 0x94], eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x94]
push eax
push 0
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x120]
push ecx
push 0x2b
push esi
call fcn.004f5c28
add esp, 0x1c
mov dword [ebp - 0xac], eax
inc dword [ebx + 0x4c]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x7c], eax
inc dword [ebx + 0x4c]
mov edx, dword [ebx + 0x4c]
mov dword [ebp - 0x80], edx
inc dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0xa0], ecx
push esi
call fcn.004f5ce8
pop ecx
mov dword [ebp - 0x9c], eax
inc dword [ebx + 0x4c]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0xb4], eax
push esi
call fcn.004f5ce8
pop ecx
mov dword [ebp - 0xb0], eax
mov edx, dword [ebx + 0x4c]
inc edx
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
add dword [ebx + 0x4c], eax
mov edx, dword [ebx + 0x4c]
inc edx
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
add dword [ebx + 0x4c], eax
mov edx, dword [ebp - 0x80]
push edx
push 0
push 7
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
push 7
push esi
call fcn.004f5c08
add esp, 0x10
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
add edx, dword [ebp - 0x74]
dec edx
push edx
mov ecx, dword [ebp - 0x74]
push ecx
push 0
push 0xa
push esi
call fcn.004f5b70
add esp, 0x14
mov eax, dword [ebp - 0xb0]
push eax
mov edx, dword [ebp - 0xb4]
push edx
push 2
push esi
call fcn.004f5c08
add esp, 0x10
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov eax, dword [ebp - 0x1c]
push eax
mov edx, dword [ebp - 0x18]
push edx
push ebx
call fcn.00528198
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51f214
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx + 8]
cmp eax, dword [edx]
jne 0x51e926
xor ecx, ecx
mov dword [ebp - 0x84], ecx
jmp 0x51eb6d
cmp byte [ebp - 0xfc], 0
je 0x51e93c
test byte [edi + 6], 1
jne 0x51e93c
mov eax, 0x57424c
jmp 0x51e941
mov eax, str.GROUP_BY
push eax
push ebx
call fcn.0051a5a8
mov dword [ebp - 0x84], 1
mov edx, dword [ebp - 0x24]
add esp, 8
mov ecx, dword [edx]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xc4]
inc ecx
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp - 0xc4]
inc eax
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x110]
lea eax, [ecx + 0xc]
jmp 0x51e99d
mov edx, dword [eax]
cmp edx, dword [ebp - 8]
jl 0x51e997
inc dword [ebp - 0xc0]
inc dword [ebp - 8]
inc dword [ebp - 4]
add eax, 0x18
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10c]
jl 0x51e987
mov eax, dword [ebp - 0xc0]
push eax
push ebx
call fcn.00507df0
add esp, 8
mov dword [ebp - 0xb8], eax
push ebx
call fcn.00506030
pop ecx
push 0
mov ecx, dword [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
call fcn.00507058
add esp, 0x10
mov eax, dword [ebp - 0xb8]
add eax, dword [ebp - 0xc4]
push eax
mov edx, dword [ebp - 0x120]
push edx
push 0x37
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0xc4]
inc ecx
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x51ea81
mov eax, dword [ebp - 4]
shl eax, 3
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x110]
mov edx, dword [eax + 0xc]
cmp edx, dword [ebp - 8]
jl 0x51ea7e
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], ecx
push 0
mov edx, dword [ebp - 0xc8]
push edx
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax]
push eax
push ebx
call fcn.00505f94
add esp, 0x18
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xc8]
cmp ecx, dword [ebp - 0xcc]
je 0x51ea7b
mov ecx, dword [ebp - 0xc8]
push ecx
mov eax, dword [ebp - 0xcc]
push eax
push 0xf
push esi
call fcn.004f5c08
add esp, 0x10
inc dword [ebp - 8]
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10c]
jl 0x51ea0b
push ebx
call fcn.00507d88
pop ecx
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov eax, dword [ebp - 0xc0]
push eax
mov edx, dword [ebp - 0xb8]
push edx
push 0x1f
push esi
call fcn.004f5b70
add esp, 0x14
mov ecx, dword [ebp - 0xbc]
push ecx
mov eax, dword [ebp - 0x120]
push eax
push 0x60
push esi
call fcn.004f5c08
add esp, 0x10
mov edx, dword [ebp - 0xbc]
push edx
push ebx
call fcn.00507dac
add esp, 8
mov ecx, dword [ebp - 0xc0]
push ecx
mov eax, dword [ebp - 0xb8]
push eax
push ebx
call fcn.00507e18
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.00528b1c
pop ecx
mov ecx, dword [ebx + 0x48]
inc dword [ebx + 0x48]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x11c], ecx
push ebx
call fcn.00507d88
pop ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xc0]
push eax
mov edx, dword [ebp - 0x90]
push edx
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x2c
push esi
call fcn.004f5b70
add esp, 0x14
mov eax, dword [ebp - 0x88]
push eax
mov edx, dword [ebp - 0x120]
push edx
push 0x46
push esi
call fcn.004f5c08
add esp, 0x10
mov byte [ebp - 0x123], 1
push ebx
call fcn.00506030
pop ecx
push esi
call fcn.004f5e7c
pop ecx
mov dword [ebp - 0xa8], eax
push ebx
call fcn.00506030
cmp dword [ebp - 0x84], 0
pop ecx
je 0x51eba3
mov ecx, dword [ebp - 0x90]
push ecx
mov eax, dword [ebp - 0x120]
push eax
push 0x3e
push esi
call fcn.004f5c08
add esp, 0x10
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x51ec0d
cmp dword [ebp - 0x84], 0
je 0x51ebe3
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 0x8c]
push edx
push 0x1d
push esi
call fcn.004f5b70
add esp, 0x14
cmp dword [ebp - 8], 0
jne 0x51ec0a
push 0x20
push esi
call fcn.004f5fcc
add esp, 8
jmp 0x51ec0a
mov byte [ebp - 0x124], 1
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4]
push eax
push ebx
call fcn.00506e2c
add esp, 0xc
inc dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 8]
jg 0x51ebaa
push 0xfffffffffffffffa
mov eax, dword [ebp - 0x94]
push eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx]
push ecx
mov eax, dword [ebp - 0x78]
push eax
mov edx, dword [ebp - 0x74]
push edx
push 0x18
push esi
call fcn.004f5c28
add esp, 0x1c
push esi
call fcn.004f5e7c
pop ecx
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
inc ecx
push ecx
push 0
mov eax, dword [ebp - 0x98]
inc eax
push eax
push 0x19
push esi
call fcn.004f5b70
add esp, 0x14
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx]
push ecx
mov eax, dword [ebp - 0x74]
push eax
mov edx, dword [ebp - 0x78]
push edx
push ebx
call fcn.00506080
add esp, 0x10
mov ecx, dword [ebp - 0x9c]
push ecx
mov eax, dword [ebp - 0xa0]
push eax
push 2
push esi
call fcn.004f5c08
add esp, 0x10
mov edx, dword [ebp - 0x88]
push edx
mov ecx, dword [ebp - 0x80]
push ecx
push 0x78
push esi
call fcn.004f5c08
add esp, 0x10
mov eax, dword [ebp - 0xb0]
push eax
mov edx, dword [ebp - 0xb4]
push edx
push 2
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0x98]
push ecx
push esi
call fcn.004f5fe8
add esp, 8
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.0051dc94
add esp, 8
mov edx, dword [ebp - 0x7c]
push edx
push 1
push 7
push esi
call fcn.004f5c08
add esp, 0x10
cmp dword [ebp - 0x84], 0
je 0x51ed17
mov ecx, dword [ebp - 0xa8]
push ecx
mov eax, dword [ebp - 0x120]
push eax
push 0x51
push esi
call fcn.004f5c08
add esp, 0x10
jmp 0x51ed31
mov edx, dword [ebp - 0xc]
push edx
call fcn.00528b1c
pop ecx
mov ecx, dword [ebp - 0xac]
push ecx
push esi
call fcn.004f6188
add esp, 8
mov eax, dword [ebp - 0x9c]
push eax
mov edx, dword [ebp - 0xa0]
push edx
push 2
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0x88]
push ecx
push 0
push 1
push esi
call fcn.004f5c08
add esp, 0x10
push esi
call fcn.004f5e7c
pop ecx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x80]
push eax
push 1
push 7
push esi
call fcn.004f5c08
add esp, 0x10
mov edx, dword [ebp - 0xa0]
push edx
push 3
push esi
call fcn.004f5be8
add esp, 0xc
mov ecx, dword [ebp - 0x9c]
push ecx
push esi
call fcn.004f5d30
add esp, 8
push esi
call fcn.004f5e7c
pop ecx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
add eax, 2
push eax
mov edx, dword [ebp - 0x7c]
push edx
push 0x78
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0xa0]
push ecx
push 3
push esi
call fcn.004f5be8
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.0051dc40
add esp, 8
push 8
mov edx, dword [ebp - 0x9c]
inc edx
push edx
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
call fcn.00507450
add esp, 0x10
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0xfc]
mov edx, dword [ebp - 0x9c]
inc edx
push edx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
mov ecx, dword [edi]
push ecx
push edi
push ebx
call fcn.00519fb4
add esp, 0x28
mov eax, dword [ebp - 0xa0]
push eax
push 3
push esi
call fcn.004f5be8
add esp, 0xc
mov edx, dword [ebp - 0xb0]
push edx
push esi
call fcn.004f5d30
add esp, 8
lea ecx, [ebp - 0x124]
push ecx
push ebx
call fcn.0051db78
add esp, 8
mov eax, dword [ebp - 0xb4]
push eax
push 3
push esi
call fcn.004f5be8
add esp, 0xc
jmp 0x51f1ae
xor edx, edx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0xd0], edx
push ecx
push edi
call fcn.0051d104
add esp, 8
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x51f01c
mov edx, dword [ebp - 0xd4]
mov ecx, dword [edx + 0x40]
push ecx
mov eax, dword [ebx]
push eax
call fcn.005191a4
add esp, 8
mov dword [ebp - 0xd8], eax
mov edx, dword [ebx + 0x48]
inc dword [ebx + 0x48]
mov dword [ebp - 0xdc], edx
xor ecx, ecx
mov dword [ebp - 0xe0], ecx
xor eax, eax
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xd4]
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0xe8], ecx
mov eax, dword [ebp - 0xd8]
push eax
push ebx
call fcn.0050e144
add esp, 8
mov edx, dword [ebp - 0xd4]
mov ecx, dword [edx]
push ecx
push 0
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax + 0x20]
push edx
mov ecx, dword [ebp - 0xd8]
push ecx
push ebx
call fcn.0050a510
add esp, 0x14
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 8]
test eax, eax
je 0x51ef4f
test byte [eax + 0x2b], 4
jne 0x51ef48
cmp dword [ebp - 0xe4], 0
je 0x51ef42
mov dx, word [eax + 0x28]
mov ecx, dword [ebp - 0xe4]
cmp dx, word [ecx + 0x28]
jae 0x51ef48
mov dword [ebp - 0xe4], eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x51ef23
cmp dword [ebp - 0xe4], 0
je 0x51ef95
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xd4]
movsx edx, word [edx + 0x26]
movzx eax, word [ecx + 0x28]
cmp eax, edx
jge 0x51ef95
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0xe4]
push ecx
push ebx
call fcn.0050e564
add esp, 8
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xd8]
push eax
mov edx, dword [ebp - 0xe8]
push edx
mov ecx, dword [ebp - 0xdc]
push ecx
push 0x27
push esi
call fcn.004f5b70
add esp, 0x14
cmp dword [ebp - 0xe0], 0
je 0x51efd2
push 0xfffffffffffffff0
mov eax, dword [ebp - 0xe0]
push eax
push 0xffffffffffffffff
push esi
call fcn.004f61c8
add esp, 0x10
mov edx, dword [ebp - 0x104]
mov ecx, dword [edx + 8]
push ecx
mov eax, dword [ebp - 0xdc]
push eax
push 0x20
push esi
call fcn.004f5c08
add esp, 0x10
mov edx, dword [ebp - 0xdc]
push edx
push 0x2d
push esi
call fcn.004f5be8
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
mov eax, dword [ebp - 0xd4]
push eax
push ebx
call fcn.0051dea4
add esp, 0xc
jmp 0x51f159
xor edx, edx
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xed], 0
cmp dword [edi + 0x34], 0
jne 0x51f04d
lea ecx, [ebp - 0xec]
push ecx
lea eax, [ebp - 0x124]
push eax
call fcn.0051d084
add esp, 8
mov byte [ebp - 0xed], al
cmp byte [ebp - 0xed], 0
je 0x51f0ba
push 0
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00504930
add esp, 0xc
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xec], 0
je 0x51f0ba
mov edx, dword [ebp - 0x38]
cmp byte [edx + 0x40], 0
jne 0x51f0ba
xor ecx, ecx
mov cl, byte [ebp - 0xed]
dec ecx
je 0x51f09e
mov al, 1
jmp 0x51f0a0
xor eax, eax
mov edx, dword [ebp - 0xec]
mov ecx, dword [edx + 8]
mov byte [ecx + 0xc], al
mov ecx, dword [ebp - 0xec]
mov eax, dword [ecx + 8]
mov edx, dword [eax]
mov byte [edx], 0x98
lea ecx, [ebp - 0x124]
push ecx
push ebx
call fcn.0051db78
add esp, 8
push 0
xor eax, eax
mov al, byte [ebp - 0xed]
push eax
push 0
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
mov eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.00528198
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x51f110
mov edx, dword [ebp - 0xd0]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00504f24
add esp, 8
jmp 0x51f214
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.0051dc94
add esp, 8
mov edx, dword [ebp - 0xc]
movzx ecx, word [edx + 8]
test ecx, ecx
jle 0x51f13f
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x18]
push edx
push 0
push 1
push esi
call fcn.004f5c08
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00528b1c
pop ecx
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.0051dc40
add esp, 8
xor edx, edx
mov dword [ebp - 0x20], edx
push 8
mov ecx, dword [ebp - 0x88]
push ecx
mov eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.00507450
add esp, 0x10
mov edx, dword [ebp - 0x88]
push edx
mov ecx, dword [ebp - 0x88]
push ecx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov edx, dword [edi]
push edx
push edi
push ebx
call fcn.00519fb4
add esp, 0x28
mov ecx, dword [ebp - 0xd0]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00504f24
add esp, 8
mov edx, dword [ebp - 0x88]
push edx
push esi
call fcn.004f5d30
add esp, 8
xor ecx, ecx
mov cl, byte [ebp - 0xfb]
cmp ecx, 3
jne 0x51f1d9
push str.DISTINCT
push ebx
call fcn.0051a5a8
add esp, 8
cmp dword [ebp - 0x20], 0
je 0x51f202
push str.ORDER_BY
push ebx
call fcn.0051a5a8
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
push ecx
push esi
push edi
push ebx
call fcn.0051a664
add esp, 0x14
mov eax, dword [ebp - 0x34]
push eax
push esi
call fcn.004f5d30
add esp, 8
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x3c]
mov dword [ebx + 0x1e4], ecx
cmp dword [ebp - 0x2c], 0
jne 0x51f240
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
cmp edx, 5
jne 0x51f240
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.0051ac50
add esp, 0xc
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004dd8c8
add esp, 8
mov edx, dword [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004dd8c8
add esp, 8
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret