Function at 0x4d9a98
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 0x4d9ae4
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 0x40], 0
jne 0x4d9ae4
cmp dword [ebx + 0x44], 0
je 0x4d9aee
mov eax, 1
jmp 0x4dade9
push 0
push 0
push 0
push 0x15
push ebx
call fcn.004c5fa8
add esp, 0x14
test eax, eax
je 0x4d9b0d
mov eax, 1
jmp 0x4dade9
push 0x28
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.00500058
add esp, 0xc
mov ecx, dword [ebp + 0x10]
movzx ecx, byte [ecx]
cmp ecx, 4
jg 0x4d9b46
mov eax, dword [edi + 0x38]
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.004c0aa4
add esp, 8
xor ecx, ecx
mov dword [edi + 0x38], ecx
and word [edi + 6], 0xfffe
push 0
push edi
push ebx
call fcn.004d9698
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 0x4dad94
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x40], 0
je 0x4d9b7b
jmp 0x4dad94
test byte [edi + 6], 4
setne dl
and edx, 1
mov dword [ebp - 0x10], edx
push ebx
call fcn.004d6dd0
pop ecx
mov esi, eax
test esi, esi
je 0x4dad94
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
call fcn.004d5afc
add esp, 0xc
test eax, eax
je 0x4d9bb5
jmp 0x4dad94
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x4d9ea4
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 0x4d9ea1
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x18], 0
je 0x4d9c15
mov edx, dword [ebp - 0x40]
test byte [edx + 0x21], 4
jne 0x4d9ea1
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.004b1788
add esp, 0x10
jmp 0x4d9ea1
push edi
call fcn.004bfb50
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.004d8598
add esp, 0x14
test eax, eax
je 0x4d9c6a
cmp dword [ebp - 0x48], 0
je 0x4d9c5e
mov dword [ebp - 0x10], 1
or word [edi + 6], 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4d9e6e
mov ecx, dword [ebp - 0x18]
cmp word [ecx], 1
jne 0x4d9da9
test byte [edi + 7], 1
jne 0x4d9da9
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.004c9cc4
add esp, 8
push 1
push esi
call fcn.004b174c
add esp, 8
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x24]
push edx
push 0x2c
push esi
call fcn.004b1768
add esp, 0xc
mov dword [ebp - 0x4c], eax
push 1
push esi
call fcn.004b1b4c
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.004b1788
add esp, 0x10
push 1
push esi
call fcn.004b1b4c
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.004d5354
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.004d9a98
add esp, 0xc
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x20]
call fcn.00500310
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.004b1b0c
add esp, 0xc
mov ecx, dword [ebp - 0x128]
push ecx
mov eax, dword [ebp - 0x4c]
push eax
push esi
call fcn.004b1b2c
add esp, 0xc
mov edx, dword [ebp - 0x50]
push edx
push 1
push 7
push esi
call fcn.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x1c]
push eax
push 4
push esi
call fcn.004b1768
add esp, 0xc
mov edx, dword [ebp - 0x4c]
dec edx
push edx
push esi
call fcn.004b1b68
add esp, 8
push ebx
call fcn.004c39c4
pop ecx
jmp 0x4d9e6e
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.004b1788
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 0x4d9de8
push ebx
call fcn.004c0e88
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.004d5354
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.004d9a98
add esp, 0xc
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x20]
call fcn.00500310
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x10]
mov dword [ecx + 0x1c], eax
cmp dword [ebp - 0x58], 0
je 0x4d9e47
mov ecx, dword [ebp - 0x58]
push ecx
push esi
call fcn.004b1b68
add esp, 8
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x1c]
push edx
push 3
push esi
call fcn.004b1768
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push esi
call fcn.004b1aec
add esp, 0xc
push ebx
call fcn.004c39c4
pop ecx
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x40], 0
je 0x4d9e7c
jmp 0x4dad94
push edi
call fcn.004bfb50
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 0x4d9ea1
mov edx, dword [edi + 0x38]
mov dword [ebp - 0x20], edx
inc dword [ebp - 4]
cmp dword [edi + 0x3c], 0
jne 0x4d9eb9
mov ecx, dword [ebp - 0x18]
movsx eax, word [ecx]
cmp eax, dword [ebp - 4]
jg 0x4d9bbf
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 0x4d9f76
cmp dword [edi + 0x44], 0
jne 0x4d9f54
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 0x4d9f2a
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 0x4d9f03
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x68]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4d9f54
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jle 0x4d9f54
push str.too_many_terms_in_compound_SELECT
push ebx
call fcn.0049b4e8
add esp, 8
jmp 0x4dad94
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push ebx
call fcn.004d6fd8
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x1e4], eax
mov eax, dword [ebp - 0x2c]
jmp 0x4dade9
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [edi + 0x30]
push ecx
call fcn.004c3480
add esp, 8
test eax, eax
jne 0x4d9f8f
xor ecx, ecx
mov dword [ebp - 0x20], ecx
movzx eax, word [edi + 6]
and eax, 5
dec eax
jne 0x4d9fd1
mov edx, dword [edi]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004c3480
add esp, 8
test eax, eax
jne 0x4d9fd1
and word [edi + 6], 0xfffe
push 0
mov eax, dword [edi]
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.004c04b0
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 0x4da01e
mov edx, dword [ebp - 0x20]
push edx
push ebx
call fcn.004d6048
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.004b17a8
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov dword [edi + 0x18], eax
jmp 0x4da025
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
cmp ecx, 9
jne 0x4da049
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.004b1788
add esp, 0x10
push esi
call fcn.004b1868
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.004d6e08
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x4da08e
cmp dword [ebp - 0x30], 0
jl 0x4da08e
mov eax, dword [ebp - 0x30]
push eax
push esi
call fcn.004b1eb8
add esp, 8
mov byte [eax], 0x2b
or word [edi + 6], 0x40
test byte [edi + 6], 1
je 0x4da0df
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.004d6048
add esp, 8
push eax
push 0
push 0
mov eax, dword [ebp - 0xf8]
push eax
push 0x2a
push esi
call fcn.004b17a8
add esp, 0x1c
mov dword [ebp - 0xf4], eax
push 8
push esi
call fcn.004b1b4c
add esp, 8
mov byte [ebp - 0xfb], 3
jmp 0x4da0e6
mov byte [ebp - 0xfb], 0
cmp dword [ebp - 0x10], 0
jne 0x4da1e5
cmp dword [ebp - 0x24], 0
jne 0x4da1e5
cmp byte [ebp - 0xfc], 0
je 0x4da107
mov edx, dword [edi]
jmp 0x4da109
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.004e3d18
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4dad94
mov edx, dword [ebp - 0xc]
fld qword [edx + 0x30]
fld qword [edi + 0x20]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x4da159
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 0x4da16e
mov eax, dword [ebp - 0xc]
mov dl, byte [eax + 0xe]
mov byte [ebp - 0xfb], dl
cmp dword [ebp - 0x20], 0
je 0x4da187
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx + 8]
cmp eax, dword [edx]
jne 0x4da187
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x30], 0
jl 0x4da1a7
cmp dword [ebp - 0x20], 0
jne 0x4da1a7
mov eax, dword [ebp - 0x30]
push eax
push esi
call fcn.004b1d08
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.004d5b34
add esp, 0x28
mov eax, dword [ebp - 0xc]
push eax
call fcn.004e469c
pop ecx
jmp 0x4dad3e
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x24], 0
je 0x4da255
mov eax, dword [edi]
mov edx, dword [eax]
mov eax, dword [edi]
mov eax, dword [eax + 8]
test edx, edx
jle 0x4da216
mov word [eax + 0x10], 0
dec edx
add eax, 0x14
test edx, edx
jg 0x4da208
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [eax + 8]
test edx, edx
jle 0x4da233
mov word [eax + 0x10], 0
dec edx
add eax, 0x14
test edx, edx
jg 0x4da225
fld qword [edi + 0x20]
fld dword [0x4dadf0]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x4da261
xor edx, edx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], 0x40590000
jmp 0x4da261
xor ecx, ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], 0x3ff00000
push esi
call fcn.004b1868
pop ecx
mov dword [ebp - 0x88], eax
push 0x20
push 0
lea ecx, [ebp - 0x154]
push ecx
call fcn.00500058
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 0x4da2aa
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
inc eax
jmp 0x4da2ac
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.004c38d8
add esp, 8
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.004c38d8
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x4da2fa
mov ecx, dword [ebp - 0x28]
push ecx
lea eax, [ebp - 0x154]
push eax
call fcn.004c3898
add esp, 8
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x4da340
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.004c38d8
add esp, 8
and byte [ebp - 0x138], 0xf7
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x100]
jl 0x4da30d
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x40], 0
jne 0x4dad94
cmp dword [ebp - 0x24], 0
je 0x4da9f5
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.004d6048
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.004b17a8
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.004b1868
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.004b1868
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.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
push 7
push esi
call fcn.004b1788
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.004b16f0
add esp, 0x14
mov eax, dword [ebp - 0xb0]
push eax
mov edx, dword [ebp - 0xb4]
push edx
push 2
push esi
call fcn.004b1788
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.004e3d18
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4dad94
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx + 8]
cmp eax, dword [edx]
jne 0x4da4a6
xor ecx, ecx
mov dword [ebp - 0x84], ecx
jmp 0x4da6ed
cmp byte [ebp - 0xfc], 0
je 0x4da4bc
test byte [edi + 6], 1
jne 0x4da4bc
mov eax, 0x520644
jmp 0x4da4c1
mov eax, str.GROUP_BY
push eax
push ebx
call fcn.004d6128
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 0x4da51d
mov edx, dword [eax]
cmp edx, dword [ebp - 8]
jl 0x4da517
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 0x4da507
mov eax, dword [ebp - 0xc0]
push eax
push ebx
call fcn.004c3970
add esp, 8
mov dword [ebp - 0xb8], eax
push ebx
call fcn.004c1bb0
pop ecx
push 0
mov ecx, dword [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
call fcn.004c2bd8
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.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0xc4]
inc ecx
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4da601
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 0x4da5fe
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.004c1b14
add esp, 0x18
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xc8]
cmp ecx, dword [ebp - 0xcc]
je 0x4da5fb
mov ecx, dword [ebp - 0xc8]
push ecx
mov eax, dword [ebp - 0xcc]
push eax
push 0xf
push esi
call fcn.004b1788
add esp, 0x10
inc dword [ebp - 8]
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10c]
jl 0x4da58b
push ebx
call fcn.004c3908
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.004b16f0
add esp, 0x14
mov ecx, dword [ebp - 0xbc]
push ecx
mov eax, dword [ebp - 0x120]
push eax
push 0x60
push esi
call fcn.004b1788
add esp, 0x10
mov edx, dword [ebp - 0xbc]
push edx
push ebx
call fcn.004c392c
add esp, 8
mov ecx, dword [ebp - 0xc0]
push ecx
mov eax, dword [ebp - 0xb8]
push eax
push ebx
call fcn.004c3998
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e469c
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.004c3908
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.004b16f0
add esp, 0x14
mov eax, dword [ebp - 0x88]
push eax
mov edx, dword [ebp - 0x120]
push edx
push 0x46
push esi
call fcn.004b1788
add esp, 0x10
mov byte [ebp - 0x123], 1
push ebx
call fcn.004c1bb0
pop ecx
push esi
call fcn.004b19fc
pop ecx
mov dword [ebp - 0xa8], eax
push ebx
call fcn.004c1bb0
cmp dword [ebp - 0x84], 0
pop ecx
je 0x4da723
mov ecx, dword [ebp - 0x90]
push ecx
mov eax, dword [ebp - 0x120]
push eax
push 0x3e
push esi
call fcn.004b1788
add esp, 0x10
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4da78d
cmp dword [ebp - 0x84], 0
je 0x4da763
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.004b16f0
add esp, 0x14
cmp dword [ebp - 8], 0
jne 0x4da78a
push 0x20
push esi
call fcn.004b1b4c
add esp, 8
jmp 0x4da78a
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.004c29ac
add esp, 0xc
inc dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 8]
jg 0x4da72a
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.004b17a8
add esp, 0x1c
push esi
call fcn.004b19fc
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.004b16f0
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.004c1c00
add esp, 0x10
mov ecx, dword [ebp - 0x9c]
push ecx
mov eax, dword [ebp - 0xa0]
push eax
push 2
push esi
call fcn.004b1788
add esp, 0x10
mov edx, dword [ebp - 0x88]
push edx
mov ecx, dword [ebp - 0x80]
push ecx
push 0x78
push esi
call fcn.004b1788
add esp, 0x10
mov eax, dword [ebp - 0xb0]
push eax
mov edx, dword [ebp - 0xb4]
push edx
push 2
push esi
call fcn.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0x98]
push ecx
push esi
call fcn.004b1b68
add esp, 8
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.004d9814
add esp, 8
mov edx, dword [ebp - 0x7c]
push edx
push 1
push 7
push esi
call fcn.004b1788
add esp, 0x10
cmp dword [ebp - 0x84], 0
je 0x4da897
mov ecx, dword [ebp - 0xa8]
push ecx
mov eax, dword [ebp - 0x120]
push eax
push 0x51
push esi
call fcn.004b1788
add esp, 0x10
jmp 0x4da8b1
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e469c
pop ecx
mov ecx, dword [ebp - 0xac]
push ecx
push esi
call fcn.004b1d08
add esp, 8
mov eax, dword [ebp - 0x9c]
push eax
mov edx, dword [ebp - 0xa0]
push edx
push 2
push esi
call fcn.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0x88]
push ecx
push 0
push 1
push esi
call fcn.004b1788
add esp, 0x10
push esi
call fcn.004b19fc
pop ecx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x80]
push eax
push 1
push 7
push esi
call fcn.004b1788
add esp, 0x10
mov edx, dword [ebp - 0xa0]
push edx
push 3
push esi
call fcn.004b1768
add esp, 0xc
mov ecx, dword [ebp - 0x9c]
push ecx
push esi
call fcn.004b18b0
add esp, 8
push esi
call fcn.004b19fc
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.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0xa0]
push ecx
push 3
push esi
call fcn.004b1768
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.004d97c0
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.004c2fd0
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.004d5b34
add esp, 0x28
mov eax, dword [ebp - 0xa0]
push eax
push 3
push esi
call fcn.004b1768
add esp, 0xc
mov edx, dword [ebp - 0xb0]
push edx
push esi
call fcn.004b18b0
add esp, 8
lea ecx, [ebp - 0x124]
push ecx
push ebx
call fcn.004d96f8
add esp, 8
mov eax, dword [ebp - 0xb4]
push eax
push 3
push esi
call fcn.004b1768
add esp, 0xc
jmp 0x4dad2e
xor edx, edx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0xd0], edx
push ecx
push edi
call fcn.004d8c84
add esp, 8
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x4dab9c
mov edx, dword [ebp - 0xd4]
mov ecx, dword [edx + 0x40]
push ecx
mov eax, dword [ebx]
push eax
call fcn.004d4d24
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.004c9cc4
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.004c6090
add esp, 0x14
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4daacf
test byte [eax + 0x2b], 4
jne 0x4daac8
cmp dword [ebp - 0xe4], 0
je 0x4daac2
mov dx, word [eax + 0x28]
mov ecx, dword [ebp - 0xe4]
cmp dx, word [ecx + 0x28]
jae 0x4daac8
mov dword [ebp - 0xe4], eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4daaa3
cmp dword [ebp - 0xe4], 0
je 0x4dab15
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xd4]
movsx edx, word [edx + 0x26]
movzx eax, word [ecx + 0x28]
cmp eax, edx
jge 0x4dab15
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.004ca0e4
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.004b16f0
add esp, 0x14
cmp dword [ebp - 0xe0], 0
je 0x4dab52
push 0xfffffffffffffff0
mov eax, dword [ebp - 0xe0]
push eax
push 0xffffffffffffffff
push esi
call fcn.004b1d48
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.004b1788
add esp, 0x10
mov edx, dword [ebp - 0xdc]
push edx
push 0x2d
push esi
call fcn.004b1768
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
mov eax, dword [ebp - 0xd4]
push eax
push ebx
call fcn.004d9a24
add esp, 0xc
jmp 0x4dacd9
xor edx, edx
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xed], 0
cmp dword [edi + 0x34], 0
jne 0x4dabcd
lea ecx, [ebp - 0xec]
push ecx
lea eax, [ebp - 0x124]
push eax
call fcn.004d8c04
add esp, 8
mov byte [ebp - 0xed], al
cmp byte [ebp - 0xed], 0
je 0x4dac3a
push 0
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004c04b0
add esp, 0xc
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xec], 0
je 0x4dac3a
mov edx, dword [ebp - 0x38]
cmp byte [edx + 0x40], 0
jne 0x4dac3a
xor ecx, ecx
mov cl, byte [ebp - 0xed]
dec ecx
je 0x4dac1e
mov al, 1
jmp 0x4dac20
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.004d96f8
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.004e3d18
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4dac90
mov edx, dword [ebp - 0xd0]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004c0aa4
add esp, 8
jmp 0x4dad94
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.004d9814
add esp, 8
mov edx, dword [ebp - 0xc]
movzx ecx, word [edx + 8]
test ecx, ecx
jle 0x4dacbf
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x18]
push edx
push 0
push 1
push esi
call fcn.004b1788
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004e469c
pop ecx
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.004d97c0
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.004c2fd0
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.004d5b34
add esp, 0x28
mov ecx, dword [ebp - 0xd0]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004c0aa4
add esp, 8
mov edx, dword [ebp - 0x88]
push edx
push esi
call fcn.004b18b0
add esp, 8
xor ecx, ecx
mov cl, byte [ebp - 0xfb]
cmp ecx, 3
jne 0x4dad59
push str.DISTINCT
push ebx
call fcn.004d6128
add esp, 8
cmp dword [ebp - 0x20], 0
je 0x4dad82
push str.ORDER_BY
push ebx
call fcn.004d6128
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.004d61e4
add esp, 0x14
mov eax, dword [ebp - 0x34]
push eax
push esi
call fcn.004b18b0
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 0x4dadc0
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
cmp edx, 5
jne 0x4dadc0
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.004d67d0
add esp, 0xc
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00499448
add esp, 8
mov edx, dword [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00499448
add esp, 8
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret