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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x5365f0]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1e4]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x1e8]
mov dword [esi + 0x1e4], eax
inc eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x1e8], eax
mov eax, dword [esi]
mov dword [esp + 0x30], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x48], eax
test ebx, ebx
je 0x4b65d4
cmp byte [eax + 0x36], 0
jne 0x4b65d4
cmp dword [esi + 0x44], 0
jne 0x4b65d4
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.00499b50
add esp, 0x10
test eax, eax
jne 0x4b65d4
cmp byte [edi], 4
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
ja 0x4b4a02
mov ecx, dword [ebx + 0x38]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.00491d90
mov eax, 0xfffe
add esp, 8
and word [ebx + 6], ax
mov dword [ebx + 0x38], 0
push 0
push ebx
push esi
call fcn.004b3ee0
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx]
add esp, 0xc
cmp dword [esi + 0x44], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x44], eax
jne 0x4b5f7d
mov ecx, dword [esp + 0x48]
cmp byte [ecx + 0x36], 0
jne 0x4b5f7d
movzx eax, word [ebx + 6]
shr eax, 2
and eax, 1
mov edi, esi
mov dword [esp + 0x50], eax
call fcn.004b0130
mov dword [esp + 0xc], eax
test eax, eax
je 0x4b5f7d
mov ecx, dword [esp + 0x44]
cmp dword [ecx], 1
mov edx, dword [esp + 0x4c]
movzx eax, byte [edx]
jle 0x4b4a88
cmp eax, 6
je 0x4b4a75
cmp eax, 7
jne 0x4b4a88
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push esi
call fcn.00467ca0
add esp, 8
jmp 0x4b5f7d
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x3c], eax
jne 0x4b4ca3
jmp 0x4b4aa4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
movsx edx, word [ecx]
cmp eax, edx
jge 0x4b4ca3
shl eax, 6
lea eax, [eax + ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b4c95
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4b4af0
push eax
mov eax, dword [ecx + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 2
call fcn.004815b0
add esp, 0xc
jmp 0x4b4c95
lea edi, [esp + 0x38]
mov eax, ebx
mov dword [esp + 0x38], 0
call fcn.004909a0
mov ecx, dword [esp + 0x38]
add dword [esi + 0x1e0], ecx
mov edx, dword [esp + 0x10]
movzx edi, word [edx + 6]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
shr edi, 2
and edi, 1
push edi
push eax
push ecx
push esi
mov eax, ebx
call fcn.004b2f50
add esp, 0x10
test eax, eax
je 0x4b4b53
test edi, edi
je 0x4b4b46
or word [ebx + 6], 4
mov dword [esp + 0x50], 1
mov dword [esp + 0x14], 0xffffffff
jmp 0x4b4c53
mov eax, dword [esi + 0x4c]
mov edi, dword [esp + 0x2c]
inc eax
push eax
mov dword [esi + 0x4c], eax
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x10]
push 0
push 7
mov dword [esp + 0x48], 0
call fcn.004815b0
mov dword [esp + 0x44], eax
inc eax
add esp, 0xc
cmp byte [edi + 0x1e], 0
mov dword [edi + 0x14], eax
jne 0x4b4b93
mov eax, esi
call fcn.00492170
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x10]
mov dl, byte [esi + 0x1e8]
mov dword [esp + 0xe0], eax
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xdc]
push eax
push ecx
mov word [esp + 0xe4], 9
push esi
mov byte [edi + 0x1f], dl
call fcn.004b4900
fnstcw word [esp + 0x40]
movzx eax, word [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
or eax, 0xc00
fld qword [edx + 0x20]
mov dword [esp + 0x60], eax
add esp, 0xc
cmp dword [esp + 0x3c], 0
fldcw word [esp + 0x54]
fistp qword [esp + 0xd0]
mov eax, dword [esp + 0xd0]
mov dword [ecx + 0x18], eax
fldcw word [esp + 0x34]
je 0x4b4c1f
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
call fcn.00481a40
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0xc]
push edx
push 3
call fcn.00481560
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
add esp, 8
cmp dword [edx + 0x1c], ecx
jbe 0x4b4c48
mov edx, dword [edx + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov byte [esi + 0x13], 0
mov dword [esi + 0x3c], 0
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x36], 0
jne 0x4b5f7d
lea edi, [esp + 0x38]
mov eax, ebx
mov dword [esp + 0x38], 0
call fcn.004909a0
mov ecx, dword [esp + 0x38]
sub dword [esi + 0x1e0], ecx
mov eax, dword [esp + 0x4c]
cmp byte [eax], 4
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x70], edx
jbe 0x4b4c95
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x40], ecx
inc dword [esp + 0x14]
cmp dword [ebx + 0x3c], 0
je 0x4b4aa0
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx]
mov edi, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x5c], eax
movzx eax, word [ebx + 6]
and eax, 1
cmp dword [ebx + 0x3c], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
je 0x4b4d43
cmp dword [ebx + 0x44], 0
jne 0x4b4d12
xor ecx, ecx
xor edx, edx
mov eax, ebx
jmp 0x4b4ce0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ebx
mov ecx, eax
mov eax, dword [eax + 0x3c]
inc edx
test eax, eax
jne 0x4b4ce0
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4b4d12
cmp edx, eax
jle 0x4b4d12
push str.too_many_terms_in_compound_SELECT
push esi
call fcn.00467ca0
add esp, 8
jmp 0x4b5f7d
mov edx, dword [esp + 0x4c]
push ebx
mov ecx, esi
call fcn.004b0340
mov ecx, dword [esp + 0xb0]
add esp, 4
mov dword [esi + 0x1e4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x40]
push edx
call fcn.004954b0
add esp, 4
test eax, eax
jne 0x4b4d66
mov eax, dword [esp + 0x48]
test byte [eax + 0x18], 0x20
jne 0x4b4d66
mov dword [esp + 0x40], 0
mov cl, byte [ebx + 6]
mov edi, dword [esp + 0x40]
and cl, 5
cmp cl, 1
jne 0x4b4e7a
mov edx, dword [ebx]
push edx
call fcn.004954b0
add esp, 4
test eax, eax
jne 0x4b4e76
mov ecx, dword [ebx]
mov edx, dword [esp + 0x48]
push 0
push ecx
mov eax, 0xfffe
and word [ebx + 6], ax
push edx
call fcn.004915b0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 0
or edi, 0xffffffff
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x4c]
cmp byte [eax], 9
jne 0x4b4ddf
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0x2a
call fcn.004815b0
add esp, 0xc
mov eax, dword [esp + 0xc]
call fcn.00481820
fld qword [0x5222b8]
push eax
fstp qword [ebx + 0x20]
mov dword [esp + 0xd4], eax
push ebx
mov eax, esi
call fcn.004b0160
add esp, 8
cmp dword [ebx + 8], 0
jne 0x4b4e21
test edi, edi
js 0x4b4e21
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00481cf0
mov byte [eax], 0x2b
or word [ebx + 6], 0x40
test byte [ebx + 6], 1
je 0x4b4ebd
mov edi, dword [esi + 0x48]
lea ecx, [edi + 1]
mov dword [esi + 0x48], ecx
mov edx, dword [ebx]
push edx
push esi
mov dword [esp + 0x88], edi
call fcn.004aeeb0
push 0xfffffffffffffff0
push eax
push 0
push 0
push edi
mov edi, dword [esp + 0x28]
push 0x2a
mov eax, edi
call fcn.00481610
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
add esp, 0x20
test eax, eax
je 0x4b4ecb
mov ecx, edi
mov ecx, dword [ecx + 0x1c]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
jmp 0x4b4ecb
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4b4db6
push edi
push esi
call fcn.004aeeb0
mov ecx, dword [esi + 0x48]
push 0xfffffffffffffff0
push eax
mov dword [edi + 4], ecx
inc dword [esi + 0x48]
mov edx, dword [edi]
mov eax, dword [edi + 4]
push 0
add edx, 2
push edx
push eax
mov eax, dword [esp + 0x28]
push 0x2a
call fcn.00481610
mov edi, eax
add esp, 0x20
mov dword [esp + 0x10], eax
mov dword [ebx + 0x18], edi
jmp 0x4b4dbd
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], eax
cmp dword [esp + 0x50], 0
mov edi, dword [esp + 0x34]
jne 0x4b5178
test edi, edi
jne 0x4b5178
cmp dword [esp + 0x18], edi
je 0x4b4eec
mov eax, dword [ebx]
jmp 0x4b4eee
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
push 0
push eax
lea eax, [esp + 0x48]
push eax
push ecx
push edx
push esi
call fcn.004c1ae0
mov edi, eax
add esp, 0x18
mov dword [esp + 0x5c], edi
test edi, edi
je 0x4b5f7d
fld qword [ebx + 0x20]
fcomp qword [edi + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4b4f2a
fld qword [edi + 0x30]
fstp qword [ebx + 0x20]
cmp dword [esp + 0x10], 0
jl 0x4b4f4c
cmp dword [esp + 0x40], 0
jne 0x4b4f4c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
call fcn.00481b60
mov dword [ebx + 0x18], 0xffffffff
cmp byte [edi + 8], 0
je 0x4b513c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
call fcn.00481cf0
cmp byte [edi + 8], 2
mov dword [esp + 0x80], 0xffffffff
jne 0x4b5139
inc dword [esi + 0x4c]
mov edi, dword [esi + 0x4c]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx]
lea edx, [edi + 1]
mov dword [esp + 0x28], edx
add edx, ecx
lea ecx, [edi + ecx*2]
mov dword [esi + 0x4c], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov byte [eax], 7
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov eax, dword [esp + 0x44]
push 1
push esi
mov dword [esp + 0x58], edi
call fcn.00494b00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x1c]
lea ecx, [edx + ecx + 3]
mov dword [esp + 0x60], ecx
dec ecx
push ecx
push edi
push 0x1b
call fcn.004815b0
mov edx, dword [esp + 0x58]
add esp, 0x14
cmp dword [edx], 0
mov dword [esp + 0x38], 0
jle 0x4b50e9
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], eax
lea esp, [esp]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x64]
mov eax, dword [ecx + edx]
push eax
push esi
call fcn.00490680
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
add ecx, eax
push ecx
push edx
push eax
push 0x4b
mov eax, edi
call fcn.004814b0
mov ecx, dword [edi + 4]
mov edx, dword [edi]
add esp, 0x18
test ecx, ecx
je 0x4b50a5
cmp byte [edx + 0x36], 0
jne 0x4b50a5
mov eax, edi
mov eax, dword [eax + 0x1c]
lea eax, [eax + eax*4 - 5]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx + 0x10]
mov edi, edx
call fcn.00481a60
cmp dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], 0
mov eax, ecx
jne 0x4b5098
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x4b50b5
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfc
jmp 0x4b50b5
mov ecx, dword [esp + 0x3c]
mov eax, 0xfffffffc
mov edi, edx
call fcn.00481a60
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4b50cb
mov eax, dword [eax + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x64], 0x14
inc dword [esp + 0x1c]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [ecx]
jl 0x4b5010
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0x14]
mov edi, dword [esp + 0xc]
push eax
push 0
push 1
mov eax, edi
call fcn.004815b0
mov ecx, dword [esp + 0x5c]
add esp, 0xc
push ecx
push 0
push 7
mov eax, edi
call fcn.004815b0
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add esp, 0xc
push eax
push ecx
push edx
push 0xd
mov eax, edi
call fcn.004814b0
mov edi, dword [esp + 0x6c]
add esp, 0x10
jmp 0x4b513c
mov byte [eax], 0x95
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push 0
push 0
push edx
push ebx
push esi
call fcn.004aeaa0
push edi
call fcn.004c2630
mov edi, dword [esp + 0x38]
add esp, 0x2c
jmp 0x4b5f15
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
test edi, edi
je 0x4b51e2
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
test eax, eax
jle 0x4b51ad
add ecx, 0x10
lea ebx, [ebx]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x4b51a0
mov eax, dword [edi]
mov ecx, dword [edi + 8]
test eax, eax
jle 0x4b51cd
add ecx, 0x10
lea esp, [esp]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x4b51c0
fld qword [0x522328]
fcom qword [ebx + 0x20]
fnstsw ax
test ah, 5
jp 0x4b51e9
fstp qword [ebx + 0x20]
jmp 0x4b51eb
fld1
fstp qword [ebx + 0x20]
jmp 0x4b51eb
fstp st(0)
mov eax, dword [esp + 0xc]
call fcn.00481820
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x78], eax
xor eax, eax
lea edx, [esp + 0x84]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], edx
cmp edi, eax
je 0x4b5259
mov eax, dword [edi]
inc eax
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
call fcn.00495990
mov ebx, dword [esp + 0x44]
lea eax, [esp + 0xb4]
add esp, 4
push eax
call fcn.00495990
mov ecx, dword [esp + 0x3c]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0x4b52ad
lea edx, [esp + 0xb0]
push edx
call fcn.00495950
add esp, 4
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
cmp dword [esp + 0xa8], edi
jle 0x4b5308
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0xa4]
or byte [esp + 0xcc], 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
mov ebx, dword [eax + 0x10]
lea ecx, [esp + 0xb0]
push ecx
call fcn.00495990
and byte [esp + 0xd0], 0xf7
add dword [esp + 0x14], 0x10
inc edi
add esp, 4
cmp edi, dword [esp + 0xa8]
jl 0x4b52c8
mov edx, dword [esp + 0x48]
cmp byte [edx + 0x36], 0
jne 0x4b5f7d
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4b5fe5
mov eax, dword [esi + 0x48]
mov dword [esp + 0x88], eax
push ecx
inc eax
push esi
mov dword [esi + 0x48], eax
call fcn.004aeeb0
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x14]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xa0]
push 0
push eax
push ecx
push 0x2b
mov eax, edi
call fcn.00481610
inc dword [esi + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x4c]
lea ebx, [eax + 1]
mov dword [esp + 0x78], eax
lea eax, [ebx + 1]
mov dword [esp + 0x84], eax
mov dword [esi + 0x4c], eax
mov eax, edi
mov dword [esp + 0x74], ebx
call fcn.00481820
inc dword [esi + 0x4c]
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x9c], eax
mov eax, edi
mov dword [esp + 0x70], edx
call fcn.00481820
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x4c]
lea ecx, [eax + 1]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x54]
add eax, dword [ecx]
push ebx
mov dword [esi + 0x4c], eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
add ecx, eax
push 0
push 7
mov eax, edi
mov dword [esp + 0x68], edx
mov dword [esi + 0x4c], ecx
call fcn.004815b0
mov edx, dword [esp + 0x84]
add esp, 0x2c
push edx
push 0
push 7
mov eax, edi
call fcn.004815b0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov eax, dword [esp + 0x78]
add esp, 0xc
lea edx, [ecx + eax - 1]
push edx
push eax
push 0
push 0xa
mov eax, edi
call fcn.004814b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push 2
mov eax, edi
call fcn.004815b0
add esp, 0x1c
push 0
push 0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push esi
call fcn.004c1ae0
add esp, 0x18
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4b5f7d
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x4b5460
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ebx
jmp 0x4b57c1
cmp dword [esp + 0x18], 0
je 0x4b5476
mov ecx, dword [esp + 0x60]
test byte [ecx + 6], 1
mov eax, str.DISTINCT
je 0x4b547b
mov eax, str.GROUP_BY
mov ecx, esi
call fcn.004aef90
mov eax, dword [ebx]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov ecx, eax
mov dword [esp + 0x18], eax
test edx, edx
jle 0x4b54c0
mov ebx, dword [esp + 0x98]
add ebx, 0xc
cmp dword [ebx], eax
jl 0x4b54b6
inc ecx
inc eax
add ebx, 0x18
dec edx
jne 0x4b54b0
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
mov dword [esp + 0x1c], ebx
cmp ecx, eax
jg 0x4b54db
lea edx, [ebx + ecx]
sub eax, ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], eax
jmp 0x4b54ea
mov eax, dword [esi + 0x4c]
lea ebx, [eax + 1]
add eax, ecx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x4c], eax
mov eax, esi
call fcn.00493610
mov eax, dword [esp + 0x34]
push 0
push esi
mov edx, ebx
call fcn.00494b00
add ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
push ebx
push ecx
push 0x37
mov eax, edi
call fcn.004815b0
mov edx, dword [esp + 0x28]
add esp, 0x14
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0
jle 0x4b55b8
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
xor ebx, ebx
mov edx, dword [esp + 0x20]
cmp dword [ebx + eax + 0xc], edx
jl 0x4b55a3
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + eax + 4]
push 0
push ecx
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 8]
push edx
push ecx
mov edi, esi
call fcn.00493570
add esp, 0x10
cmp dword [esp + 0x28], eax
je 0x4b558b
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0xf
call fcn.004815b0
add esp, 0xc
mov edi, dword [esp + 0xc]
mov eax, 1
add dword [esp + 0x20], eax
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 0x18
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x9c]
jl 0x4b5549
mov al, byte [esi + 0x13]
test al, al
jne 0x4b55cb
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x28], eax
jmp 0x4b55db
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov edx, dword [esi + ecx*4 + 0x1c]
mov dword [esp + 0x28], edx
mov ebx, dword [edi + 0x1c]
cmp dword [edi + 0x20], ebx
jg 0x4b55f0
mov edi, dword [esp + 0xc]
call fcn.00481430
test eax, eax
jne 0x4b5625
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
inc dword [eax + 0x1c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x1f
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x20], eax
jg 0x4b564f
mov edi, ebx
call fcn.00481430
test eax, eax
jne 0x4b567c
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x60
jmp 0x4b5680
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4b56a9
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x4b56a9
xor eax, eax
lea ecx, [esi + 0x64]
cmp dword [ecx + 0x10], edi
je 0x4b56fb
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x4b5691
movzx eax, dl
mov dword [esi + eax*4 + 0x1c], edi
inc byte [esi + 0x13]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, esi
call fcn.00493240
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x3c]
jle 0x4b56cb
mov edx, ecx
mov eax, edi
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004c2630
mov ecx, dword [esi + 0x48]
mov al, byte [esi + 0x13]
add esp, 4
lea edx, [ecx + 1]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x8c], ecx
mov dword [esi + 0x48], edx
test al, al
jne 0x4b5701
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
jmp 0x4b570d
mov byte [ecx + 8], 1
jmp 0x4b56a9
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x20], eax
jg 0x4b5730
mov edi, ebx
call fcn.00481430
test eax, eax
jne 0x4b575d
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc dword [ebx + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x2c
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x20], eax
jg 0x4b5783
mov edi, ebx
call fcn.00481430
test eax, eax
jne 0x4b57ae
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x46
mov eax, esi
mov byte [esp + 0x85], 1
call fcn.00493610
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, esi
call fcn.00493610
cmp dword [esp + 0x10], 0
je 0x4b5823
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0x1c]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x18], ecx
mov edi, eax
cmp dword [eax + 0x20], ebx
jg 0x4b57f8
call fcn.00481430
test eax, eax
jne 0x4b5823
mov eax, dword [edi + 4]
inc dword [edi + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3e
mov eax, dword [esp + 0x34]
cmp dword [eax], 0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], 0
jle 0x4b59a4
lea esp, [esp]
cmp dword [esp + 0x10], 0
je 0x4b58b9
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x20], eax
jg 0x4b585e
mov edi, ebx
call fcn.00481430
test eax, eax
jne 0x4b5893
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
inc dword [ebx + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
add ecx, dword [esp + 0x3c]
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x1d
cmp dword [esp + 0x20], 0
jne 0x4b598f
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4b598f
mov eax, dword [ebx + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x20
jmp 0x4b598f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x84], 1
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x4b592e
cmp byte [eax], 0x84
jne 0x4b592e
mov eax, dword [eax + 0x18]
mov edi, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x20], eax
jg 0x4b5909
call fcn.00481430
test eax, eax
jne 0x4b598f
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x18]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov word [eax], 0xe
jmp 0x4b5984
mov edi, dword [esp + 0x1c]
push edi
push eax
push esi
call fcn.004938c0
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x4b598f
mov edi, dword [esi + 8]
test edi, edi
je 0x4b598f
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x20], eax
jg 0x4b5961
call fcn.00481430
test eax, eax
jne 0x4b598f
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x18]
inc dword [edi + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov word [eax], 0xf
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov byte [eax + 3], cl
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [edx]
jl 0x4b5840
mov eax, dword [esp + 0x34]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x20], esi
jg 0x4b59c8
mov edi, ebx
call fcn.00481430
test eax, eax
je 0x4b59c8
mov esi, 1
jmp 0x4b59f9
mov eax, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov ecx, dword [esp + 0x6c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x18
mov edx, dword [esp + 0x68]
push edx
push ebx
mov ecx, 0xfffffffa
mov eax, esi
call fcn.00481ba0
mov esi, dword [ebx + 0x1c]
add esp, 8
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x20], esi
jg 0x4b5a25
mov edi, ebx
call fcn.00481430
test eax, eax
jne 0x4b5a4b
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + 1]
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov word [eax], 0x19
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
push eax
push ecx
call fcn.004936e0
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
add esp, 8
cmp dword [esi + 0x20], ebx
jg 0x4b5a7e
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5aaa
mov eax, dword [esi + 4]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x64]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x7c]
xor ebx, ebx
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 2
jmp 0x4b5aac
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x4b5ac3
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5aef
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x68]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x54]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x78]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x78
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x4b5b06
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5b32
mov eax, dword [esp + 0x68]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x50]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jl 0x4b5b4b
mov ecx, dword [esi + 0x1c]
cmp ecx, eax
jbe 0x4b5b4b
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x84]
push eax
push ecx
call fcn.004b42d0
mov eax, dword [esi + 0x1c]
add esp, 8
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x4b5b77
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5ba4
mov eax, dword [esp + 0x68]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov ecx, 1
add dword [esi + 0x1c], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 7
cmp dword [esp + 0x10], ebx
je 0x4b5bfa
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x4b5bcc
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5c3f
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x68]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x6c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x74]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x51
jmp 0x4b5c3f
mov edx, dword [esp + 0x5c]
push edx
call fcn.004c2630
mov ecx, dword [esi + 4]
add esp, 4
cmp ecx, ebx
je 0x4b5c3f
mov eax, dword [esp + 0x24]
mov edi, dword [esi]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x10]
call fcn.00481a60
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax], 0x95
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b5c56
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5c82
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x7c]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 2
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b5c99
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5cc1
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x74], eax
cmp dword [esi + 0x20], eax
jg 0x4b5cdc
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5d09
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, 1
add dword [esi + 0x1c], ecx
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 7
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b5d20
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5d48
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x64]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4b5d61
mov edx, dword [esp + 0x7c]
lea ecx, [edx*4 + 4]
mov edx, dword [esi + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x20], eax
jg 0x4b5d78
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5da3
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x58]
add ecx, 2
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x78
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b5dba
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5de2
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x34]
call fcn.004b41c0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
add esp, 4
push 8
inc edi
push edi
push ecx
push edx
call fcn.00494fe0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x54]
push edi
push ecx
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
push ebx
push ebx
push ecx
push eax
push edx
call fcn.004aeaa0
mov eax, dword [esi + 0x1c]
add esp, 0x38
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b5e59
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5e81
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4b5e9a
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x84]
push edx
push eax
call fcn.004b3f70
mov eax, dword [esi + 0x1c]
add esp, 8
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b5ecc
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b5ef4
mov esi, dword [esp + 0xc]
xor ebx, ebx
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x50]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4b5f15
mov edx, dword [esp + 0x78]
lea ecx, [edx*4 + 4]
mov edx, dword [edi + 0x1c]
sub eax, ecx
mov dword [eax], edx
cmp dword [esp + 0x80], 0
jl 0x4b5f2b
mov eax, str.DISTINCT
mov ecx, esi
call fcn.004aef90
cmp dword [esp + 0x40], 0
je 0x4b5f59
mov eax, str.ORDER_BY
mov ecx, esi
call fcn.004aef90
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x64]
push edx
push edi
push eax
push esi
call fcn.004af190
add esp, 0x14
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4b5f75
mov ecx, dword [esp + 0xd0]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0xac]
mov dword [esi + 0x1e4], edx
test edi, edi
jne 0x4b5fae
mov eax, dword [esp + 0x4c]
cmp byte [eax], 5
jne 0x4b5fae
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
push ecx
push edx
push esi
call fcn.004afb10
add esp, 0xc
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x98]
mov ecx, esi
call fcn.00465b20
mov eax, dword [esp + 0xa4]
mov ecx, esi
call fcn.00465b20
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x84]
mov eax, edi
mov dword [esp + 0x58], 0
call fcn.004b3580
mov ebx, eax
mov dword [esp + 0x74], ebx
test ebx, ebx
je 0x4b61f1
mov edi, dword [esp + 0x30]
mov esi, dword [ebx + 0x44]
mov ecx, dword [edi]
call fcn.004ad690
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x2c], ecx
inc ecx
mov dword [edi + 0x48], ecx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x7c], eax
xor esi, esi
push eax
mov eax, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x58], edx
call fcn.0049e680
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x80]
add esp, 4
push eax
push esi
push ecx
push edx
mov eax, edi
call fcn.00499be0
mov eax, dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x4b60a7
cmp byte [eax + 0x2e], 0
jne 0x4b607b
test esi, esi
je 0x4b6079
mov ecx, dword [eax + 0x24]
cmp ecx, dword [esi + 0x24]
jge 0x4b607b
mov esi, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4b6067
mov dword [esp + 0x6c], esi
test esi, esi
je 0x4b60a7
mov edx, dword [esi + 0x24]
cmp edx, dword [ebx + 8]
jge 0x4b60a7
mov eax, dword [esi + 0x28]
push esi
push edi
mov dword [esp + 0x5c], eax
call fcn.0049ec90
add esp, 8
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b60c2
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b60f7
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x7c]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x27
cmp dword [esp + 0x10], 0
je 0x4b6143
mov ecx, dword [esi + 4]
mov edi, dword [esi]
test ecx, ecx
je 0x4b6135
cmp byte [edi + 0x36], 0
jne 0x4b6135
mov eax, dword [esi + 0x1c]
lea edx, [eax + eax*4 - 5]
movsx eax, byte [ecx + edx*4 + 1]
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx + 0x10]
call fcn.00481a60
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
mov ebx, dword [esp + 0x74]
jmp 0x4b6143
mov ecx, dword [esp + 0x10]
mov eax, 0xfffffff0
call fcn.00481a60
mov ecx, dword [esp + 0xa4]
mov eax, dword [esi + 0x1c]
mov edx, dword [ecx + 8]
mov dword [esp + 0x74], edx
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b6168
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b6197
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x20
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x4b61ae
mov edi, esi
call fcn.00481430
test eax, eax
jne 0x4b61d9
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x2d
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
mov eax, ebx
call fcn.004b4800
mov esi, dword [esp + 0x30]
jmp 0x4b62da
mov eax, edi
mov dword [esp + 0x2c], 0
call fcn.004b3510
mov bl, al
test bl, bl
je 0x4b6246
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov edi, dword [esp + 0x48]
push 0
push edx
push edi
call fcn.004915b0
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], eax
test eax, eax
je 0x4b6246
cmp byte [edi + 0x36], 0
jne 0x4b6246
mov edx, dword [eax + 8]
cmp bl, 1
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov byte [ecx], 0x98
lea edx, [esp + 0x84]
push edx
push esi
call fcn.004b3f70
mov eax, dword [esp + 0x64]
movzx ecx, bl
push ecx
mov ecx, dword [esp + 0x7c]
push 0
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push esi
call fcn.004c1ae0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x4b628f
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.00491d90
add esp, 8
jmp 0x4b5f7d
lea ecx, [esp + 0x84]
push ecx
push esi
call fcn.004b42d0
add esp, 8
cmp dword [esp + 0x2c], 0
jne 0x4b62bf
test bl, bl
je 0x4b62bf
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0xc]
push edx
push 0
push 1
call fcn.004815b0
add esp, 0xc
push edi
call fcn.004c2630
lea eax, [esp + 0x88]
add esp, 4
push eax
mov eax, esi
call fcn.004b41c0
add esp, 4
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
push 8
push ecx
push edx
push esi
mov dword [esp + 0x50], 0
call fcn.00494fe0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov eax, dword [esp + 0x5c]
movzx edx, byte [eax]
mov edi, dword [esi + 8]
mov eax, dword [eax + 4]
add esp, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
test edi, edi
je 0x4b65bd
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
mov esi, edi
call fcn.004ae940
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
cmp dword [ebx + 8], 0
mov edx, dword [ecx]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], edx
jne 0x4b6358
mov eax, dword [esi + 0x4c]
inc eax
mov dword [ebx + 8], eax
mov eax, edx
mov dword [ebx + 0xc], eax
add dword [esi + 0x4c], eax
cmp dword [esp + 0x10], 3
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], ecx
je 0x4b6389
mov eax, esi
call fcn.00493610
mov eax, dword [esp + 0x38]
xor edx, edx
cmp dword [esp + 0x10], 5
sete dl
push edx
mov edx, dword [esp + 0x18]
push esi
call fcn.00494b00
add esp, 8
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 9
ja case.0x4b6397.4
jmp dword [eax*4 + 0x4b65f0]
mov al, byte [esi + 0x13]
test al, al
jne 0x4b63ad
inc dword [esi + 0x4c]
mov esi, dword [esi + 0x4c]
jmp 0x4b63b9
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov esi, dword [esi + eax*4 + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
push ecx
push edx
push 0x1f
mov eax, edi
call fcn.004814b0
mov eax, dword [esp + 0x30]
push esi
push eax
push 0x61
mov eax, edi
call fcn.004815b0
mov edx, dword [esp + 0x4c]
add esp, 0x1c
call fcn.00495a10
jmp case.0x4b6397.4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push 0x62
mov eax, edi
call fcn.004814b0
add esp, 0x10
jmp case.0x4b6397.4
mov al, byte [esi + 0x13]
test al, al
jne 0x4b641c
inc dword [esi + 0x4c]
mov ebx, dword [esi + 0x4c]
jmp 0x4b6428
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov ebx, dword [esi + ecx*4 + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebx
push edx
push eax
push 0x1f
mov eax, edi
call fcn.004814b0
mov ecx, esi
call fcn.004959f0
mov ecx, dword [esp + 0x30]
mov esi, eax
push esi
push ecx
push 0x38
mov eax, edi
call fcn.004815b0
mov edx, dword [esp + 0x3c]
add esp, 0x1c
push esi
push ebx
push edx
push 0x39
mov eax, edi
call fcn.004814b0
mov eax, dword [edi + 4]
add esp, 0x10
test eax, eax
je 0x4b647c
mov ecx, dword [edi + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 8
mov edx, dword [esp + 0x30]
call fcn.00495a10
mov esi, ebx
call fcn.00495a10
jmp case.0x4b6397.4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
mov ecx, dword [eax + 8]
mov bl, byte [ebx + 1]
mov eax, dword [ecx]
add edx, 5
mov dword [esp + 0x24], edx
call fcn.00490770
mov edx, dword [esp + 0x24]
mov ecx, esi
mov byte [edx], al
call fcn.004959f0
push 1
push edx
mov edx, dword [esp + 0x1c]
mov ebx, eax
push ebx
push 1
push edx
push 0x1f
mov eax, edi
call fcn.00481610
mov edi, dword [esp + 0x2c]
mov ecx, 1
mov eax, esi
call fcn.00493240
mov eax, dword [esp + 0x38]
push ebx
push eax
mov eax, dword [esp + 0x5c]
push 0x61
call fcn.004815b0
mov edx, dword [esp + 0x54]
add esp, 0x24
mov esi, ebx
call fcn.00495a10
jmp 0x4b656b
mov ecx, dword [esp + 0x20]
push ecx
push 1
push 7
mov eax, edi
call fcn.004815b0
add esp, 0xc
jmp case.0x4b6397.4
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
push 1
push edx
call fcn.004936e0
add esp, 8
jmp case.0x4b6397.4
cmp dword [esp + 0x10], 0xa
jne 0x4b6548
mov eax, dword [ebx + 4]
push eax
push 4
mov eax, edi
call fcn.00481560
add esp, 8
jmp case.0x4b6397.4
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push ecx
push ebx
push 0x10
mov eax, edi
call fcn.004815b0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edi, ebx
mov eax, esi
call fcn.00493240
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x4b65b9
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0x20], esi
jg 0x4b658f
call fcn.00481430
test eax, eax
jne 0x4b65b9
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
inc dword [edi + 0x1c]
mov edx, dword [esp + 0x78]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], ecx
mov word [eax], 0x7a
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.00491d90
add esp, 8
jmp 0x4b5ef8
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004d5564
mov esp, ebp
pop ebp
ret