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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov dword [esp + 0x68], edi
inc ecx
mov esi, edx
mov dword [esp + 0x6c], esi
mov eax, dword [edi + 0x22c]
mov dword [esp + 0xa8], eax
mov eax, dword [edi + 0x230]
mov dword [edi + 0x22c], eax
inc eax
mov dword [edi + 0x230], eax
mov eax, dword [edi]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
test esi, esi
je 0x4e8ff1
cmp byte [eax + 0x1e], 0
jne 0x4e8ff1
xor ebx, ebx
cmp dword [edi + 0x40], ebx
jne 0x4e8ff1
push ebx
push ebx
push ebx
push 0x15
pop edx
mov ecx, edi
call fcn.004d818b
add esp, 0xc
test eax, eax
je 0x4e8119
lea eax, [ebx + 1]
jmp 0x4e8ff3
push 0x2c
lea eax, [esp + 0x80]
push ebx
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp byte [ecx], 4
ja 0x4e814d
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
call fcn.004d3bac
mov eax, 0xfffe
mov dword [esi + 0x18], ebx
and word [esi + 6], ax
push ebx
mov edx, esi
mov ecx, edi
call fcn.004e7cbd
mov eax, dword [esi + 0x18]
mov edx, dword [esi]
pop ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
cmp dword [edi + 0x40], ebx
jne 0x4e8fcd
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1e], bl
jne 0x4e8fd9
movzx eax, word [esi + 6]
mov ecx, edi
shr eax, 2
and eax, 1
mov dword [esp + 0x54], eax
call fcn.004e5a46
mov dword [esp + 0xc], eax
test eax, eax
je 0x4e81ca
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
cmp dword [ecx], 1
movzx eax, byte [edx]
jle 0x4e8224
cmp eax, 6
je 0x4e81bd
cmp eax, 7
jne 0x4e8224
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push edi
call fcn.004b70ac
pop ecx
pop ecx
mov esi, dword [esp + 0x14]
xor ebx, ebx
inc ebx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xa8]
mov dword [edi + 0x22c], eax
test ebx, ebx
jne 0x4e81fe
mov eax, dword [esp + 0x3c]
cmp byte [eax], 5
jne 0x4e81fe
push edx
mov edx, ecx
mov ecx, edi
call fcn.004e55a9
pop ecx
push dword [esp + 0x8c]
push esi
call fcn.004b54b7
push dword [esp + 0xa4]
push esi
call fcn.004b54b7
mov eax, dword [esp + 0x38]
add esp, 0x10
jmp 0x4e8ff3
mov ecx, ebx
mov dword [esp + 0x2c], ebx
cmp dword [esi + 0x1c], ebx
jne 0x4e839e
mov eax, dword [esp + 0x10]
movsx eax, word [eax]
cmp ecx, eax
jge 0x4e839e
mov edx, dword [esp + 0x10]
imul eax, ecx, 0x38
mov dword [esp + 0x24], eax
mov edx, dword [eax + edx + 0x18]
mov dword [esp + 0x4c], edx
test edx, edx
je 0x4e8388
mov edx, dword [esp + 0x10]
cmp byte [eax + edx + 0x1c], bl
jne 0x4e8388
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ecx, esi
call fcn.004d2ed2
mov eax, dword [esp + 0x38]
mov edx, esi
add dword [edi + 0x220], eax
mov ecx, edi
mov eax, dword [esp + 0x4c]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
push eax
call fcn.004e703f
add esp, 0xc
test eax, eax
je 0x4e82cc
cmp dword [esp + 0x40], ebx
je 0x4e82c3
or word [esi + 6], 4
mov dword [esp + 0x54], 1
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
jmp 0x4e8341
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx + 0x20]
mov dword [esp + 0xf0], eax
mov al, byte [edi + 0x230]
mov word [esp + 0xec], 9
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov byte [ecx + edx + 0x1f], al
lea eax, [esp + 0xec]
mov edx, dword [esp + 0x4c]
mov ecx, edi
push eax
call fcn.004e8083
mov eax, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx + 0x1c], 1
mov eax, dword [esp + 0x4c]
fld qword [eax + 0x48]
call fcn.0055e036
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + esi + 0x14]
mov esi, dword [esp + 0x6c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1e], bl
jne 0x4e8fc6
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ecx, esi
call fcn.004d2ed2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
sub dword [edi + 0x220], eax
mov eax, dword [esi + 8]
cmp byte [edx], 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jbe 0x4e8390
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
jmp 0x4e838c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x1c], ebx
je 0x4e8237
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], eax
movzx eax, word [esi + 6]
mov ecx, eax
and ecx, 1
mov dword [esp + 0x48], ecx
cmp dword [esi + 0x1c], ebx
je 0x4e841e
cmp dword [esi + 0x24], ebx
jne 0x4e8401
mov ecx, ebx
mov eax, esi
mov dword [eax + 0x20], ebx
inc ecx
mov dword [eax + 0x24], esi
mov ebx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4e83d8
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x58], 0
je 0x4e8401
cmp ecx, dword [eax + 0x58]
jle 0x4e8401
push str.too_many_terms_in_compound_SELECT
jmp 0x4e81c2
push edx
mov edx, esi
mov ecx, edi
call fcn.004e5c45
pop ecx
mov ecx, dword [esp + 0xa8]
mov dword [edi + 0x22c], ecx
jmp 0x4e8ff3
and al, 5
cmp al, 1
jne 0x4e8447
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.004d36ef
mov dword [esp + 0x38], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x54], eax
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
call fcn.004d5d89
test eax, eax
jne 0x4e8473
mov eax, dword [esp + 0x14]
push 0
pop ecx
test byte [eax + 0xc], 0x20
mov eax, dword [esp + 0x30]
cmove eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
jmp 0x4e8477
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e84b8
mov edx, eax
mov ecx, edi
call fcn.004e4fdf
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edi + 0x44]
push 0xfffffffffffffff0
push ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 8], eax
inc dword [edi + 0x44]
mov eax, dword [edx]
push ebx
add eax, 2
push eax
push dword [edx + 8]
push 0x29
pop edx
call fcn.004c8007
add esp, 0x14
mov dword [esp + 0x20], eax
mov dword [esi + 0x40], eax
jmp 0x4e84bd
or dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x3c]
cmp byte [eax], 9
jne 0x4e84df
mov ecx, dword [esp + 0x18]
push ebx
push dword [ecx]
mov ecx, dword [esp + 0x14]
push dword [eax + 4]
push 0x29
pop edx
call fcn.004c7f90
add esp, 0xc
mov ecx, dword [esp + 0xc]
call fcn.004c806a
fld qword [0x5a1290]
mov edx, esi
push eax
mov ecx, edi
mov dword [esp + 0xb8], eax
fstp qword [esi + 0x48]
call fcn.004e5a7c
test byte [esi + 6], 1
pop ecx
je 0x4e855e
mov eax, dword [edi + 0x44]
mov ecx, edi
mov dword [esp + 0x4c], eax
inc eax
mov dword [edi + 0x44], eax
mov edx, dword [esi]
call fcn.004e4fdf
mov ecx, dword [esp + 0xc]
mov esi, eax
push ebx
push ebx
push dword [esp + 0x54]
push 0x29
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, eax
push 0xfffffffffffffff0
push esi
call fcn.004c83e8
mov esi, dword [esp + 0x74]
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
test edx, edx
je 0x4e8567
imul eax, dword [ecx + 0x1c], 0x14
mov byte [eax + edx - 0x11], 0x10
jmp 0x4e8567
or dword [esp + 0x4c], 0xffffffff
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x54], ebx
jne 0x4e860f
test edx, edx
jne 0x4e8613
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push ebx
push eax
push dword [esp + 0x68]
mov ecx, edi
call fcn.004efc11
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x4e8fdd
fld qword [ecx + 0x28]
fld qword [esi + 0x48]
fcompi st(1)
fstp st(0)
jbe 0x4e85b5
fld qword [ecx + 0x28]
fstp qword [esi + 0x48]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
test edx, edx
js 0x4e85e1
test eax, eax
jne 0x4e85e1
mov ecx, dword [esp + 0xc]
push 1
call fcn.004c83a1
or dword [esi + 0x40], 0xffffffff
mov eax, dword [esp + 0x34]
pop ecx
mov ecx, dword [esp + 0x38]
push dword [ecx + 0x14]
mov edx, esi
push dword [ecx + 0x10]
mov ecx, dword [esp + 0x44]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
push dword [esp + 0x34]
mov ecx, edi
call fcn.004e4c9f
mov ecx, dword [esp + 0x58]
add esp, 0x20
call fcn.004f04e5
jmp 0x4e8f69
test edx, edx
je 0x4e865d
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jle 0x4e8632
add edi, 0x10
xor ecx, ecx
dec eax
mov word [edi], cx
lea edi, [edi + 0x14]
test eax, eax
jg 0x4e8621
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
mov edi, dword [edx + 0xc]
test eax, eax
jle 0x4e864b
lea edx, [edi + 0x10]
xor edi, edi
dec eax
mov word [edx], di
lea edx, [edx + 0x14]
test eax, eax
jg 0x4e863e
fld qword [0x5a1200]
fld qword [esi + 0x48]
fcompi st(1)
jbe 0x4e8661
fstp qword [esi + 0x48]
jmp 0x4e8663
fld1
jmp 0x4e8658
fstp st(0)
call fcn.004c806a
mov dword [esp + 0x2c], eax
lea edi, [esp + 0xc8]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x68]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xe4], eax
test ecx, ecx
je 0x4e86af
mov eax, dword [ecx]
inc eax
mov dword [esp + 0x88], eax
jmp 0x4e86b6
mov dword [esp + 0x88], ebx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0xc8]
call fcn.004d6069
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xc8]
call fcn.004d6069
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4e8717
lea ecx, [esp + 0xc8]
mov dword [esp + 0xb8], 0x4d5dfc
mov dword [esp + 0xc4], ecx
mov edx, eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xbc], 0x4d603d
call fcn.004d1944
mov eax, dword [esp + 0x90]
mov dword [esp + 0x98], eax
cmp dword [esp + 0xa0], ebx
jle 0x4e8760
mov esi, ebx
mov edi, ebx
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0xc8]
mov edx, dword [esi + eax]
mov edx, dword [edx + 0x10]
call fcn.004d6069
inc edi
lea esi, [esi + 0x10]
cmp edi, dword [esp + 0xa0]
jl 0x4e8732
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1e], bl
jne 0x4e8fc6
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4e8d0c
mov eax, dword [edi + 0x44]
mov edx, ecx
mov dword [esp + 0x80], eax
mov ecx, edi
inc eax
mov dword [edi + 0x44], eax
call fcn.004e4fdf
mov ecx, dword [esp + 0xc]
push 0xfffffffffffffff0
push eax
push ebx
push dword [esp + 0x94]
mov dword [esp + 0xc0], eax
push dword [esp + 0x90]
push 0x29
pop edx
call fcn.004c8007
mov ecx, dword [esp + 0x20]
add esp, 0x14
inc dword [edi + 0x48]
mov dword [esp + 0xac], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x78], eax
inc eax
mov dword [esp + 0x58], eax
inc eax
mov dword [edi + 0x48], eax
call fcn.004c806a
inc dword [edi + 0x48]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x20], eax
call fcn.004c806a
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x64], eax
push ebx
push dword [esp + 0x5c]
lea eax, [ecx + 1]
add ecx, dword [edx]
mov dword [esp + 0x78], eax
mov dword [edi + 0x48], ecx
push ebx
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
add eax, ecx
mov ecx, dword [esp + 0x18]
push 7
pop edx
mov dword [edi + 0x48], eax
call fcn.004c7f90
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push dword [esp + 0x7c]
push ebx
push 7
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push dword [esp + 0x68]
push dword [esp + 0x28]
push 2
pop edx
call fcn.004c7f90
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
add esp, 0xc
mov ecx, edi
push ebx
push eax
push dword [esp + 0x68]
call fcn.004efc11
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
je 0x4e81ca
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], eax
test eax, eax
jne 0x4e889d
mov eax, dword [esi + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ebx
jmp 0x4e8a5f
cmp dword [esp + 0x48], ebx
je 0x4e88ae
test byte [esi + 6], 1
mov edx, str.DISTINCT
je 0x4e88b3
mov edx, str.GROUP_BY
mov ecx, edi
call fcn.004e50a1
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x60], 1
mov eax, dword [esi]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x50], eax
mov ecx, eax
mov dword [esp + 0x34], eax
test edx, edx
jle 0x4e88fb
mov eax, dword [esp + 0x8c]
add eax, 0xc
cmp dword [eax], ecx
jl 0x4e88f5
inc dword [esp + 0x34]
inc ecx
add eax, 0x18
dec edx
jne 0x4e88ec
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.004d6103
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.004d4a24
push ebx
push dword [esp + 0x48]
mov edx, esi
mov ecx, edi
call fcn.004d5713
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push dword [esp + 0x90]
push 0x35
pop edx
call fcn.004c7f90
add esp, 0x14
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x90], ebx
jle 0x4e89dd
mov ecx, dword [esp + 0x44]
mov eax, ebx
mov edx, dword [esp + 0x50]
add ecx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x8c]
cmp dword [eax + esi + 0xc], edx
mov esi, dword [esp + 0xc]
jl 0x4e89c0
push ecx
mov ecx, dword [esp + 0x90]
push dword [eax + ecx + 4]
mov edx, dword [eax + ecx]
push dword [eax + ecx + 8]
mov ecx, edi
call fcn.004d49a2
mov ecx, dword [esp + 0x68]
add esp, 0xc
cmp ecx, eax
je 0x4e89ae
push ebx
push ecx
push eax
push 0xf
pop edx
mov ecx, esi
call fcn.004c7f90
mov ecx, dword [esp + 0x68]
add esp, 0xc
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
inc edx
inc ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x48]
add eax, 0x18
inc edi
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0x90]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x68]
jl 0x4e8964
mov ecx, edi
call fcn.004d60b3
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
push dword [esp + 0x38]
push dword [esp + 0x4c]
push 0x1e
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push esi
push dword [esp + 0x88]
push 0x46
pop edx
call fcn.004c7f90
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.004d60cf
push dword [esp + 0x34]
mov edx, dword [esp + 0x48]
call fcn.004d612e
pop ecx
mov ecx, dword [esp + 0x40]
call fcn.004f04e5
mov esi, dword [esp + 0xc]
mov ecx, esi
push ebx
push dword [esp + 0x30]
push dword [esp + 0x88]
push 0x40
pop edx
call fcn.004c7f90
add esp, 0xc
mov byte [esp + 0x7d], 1
mov ecx, edi
call fcn.004d4a24
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.004d4a24
mov edx, dword [esp + 0x54]
mov ecx, ebx
mov dword [esp + 0x28], ecx
cmp dword [edx], ebx
jle 0x4e8ad7
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
test ebx, ebx
je 0x4e8aa5
push ecx
push dword [esp + 0x88]
mov ecx, esi
push 0x1c
pop edx
call fcn.004c7f90
add esp, 0xc
jmp 0x4e8abf
mov eax, dword [esp + 0x60]
mov ecx, edi
mov byte [esp + 0x80], 1
mov edx, dword [edx + 0xc]
mov edx, dword [edx + eax]
call fcn.004d55e7
pop ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
inc ecx
add dword [esp + 0x5c], 0x14
mov dword [esp + 0x28], ecx
cmp ecx, dword [edx]
jl 0x4e8a83
xor ebx, ebx
push 0xfffffffffffffffa
push dword [esp + 0xb4]
mov ecx, esi
push dword [edx]
push dword [esp + 0x30]
push dword [esp + 0x80]
push 0x18
pop edx
call fcn.004c8007
mov esi, dword [esi + 0x1c]
add esp, 0x14
mov ecx, dword [esp + 0xc]
lea eax, [esi + 1]
push eax
push ebx
push eax
push 0x19
pop edx
call fcn.004c7f90
mov eax, dword [esp + 0x60]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov ecx, edi
push dword [eax]
push dword [esp + 0x74]
call fcn.004d4a48
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
inc eax
push ebx
push dword [esp + 0x80]
push eax
push 2
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x20]
add esp, 0x14
push ebx
push dword [esp + 0x30]
push dword [esp + 0x60]
push 0x71
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push dword [esp + 0x68]
push dword [esp + 0x28]
push 2
pop edx
call fcn.004c7f90
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, esi
mov esi, eax
mov ecx, esi
push dword [eax + 0x1c]
call fcn.004c8240
pop ecx
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004e7e61
push ebx
push dword [esp + 0x7c]
mov ecx, esi
push 1
push 7
pop edx
call fcn.004c7f90
add esp, 0xc
cmp dword [esp + 0x60], 0
je 0x4e8bc8
push ebx
push dword [esp + 0x4c]
mov ecx, esi
push dword [esp + 0x88]
push 0x43
pop edx
call fcn.004c7f90
add esp, 0xc
jmp 0x4e8be2
mov ecx, dword [esp + 0x40]
call fcn.004f04e5
mov edx, dword [esp + 0xac]
mov ecx, esi
push 1
call fcn.004c83a1
pop ecx
mov eax, dword [esp + 0x58]
mov ecx, esi
push ebx
push dword [esp + 0x78]
inc eax
push eax
push 2
pop edx
call fcn.004c7f90
add esp, 0xc
xor edx, edx
inc edx
mov ecx, esi
push ebx
push dword [esp + 0x30]
push ebx
call fcn.004c7f90
mov edi, dword [esi + 0x1c]
add esp, 0xc
mov ecx, esi
push ebx
push dword [esp + 0x5c]
push 1
push 7
pop edx
call fcn.004c7f90
mov eax, dword [esp + 0x64]
add esp, 0xc
inc eax
mov ecx, esi
push ebx
push ebx
push eax
push 3
pop edx
call fcn.004c7f90
mov edx, dword [esp + 0x80]
add esp, 0xc
mov ecx, esi
call fcn.004c80ba
mov esi, dword [esi + 0x1c]
push ebx
lea eax, [esi + 2]
push eax
push dword [esp + 0x80]
push 0x71
pop edx
call fcn.004c7f90
mov eax, dword [esp + 0x64]
add esp, 0xc
mov ecx, dword [esp + 0xc]
inc eax
push ebx
push ebx
push eax
push 3
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x88]
add esp, 0xc
call fcn.004e7e10
mov edx, dword [esp + 0x38]
inc esi
mov ecx, dword [esp + 0x68]
push 8
push esi
call fcn.004d5a57
mov ecx, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x7c]
mov edx, esi
push ecx
push dword [esp + 0x60]
mov ecx, edi
push dword [esp + 0x48]
push ebx
push ebx
push dword [esi]
call fcn.004e4c9f
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x34]
inc eax
push ebx
push ebx
push eax
push 3
pop edx
call fcn.004c7f90
mov edx, dword [esp + 0x98]
add esp, 0x34
mov ecx, dword [esp + 0xc]
call fcn.004c80ba
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004e7d36
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push dword [esp + 0x28]
push 3
pop edx
call fcn.004c7f90
add esp, 0xc
jmp 0x4e8f5c
lea edx, [esp + 0x7c]
mov dword [esp + 0x64], ebx
mov ecx, esi
call fcn.004e7670
mov dword [esp + 0x24], eax
test eax, eax
je 0x4e8e3d
mov edx, dword [eax + 0x44]
mov ecx, dword [edi]
call fcn.004e4038
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x20], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [edx + 0x14]
mov edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x70], eax
call fcn.004db5f2
mov eax, dword [esp + 0x24]
mov ecx, edi
mov edx, dword [esp + 0x40]
push dword [eax]
push ebx
push dword [eax + 0x14]
call fcn.004d820c
mov edx, dword [esp + 0x30]
add esp, 0xc
cmp dword [edx + 0x10], ebx
je 0x4e8dc1
mov esi, dword [edx + 0x10]
mov ecx, ebx
test ecx, ecx
je 0x4e8d90
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 4]
jge 0x4e8d92
mov ecx, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x4e8d84
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x4e8dc1
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 8]
jge 0x4e8dc1
mov eax, dword [ecx + 0x14]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x70], eax
call fcn.004db95b
mov dword [esp + 0x28], eax
push dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x74]
push dword [esp + 0x28]
push 0x26
pop edx
call fcn.004c7f90
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4e8df5
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
push 0xfffffffffffffff0
push eax
call fcn.004c83e8
pop ecx
pop ecx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc]
push ebx
push dword [eax + 8]
push dword [esp + 0x28]
push 0x1f
pop edx
call fcn.004c7f90
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push ebx
push dword [esp + 0x28]
push 0x2b
pop edx
call fcn.004c7f90
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, edi
push dword [esp + 0x48]
call fcn.004e8012
pop ecx
jmp 0x4e8f19
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.004e760b
mov byte [esp + 0x1f], al
test al, al
je 0x4e8e92
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push ebx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
call fcn.004d36ef
mov edx, eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x24], edx
pop ecx
test edx, edx
je 0x4e8e92
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1e], bl
jne 0x4e8e92
mov eax, dword [edx + 0xc]
cmp byte [esp + 0x1f], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x98
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004e7d36
movzx eax, byte [esp + 0x1f]
mov ecx, edi
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x68]
call fcn.004efc11
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
jne 0x4e8ed6
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x64]
call fcn.004d3bac
jmp 0x4e81ce
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004e7e61
cmp dword [esp + 0x20], ebx
jne 0x4e8f05
cmp byte [esp + 0x1f], bl
je 0x4e8f05
mov eax, dword [esp + 0x40]
xor edx, edx
mov ecx, dword [esp + 0xc]
inc edx
push ebx
push dword [eax + 0x14]
push ebx
call fcn.004c7f90
add esp, 0xc
mov ecx, dword [esp + 0x40]
call fcn.004f04e5
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004e7e10
mov edx, dword [esp + 0x38]
mov ecx, edi
push 8
push dword [esp + 0x30]
mov dword [esp + 0x38], ebx
call fcn.004d5a57
mov eax, dword [esp + 0x34]
mov edx, esi
mov ecx, dword [esp + 0x44]
push eax
push eax
push ecx
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push dword [esi]
mov ecx, edi
call fcn.004e4c9f
mov edx, dword [esp + 0x8c]
add esp, 0x28
mov ecx, dword [esp + 0x14]
call fcn.004d3bac
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
call fcn.004c80ba
cmp dword [esp + 0x4c], 0
jl 0x4e8f7c
mov edx, str.DISTINCT
mov ecx, edi
call fcn.004e50a1
cmp dword [esp + 0x30], 0
je 0x4e8fa9
mov edx, str.ORDER_BY
mov ecx, edi
call fcn.004e50a1
mov eax, dword [esp + 0x18]
mov edx, esi
push dword [esp + 0x3c]
mov ecx, edi
push dword [eax]
push dword [esp + 0x14]
call fcn.004e515d
add esp, 0xc
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xc]
call fcn.004c80ba
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
jmp 0x4e81d1
mov esi, eax
jmp 0x4e81ce
mov esi, dword [esp + 0x14]
xor ebx, ebx
inc ebx
jmp 0x4e81d9
mov esi, eax
jmp 0x4e8fe9
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor ebx, ebx
inc ebx
jmp 0x4e81d9
mov eax, ecx
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret