Function at 0x4cc380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xec]
mov ebp, 1
mov dword [esp + 0x8c], 0
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], ebx
test ebx, ebx
jne 0x4cc3d4
cmp dword [edi + 0x74], ebx
jne 0x4cc3c1
test byte [eax + 0x4c], 8
jne 0x4cc3c1
mov byte [edi + 0x17], 1
push edi
call fcn.004d54b0
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ebx
mov esi, dword [esp + 0xf0]
test esi, esi
je 0x4ce5fb
cmp byte [eax + 0x51], 0
jne 0x4ce5fb
cmp dword [edi + 0x24], 0
jne 0x4ce5fb
push 0
push 0
push 0
push 0x15
push edi
call fcn.004a51d0
add esp, 0x14
test eax, eax
jne 0x4ce5fb
mov eax, dword [esp + 0xf4]
cmp byte [eax], 8
ja 0x4cc446
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4cc431
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.0047a120
add esp, 8
mov eax, dword [esi + 4]
and eax, 0xfffffffe
mov dword [esi + 0x30], 0
or eax, 0x400000
mov dword [esi + 4], eax
push 0
push esi
push edi
call fcn.004cec50
add esp, 0xc
cmp dword [edi + 0x24], 0
jne 0x4ce5b0
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x51], 0
jne 0x4ce5b0
test dword [esi + 4], 0x800000
je 0x4cc4c2
mov ecx, dword [esi + 0x20]
mov eax, ebp
mov dword [esp + 0x10], eax
cmp dword [ecx], eax
jle 0x4cc4c2
mov edx, dword [ecx + 0x18]
lea ebp, [ecx + 0x5c]
mov dword [esp + 0x14], edx
lea ebx, [ebx]
cmp edx, dword [ebp + 4]
jne 0x4cc4b6
push dword [ebp]
push dword [ecx + 0x14]
call fcn.004664d0
add esp, 8
test eax, eax
je 0x4cc6a2
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x14]
inc eax
add ebp, 0x48
mov dword [esp + 0x10], eax
cmp eax, dword [ecx]
jl 0x4cc490
mov eax, dword [esp + 0xf4]
cmp byte [eax], 9
jne 0x4cc4d8
push esi
push edi
call fcn.0048dde0
add esp, 8
push esi
push edi
call fcn.004e8e40
mov ebp, eax
add esp, 8
mov dword [esp + 0x38], ebp
test ebp, ebp
jne 0x4ce5b0
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x20]
shr eax, 3
and eax, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x9c], eax
cmp dword [esi + 0x34], ebp
jne 0x4cc66d
cmp ebp, dword [edx]
jge 0x4cc66d
lea eax, [ebp*8 + 1]
add eax, ebp
test byte [edx + eax*8 + 0x24], 8
mov ecx, dword [edx + eax*8 + 0x14]
lea eax, [edx + eax*8]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
je 0x4cc5d0
push dword [eax + 0x2c]
push dword [esi + 0x24]
call fcn.004b35a0
add esp, 8
test eax, eax
je 0x4cc5c8
mov eax, dword [esp + 0x2c]
mov ecx, 0x2000
test word [eax + 0x4c], cx
jne 0x4cc5c8
mov eax, dword [esp + 0x10]
push dword [eax + 0x2c]
and byte [eax + 0x24], 0xd7
push dword [esi + 0x24]
call fcn.004eb9b0
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cc662
mov eax, dword [eax + 0x1c]
movsx ecx, word [ecx + 0x2a]
cmp ecx, dword [eax]
jne 0x4cc6cb
mov eax, dword [esp + 0x40]
test byte [eax + 4], 8
jne 0x4cc662
cmp dword [eax + 0x30], 0
je 0x4cc613
test ebp, ebp
jne 0x4cc613
test dword [esi + 4], 0x40000
je 0x4cc613
cmp dword [edx], 1
je 0x4cc662
test byte [edx + 0x74], 0xa
jne 0x4cc662
push dword [esp + 0x14]
push ebp
push esi
push edi
call fcn.0047cc40
add esp, 0x10
test eax, eax
je 0x4cc633
cmp dword [edi + 0x24], 0
jne 0x4ce5ac
or ebp, 0xffffffff
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], edx
cmp byte [eax + 0x51], 0
jne 0x4ce5ac
mov eax, dword [esp + 0xf4]
cmp byte [eax], 8
jbe 0x4cc662
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x9c], eax
inc ebp
cmp dword [esi + 0x34], 0
je 0x4cc563
cmp dword [esi + 0x34], 0
je 0x4cc6f2
push dword [esp + 0xf4]
push esi
push edi
call fcn.00494520
add esp, 0xc
mov ebx, eax
cmp dword [esi + 0x38], 0
jne 0x4cc695
push edi
call fcn.004dc580
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xd8
ret
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4cc6b2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push eax
push str.target_object_alias_may_not_appear_in_FROM_clause:__s
push edi
call fcn.004af3d0
add esp, 0xc
mov ebp, 1
jmp 0x4ce5b0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x1c]
push dword [eax]
mov eax, dword [esp + 0x24]
push dword [eax]
movsx eax, word [eax + 0x2a]
push eax
push str.expected__d_columns_for__s_but_got__d
push edi
call fcn.004af3d0
add esp, 0x14
jmp 0x4ce5ac
cmp dword [edx], 1
jle 0x4cc714
mov eax, dword [esp + 0x2c]
mov ecx, 0x8000
test word [eax + 0x4c], cx
jne 0x4cc714
push esi
push edi
call fcn.0049bd80
mov edx, dword [esp + 0x20]
add esp, 8
xor eax, eax
mov dword [esp + 0x40], eax
cmp dword [edx], eax
jle 0x4cca22
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea ebp, [edx + eax*8]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
jne 0x4cc752
mov eax, dword [ebp + 8]
test eax, eax
je 0x4cc752
push dword [ebp + 4]
push 0x515374
push eax
push 0x14
push edi
call fcn.004a51d0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4cca11
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push esi
call fcn.00490b50
mov eax, dword [esp + 0x18]
mov ecx, 0x1000
add dword [edi + 0xd4], eax
add esp, 8
mov eax, dword [esp + 0x2c]
test word [eax + 0x4c], cx
jne 0x4cc7ae
movzx eax, byte [ebp + 0x24]
shr eax, 5
and eax, 1
push eax
push dword [ebp + 0x2c]
push dword [esi + 0x24]
push dword [esp + 0x30]
push edi
call fcn.0049c1f0
add esp, 0x14
cmp dword [esp + 0x40], 0
mov eax, dword [edi + 0xf4]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xf4], eax
jne 0x4cc89f
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
je 0x4cc7df
test byte [eax + 0x74], 0xa
je 0x4cc89f
mov esi, dword [ebx + 0x6c]
mov eax, dword [edi + 0x2c]
inc esi
push esi
inc eax
push 0
push eax
push 0xd
mov dword [edi + 0x2c], eax
push ebx
mov dword [ebp + 0x1c], eax
call fcn.004d4ac0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x18], esi
mov byte [esp + 0x84], 0xd
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
push dword [eax + 0x10]
push str.CO_ROUTINE__u
push 1
push edi
call fcn.004dc4f0
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x4c]
push edi
call fcn.004cc380
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x2e], ax
push dword [ebp + 0x1c]
mov eax, dword [esp + 0xb0]
or dword [ebp + 0x28], 0x10
push ebx
mov dword [ebp + 0x20], eax
call fcn.004d5b80
lea eax, [esi - 1]
push eax
push ebx
call fcn.004dd090
mov esi, dword [esp + 0x130]
add esp, 0x40
jmp 0x4cc9ca
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x2c]
inc eax
push eax
push 0
push 0x45
mov dword [edi + 0x2c], eax
push ebx
mov dword [ebp + 0x1c], eax
call fcn.004d4a60
add esp, 0x10
mov dword [esp + 0x20], eax
test byte [ebp + 0x28], 8
lea ecx, [eax + 1]
mov dword [ebp + 0x18], ecx
jne 0x4cc8dc
push 0x11
push ebx
call fcn.004d49b0
add esp, 8
mov dword [esp + 0x10], eax
push ebp
push dword [esp + 0x1c]
call fcn.004922f0
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x4cc917
push dword [eax + 0x2c]
push dword [ebp + 0x2c]
push 0x62
push ebx
call fcn.004d4a60
mov eax, dword [esp + 0x58]
add esp, 0x10
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
mov ax, word [eax + 2]
mov word [ecx + 2], ax
jmp 0x4cc972
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x70], 0xc
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
push dword [eax + 0x10]
push str.MATERIALIZE__u
push 1
push edi
call fcn.004dc4f0
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x38]
push edi
call fcn.004cc380
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x2e], ax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cc993
push eax
push ebx
call fcn.004dd090
add esp, 8
push dword [ebp + 0x1c]
push 0x41
push ebx
call fcn.004d4a00
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, eax
test ecx, ecx
jns 0x4cc9af
mov ecx, dword [ebx + 0x6c]
dec ecx
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x4cc9be
mov eax, 0x530d04
jmp 0x4cc9c7
mov eax, dword [ebx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x1c], 0
mov byte [edi + 0x13], 0
cmp byte [eax + 0x51], 0
jne 0x4ce5ac
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push esi
call fcn.00490b50
mov eax, dword [esp + 0x18]
add esp, 8
sub dword [edi + 0xd4], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov dword [edi + 0xf4], eax
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [edx]
jl 0x4cc722
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x40], eax
mov al, byte [esi + 4]
and al, 1
mov dword [esp + 0x68], ecx
mov byte [esp + 0x37], al
mov byte [esp + 0x90], al
mov eax, dword [esi + 4]
and al, 9
cmp al, 1
jne 0x4cca97
push 0xffffffffffffffff
push ecx
push ebp
call fcn.004b3b00
add esp, 0xc
test eax, eax
jne 0x4cca93
mov ecx, dword [esp + 0x68]
cmp dword [esi + 0x44], eax
jne 0x4cca97
and dword [esi + 4], 0xfffffffe
push eax
push ecx
push dword [esp + 0x34]
call fcn.004b3ba0
mov ecx, eax
add esp, 0xc
or dword [esi + 4], 8
mov dword [esp + 0x28], ecx
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x68]
test ebp, ebp
je 0x4ccae0
push dword [ecx]
push 0
push ebp
push edi
call fcn.004c17b0
mov edx, dword [edi + 0x28]
push 0xfffffffffffffff7
push eax
push 0
lea ecx, [edx + 1]
mov dword [esp + 0xc0], edx
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x84]
mov eax, dword [ebp]
mov ecx, dword [ecx]
inc ecx
add eax, ecx
push eax
push edx
push 0x64
push ebx
call fcn.004d4b20
add esp, 0x2c
mov dword [esp + 0xb0], eax
jmp 0x4ccaeb
mov dword [esp + 0xb0], 0xffffffff
mov ecx, dword [esp + 0xf4]
cmp byte [ecx], 0xc
jne 0x4ccb0b
mov eax, dword [esp + 0x68]
push dword [eax]
push dword [ecx + 4]
push 0x64
push ebx
call fcn.004d4a60
add esp, 0x10
dec dword [edi + 0x38]
test dword [esi + 4], 0x4000
mov eax, dword [edi + 0x38]
mov dword [esp + 0xe4], eax
jne 0x4ccb2a
mov ecx, 0x140
mov word [esi + 2], cx
push eax
push esi
push edi
call fcn.00474150
add esp, 0xc
cmp dword [esi + 8], 0
jne 0x4ccb5a
mov eax, dword [esp + 0xb0]
test eax, eax
js 0x4ccb5a
push 0x6f
push eax
push ebx
call fcn.004d4eb0
add esp, 0xc
or byte [esp + 0xbc], 1
test byte [esi + 4], 1
je 0x4ccbc9
mov esi, dword [edi + 0x28]
push 0xfffffffffffffff7
push 0
push 0
lea eax, [esi + 1]
mov dword [esp + 0xa0], esi
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0xfc]
push dword [eax + 0x1c]
push edi
call fcn.004c17b0
add esp, 0x10
push eax
push 0
push 0
push esi
push 0x64
push ebx
call fcn.004d4b20
mov dword [esp + 0xb4], eax
add esp, 0x1c
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x4ccbb8
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [ebx + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov esi, dword [esp + 0xf0]
mov byte [esp + 0x91], 3
jmp 0x4ccbd1
mov byte [esp + 0x91], 0
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x28]
jne 0x4ccdad
test eax, eax
jne 0x4ccdad
movzx ecx, byte [esp + 0x37]
mov edx, 0x4000
mov ax, word [esi + 4]
neg ecx
sbb ecx, ecx
and ax, dx
and ecx, 0x100
or cx, ax
movzx eax, cx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4ccc22
push esi
push edi
call fcn.004e6d60
add esp, 8
movsx eax, word [esi + 2]
push eax
push dword [esp + 0x14]
push dword [esi + 0x1c]
push ebp
push dword [esp + 0x58]
push dword [esp + 0x2c]
push edi
call fcn.004e2e20
mov ebp, eax
add esp, 0x1c
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x4ce5ac
movzx eax, word [ebp + 0x34]
cmp ax, word [esi + 2]
jge 0x4ccc5c
mov word [esi + 2], ax
cmp byte [esp + 0x37], 0
je 0x4ccc71
mov al, byte [ebp + 0x2f]
test al, al
je 0x4ccc71
mov byte [esp + 0x91], al
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ccca7
movsx edx, byte [ebp + 0x2d]
push ebp
mov dword [esp + 0xa4], edx
call fcn.004e6860
mov dword [esp + 0xbc], eax
add esp, 4
mov eax, dword [esp + 0x1c]
sub edx, dword [eax]
neg edx
sbb edx, edx
and eax, edx
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0xb0]
test ecx, ecx
js 0x4cccc0
test eax, eax
jne 0x4cccc0
push ecx
push ebx
call fcn.004d5050
add esp, 8
cmp dword [esp + 0x14], 0
je 0x4ccd79
mov ebx, dword [edi + 0x38]
inc dword [edi + 0x2c]
mov eax, dword [esp + 0xf0]
lea esi, [ebx - 1]
sub ebx, 2
push esi
lea ebp, [ebx - 1]
mov dword [edi + 0x38], ebp
mov edi, dword [edi + 0x2c]
push edi
push dword [esp + 0x18]
push eax
push dword [esp + 0xfc]
call fcn.004e7240
push ebp
push 0
push 0xb
push dword [esp + 0x74]
call fcn.004d4a60
push esi
push dword [esp + 0x7c]
call fcn.004df7c0
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xbc]
push ebp
push ebx
push dword [esp + 0x128]
mov dword [esp + 0xf0], 0
push eax
lea eax, [esp + 0xd8]
push eax
push 0xffffffffffffffff
push esi
push dword [esp + 0x134]
call fcn.004a1850
add esp, 0x4c
push ebx
mov ebx, dword [esp + 0x58]
push ebx
call fcn.004df7c0
push edi
push 0x41
push ebx
call fcn.004d4a00
push ebp
push ebx
call fcn.004df7c0
mov edi, dword [esp + 0x108]
add esp, 0x1c
jmp 0x4ce4f3
push dword [ebp + 0x20]
lea eax, [esp + 0x94]
push dword [ebp + 0x1c]
push dword [esp + 0xfc]
push eax
lea eax, [esp + 0xac]
push eax
push 0xffffffffffffffff
push esi
push edi
call fcn.004a1850
push ebp
call fcn.004e5850
add esp, 0x24
jmp 0x4ce4f3
mov dword [esp + 0x60], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0
test eax, eax
je 0x4cce79
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
test eax, eax
jle 0x4ccdee
add ecx, 0x16
lea esp, [esp]
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x4ccde0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
test eax, eax
jle 0x4cce12
add ecx, 0x16
jmp 0x4cce00
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x4cce00
mov ecx, dword [esp + 0x28]
cmp word [esi + 2], 0x42
jle 0x4cce22
mov eax, 0x42
mov word [esi + 2], ax
test ebp, ebp
je 0x4cce7f
mov eax, dword [ecx]
cmp eax, dword [ebp]
jne 0x4cce7f
xor edx, edx
test eax, eax
jle 0x4cce5f
mov edi, dword [esp + 0x28]
mov ebx, ebp
add ecx, 0xc
sub ebx, edi
mov edi, edi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 0x14]
and al, 1
inc edx
mov byte [ecx - 0x14], al
cmp edx, dword [edi]
jl 0x4cce40
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0xec]
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebp
push ecx
call fcn.004b3b00
add esp, 0xc
test eax, eax
jne 0x4cce7f
mov dword [esp + 0x14], 1
jmp 0x4cce7f
xor eax, eax
mov word [esi + 2], ax
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
push 0
push 0x38
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
call fcn.004ad310
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
je 0x4ce5ac
push 0x38
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [edi + 0x80]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x34], eax
mov dword [edi + 0x80], ecx
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x30], eax
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov eax, dword [edi + 0x2c]
inc eax
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ecx
mov dword [ecx + 0x10], eax
test edx, edx
je 0x4ccf31
mov eax, dword [edx]
jmp 0x4ccf33
xor eax, eax
push dword [esp + 0x68]
mov dword [ecx + 0xc], eax
lea eax, [esp + 0xc8]
push eax
mov dword [ecx + 0x18], edx
call fcn.004af900
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.004af900
mov ecx, dword [esp + 0x50]
add esp, 0x10
test ecx, ecx
je 0x4cd019
cmp dword [esp + 0x28], 0
je 0x4ccfcc
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0x490a00
mov dword [esp + 0x88], esi
test eax, eax
je 0x4ccfc5
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004f37b0
mov ecx, dword [esp + 0x48]
add esp, 8
mov eax, dword [esi + 0x24]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x74], 0x46bb70
mov dword [esp + 0x88], eax
lea eax, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x80], 0x4e2e10
mov dword [esp + 0x84], 0x4e2e00
mov dword [esp + 0x88], 0
mov dword [esp + 0x78], 0
call fcn.004f37b0
add esp, 8
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x20]
mov dword [edx + 0x24], eax
cmp dword [esi + 0x28], 0
jne 0x4cd058
cmp dword [esi + 0x2c], 0
jne 0x4cd058
cmp dword [edx + 0x2c], 1
jne 0x4cd058
lea eax, [esp + 0x8c]
push eax
mov eax, dword [edx + 0x28]
push dword [eax]
push dword [esp + 0x34]
call fcn.00493ea0
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0x5b], al
jmp 0x4cd05d
mov byte [esp + 0x5b], 0
cmp dword [edx + 0x2c], 0
jle 0x4cd13c
mov ecx, dword [esp + 0xdc]
xor ebx, ebx
mov ebp, dword [esp + 0x30]
xor esi, esi
jmp 0x4cd080
mov eax, dword [ebp + 0x28]
or ecx, 0x20000
mov eax, dword [ebx + eax]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x10], eax
push dword [eax + 0x14]
lea eax, [esp + 0xc8]
push eax
call fcn.004af900
mov eax, dword [esp + 0x18]
add esp, 8
test dword [eax + 4], 0x1000000
je 0x4cd108
mov eax, dword [eax + 0x2c]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x74], 0x46bb70
mov dword [esp + 0x78], 0x4e2e10
mov dword [esp + 0x7c], 0x4e2e00
mov eax, dword [eax + 0x28]
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x70], 0
test eax, eax
je 0x4cd108
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004f37b0
add esp, 8
mov ecx, dword [esp + 0xdc]
inc esi
and ecx, 0xfffdffff
add ebx, 0x10
mov dword [esp + 0xdc], ecx
cmp esi, dword [ebp + 0x2c]
jl 0x4cd080
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0xf0]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 0x2c]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x51], 0
jne 0x4ce597
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4cdf50
mov eax, dword [edi + 0x28]
mov dword [edx + 4], eax
inc dword [edi + 0x28]
push dword [edx + 0x20]
push 0
push ecx
push edi
call fcn.004c17b0
mov ecx, dword [ebx + 0x6c]
add esp, 0x10
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x70], ecx
jg 0x4cd1a9
push 0
push edx
push eax
push 0x6f
push ebx
call fcn.00490570
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
jmp 0x4cd1e3
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0xf0]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x6f
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
mov eax, edx
cmp byte [ecx + 0x51], 0
je 0x4cd1ff
mov edx, dword [esp + 0x6c]
push edx
push 0xfffffffffffffff7
push ecx
call fcn.0047d1f0
add esp, 0xc
jmp 0x4cd235
test edx, edx
jns 0x4cd207
mov eax, dword [ebx + 0x6c]
dec eax
mov edx, dword [esp + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4cd22a
push 0xfffffffffffffff7
push edx
push eax
push ebx
call fcn.004ed1b0
add esp, 0x10
jmp 0x4cd235
test edx, edx
je 0x4cd235
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x3c], eax
lea ecx, [eax + 2]
mov eax, dword [edi + 0x38]
dec eax
mov dword [edi + 0x2c], ecx
mov dword [esp + 0x64], eax
dec eax
mov dword [edi + 0x38], eax
mov dword [esp + 0x4c], ecx
add ecx, dword [edx]
mov dword [esp + 0x44], eax
mov dword [edi + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
add eax, ecx
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cd294
push 0
push dword [esp + 0x40]
push 0
push 0x45
push ebx
call fcn.00490570
mov edx, dword [esp + 0x3c]
add esp, 0x14
jmp 0x4cd2ce
mov esi, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0xf0]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx]
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x6c]
add edx, eax
cmp dword [ebx + 0x70], ecx
jg 0x4cd2f4
mov eax, dword [esp + 0x4c]
push edx
inc eax
push eax
push 0
push 0x48
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cd32f
mov ebp, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov edi, dword [esp + 0xec]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
inc ebp
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cd34e
push 0
push dword [esp + 0x48]
push dword [esp + 0x54]
push 0xc
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cd381
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
neg eax
push 0
sbb eax, eax
and eax, 0x200
or ax, 0x40
movzx eax, ax
push eax
push 0
push dword [esp + 0x34]
push dword [esp + 0x58]
push ebp
push edi
call fcn.004e2e20
mov edx, eax
add esp, 0x1c
mov dword [esp + 0x48], edx
test edx, edx
je 0x4ce593
mov ebp, dword [esp + 0x28]
movsx ecx, byte [edx + 0x2d]
cmp ecx, dword [ebp]
jne 0x4cd3d6
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x38], eax
jmp 0x4cd6f8
cmp byte [esp + 0x37], 0
je 0x4cd3e8
test byte [esi + 4], 1
mov eax, str.DISTINCT
je 0x4cd3ed
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push edi
call fcn.004dc4f0
mov edx, dword [ebp]
add esp, 0x10
mov ebp, dword [esp + 0x30]
mov esi, edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
cmp dword [ebp + 0x20], 0
jle 0x4cd43d
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
add ecx, 0x12
movsx eax, word [ecx]
cmp eax, edx
jl 0x4cd42f
inc esi
inc edx
add ecx, 0x14
dec ebx
jne 0x4cd426
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x60], esi
cmp esi, 1
jne 0x4cd46a
mov al, byte [edi + 0x13]
test al, al
jne 0x4cd455
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x4cd494
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x18], eax
jmp 0x4cd494
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x18], ecx
cmp esi, edx
jg 0x4cd485
lea eax, [ecx + esi]
sub edx, esi
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], edx
jmp 0x4cd494
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
add eax, esi
mov dword [esp + 0x18], ecx
mov dword [edi + 0x2c], eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x34]
push edi
call fcn.004afe50
xor edx, edx
add esp, 0x14
mov dword [esp + 0x50], edx
cmp dword [ebp + 0x20], edx
jle 0x4cd504
mov edi, dword [esp + 0x5c]
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [ebp + 0x1c]
add ecx, esi
movsx eax, word [ecx + 0x12]
cmp eax, edi
jl 0x4cd4ec
mov eax, dword [esp + 0x18]
add eax, edi
push eax
movsx eax, word [ecx + 0x10]
push eax
push dword [ecx + 8]
push dword [ecx]
push ebx
call fcn.004b0240
mov edx, dword [esp + 0x64]
add esp, 0x14
inc edi
inc edx
add esi, 0x14
mov dword [esp + 0x50], edx
cmp edx, dword [ebp + 0x20]
jl 0x4cd4c0
mov edi, dword [esp + 0xec]
mov esi, dword [esp + 0x60]
mov al, byte [edi + 0x13]
test al, al
jne 0x4cd513
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x4cd522
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x50], eax
cmp dword [ebx + 0x70], ecx
jg 0x4cd545
push eax
push esi
push dword [esp + 0x20]
push 0x5b
push ebx
call fcn.00490570
mov edx, dword [esp + 0x64]
add esp, 0x14
jmp 0x4cd574
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebp + 4]
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x70], ecx
jg 0x4cd59b
push 0
push edx
push eax
push 0x83
push ebx
call fcn.00490570
mov edx, dword [esp + 0x64]
add esp, 0x14
jmp 0x4cd5ce
mov ebp, dword [esp + 0x5c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x83
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test edx, edx
je 0x4cd5e6
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4cd5e6
movzx eax, al
mov dword [edi + eax*4 + 0x98], edx
inc byte [edi + 0x13]
cmp esi, 1
jne 0x4cd609
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4cd618
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4cd618
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
jmp 0x4cd618
cmp esi, dword [edi + 0x1c]
jle 0x4cd618
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], eax
push dword [esp + 0x48]
call fcn.004e5850
mov edx, dword [edi + 0x28]
add esp, 4
mov dword [ebp + 8], edx
mov al, byte [edi + 0x13]
inc dword [edi + 0x28]
mov dword [esp + 0x60], edx
test al, al
jne 0x4cd640
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x4cd64f
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x50], eax
cmp dword [ebx + 0x70], ecx
jg 0x4cd66b
push esi
push eax
push edx
push 0x72
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cd69d
mov edi, dword [esp + 0xec]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x72
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebp + 4]
cmp dword [ebx + 0x70], ecx
jg 0x4cd6bc
push 0
push dword [esp + 0x28]
push edx
push 0x23
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cd6eb
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x23
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x48]
mov eax, 1
mov byte [ebp + 1], 1
cmp dword [esp + 0x14], 0
je 0x4cd754
mov ecx, dword [esp + 0x2c]
test byte [ecx + 0x4c], 4
jne 0x4cd754
test eax, eax
jne 0x4cd713
test byte [edx + 0x30], 8
je 0x4cd754
mov edx, dword [ebx]
mov dword [esp + 0x9c], 0
cmp byte [edx + 0x51], 0
jne 0x4cd754
mov eax, dword [esp + 0xb0]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.0047d1f0
add esp, 0xc
mov word [esi], 0xad
mov dword [esi + 0x10], 0
cmp dword [esp + 0x38], 0
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x54], ecx
je 0x4cd77e
mov edx, dword [ebp + 4]
cmp dword [ebx + 0x70], ecx
jg 0x4cd7bc
push dword [esp + 0x60]
push dword [esp + 0x54]
push edx
push 0x7d
push ebx
call fcn.00490570
add esp, 0x14
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
xor esi, esi
cmp dword [eax], esi
jle 0x4cd84f
lea ecx, [eax + 4]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x38], 0
je 0x4cd81d
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cd7ed
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push esi
push edx
push 0x59
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cd833
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x7d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4cd782
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
jmp 0x4cd837
mov eax, dword [esp + 0x1c]
add eax, esi
mov byte [ebp], 1
push eax
push dword [ecx]
push edi
call fcn.004afdb0
add esp, 0xc
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
inc esi
mov ecx, dword [esp + 0x14]
add ecx, 0x14
mov dword [esp + 0x14], ecx
cmp esi, dword [eax]
jl 0x4cd797
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4cd859
inc dword [ecx]
mov edx, dword [ebx + 0x6c]
mov esi, dword [eax]
cmp dword [ebx + 0x70], edx
jg 0x4cd87d
mov eax, dword [esp + 0x4c]
push esi
push dword [esp + 0x20]
inc eax
push eax
push 0x56
push ebx
call fcn.00490570
add esp, 0x14
mov edx, eax
jmp 0x4cd8b8
mov ebp, dword [esp + 0x4c]
lea eax, [edx + 1]
mov edi, dword [esp + 0xec]
lea ecx, [edx + edx*4]
mov dword [ebx + 0x6c], eax
inc ebp
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x56
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x4cd8d2
mov edx, dword [esp + 0x6c]
push edx
push 0xfffffffffffffff7
push eax
call fcn.0047d1f0
add esp, 0xc
jmp 0x4cd908
test edx, edx
jns 0x4cd8da
mov edx, dword [ebx + 0x6c]
dec edx
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x6c]
je 0x4cd8fd
push 0xfffffffffffffff7
push edx
push eax
push ebx
call fcn.004ed1b0
add esp, 0x10
jmp 0x4cd908
test edx, edx
je 0x4cd908
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov esi, dword [ebx + 0x6c]
lea edx, [esi + 1]
cmp dword [ebx + 0x70], esi
jg 0x4cd924
push edx
push 0
push edx
push 0x10
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cd953
mov ebp, dword [esp + 0x30]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x6c]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
cmp dword [edx + 0x70], ecx
jg 0x4cd980
push eax
mov eax, dword [esp + 0x50]
inc eax
push eax
push dword [esp + 0x24]
push 0x4c
push edx
call fcn.00490570
add esp, 0x14
jmp 0x4cd9bb
mov edi, dword [esp + 0xec]
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
inc edx
mov dword [eax + ecx*4], 0x4c
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cd9dc
mov eax, dword [esp + 0x3c]
push 0
push dword [esp + 0x68]
inc eax
push eax
push 0xc
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cda14
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
inc edx
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cda33
push 0
push dword [esp + 0x28]
push dword [esp + 0x44]
push 0x30
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cda66
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cda85
push 0
push dword [esp + 0x48]
push dword [esp + 0x54]
push 0xc
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdab8
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x6c]
test esi, esi
jns 0x4cdac2
lea esi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x4cdad1
mov eax, 0x530d04
jmp 0x4cdada
mov eax, dword [ebx + 0x68]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov esi, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [eax + 8], edx
call fcn.004eba30
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
cmp dword [ebx + 0x70], ecx
jg 0x4cdb06
push 0
push esi
push 1
push 0x45
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdb35
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x38], 0
je 0x4cdb89
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x54]
cmp dword [ebx + 0x70], ecx
jg 0x4cdb5c
push 0
push esi
push edx
push 3
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdbc8
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 3
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4cdbc8
push dword [esp + 0x48]
call fcn.004e5850
mov edx, dword [ebx]
add esp, 4
cmp byte [edx + 0x51], 0
jne 0x4cdbc8
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.0047d1f0
add esp, 0xc
mov word [esi], 0xad
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x6c]
inc esi
cmp dword [ebx + 0x70], ecx
jg 0x4cdbe9
push 0
push dword [esp + 0x68]
push esi
push 0xc
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdc18
mov edx, dword [esp + 0x64]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cdc35
push 0
push dword [esp + 0x28]
push 0
push 0xb
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdc68
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x5c], ecx
cmp dword [ebx + 0x70], ecx
jg 0x4cdc89
push 0
push dword [esp + 0x40]
push 1
push 0x45
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdcbc
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cdcd6
push 0
push 0
push esi
push 0x41
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdd05
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x64]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cdd23
push edx
push ebx
push ecx
call fcn.0049f060
add esp, 0xc
jmp 0x4cdd2c
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov esi, dword [ebx + 0x6c]
lea edx, [esi + 2]
cmp dword [ebx + 0x70], esi
jg 0x4cdd4b
push 0
push edx
push dword [esp + 0x28]
push 0x30
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdd81
mov edi, dword [esp + 0x20]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0xec]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cdda0
mov eax, dword [esp + 0x3c]
push 0
push 0
inc eax
push eax
push 0x41
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cddd8
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
inc edx
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push ebp
push edi
call fcn.0047af50
push 0x10
inc esi
push esi
push dword [esp + 0x50]
push edi
call fcn.004b2d40
push dword [esp + 0x74]
lea eax, [esp + 0xac]
push esi
push dword [esp + 0x114]
mov esi, dword [esp + 0x114]
push eax
lea eax, [esp + 0xc4]
push eax
push 0xffffffffffffffff
push esi
push edi
call fcn.004a1850
mov ecx, dword [ebx + 0x6c]
add esp, 0x38
cmp dword [ebx + 0x70], ecx
jg 0x4cde3b
mov eax, dword [esp + 0x3c]
push 0
push 0
inc eax
push eax
push 0x41
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cde6f
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
inc edx
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x44]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cde8d
push edx
push ebx
push ecx
call fcn.0049f060
add esp, 0xc
jmp 0x4cde96
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
push ebp
push edi
call fcn.0049ef00
mov ecx, dword [ebx + 0x6c]
add esp, 8
cmp dword [ebx + 0x70], ecx
jg 0x4cdebd
push 0
push dword [esp + 0x24]
push 0
push 0x45
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4cdef0
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4cdf14
push 0
push 0
push dword [esp + 0x54]
push 0x41
push ebx
call fcn.00490570
mov ebp, dword [esp + 0x38]
add esp, 0x14
jmp 0x4ce4d0
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4ce4d0
cmp dword [esi + 0x24], 0
jne 0x4ce2af
mov eax, dword [esi + 0x1c]
cmp dword [eax], 1
jne 0x4ce2af
mov ecx, dword [esi + 0x20]
cmp dword [ecx], 1
jne 0x4ce2af
cmp dword [ecx + 0x1c], 0
jne 0x4ce2af
mov ecx, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x5c], eax
cmp dword [ecx + 0x38], 0
jne 0x4ce2af
cmp byte [eax], 0xa5
jne 0x4ce2af
cmp dword [edx + 0x2c], 0
je 0x4ce2af
mov eax, dword [edx + 0x28]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x4ce2af
mov eax, dword [esp + 0x5c]
test dword [eax + 4], 0x1000002
jne 0x4ce2af
mov edx, dword [ecx + 0x48]
mov ecx, 0xffff8000
mov dword [esp + 0x20], ecx
test edx, edx
je 0x4cdffc
mov eax, dword [edi]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x4cdffc
lea ecx, [ecx]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x4cdff0
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0x28]
xor ebp, ebp
mov dword [esp + 0x1c], eax
inc eax
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x74]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x4ce02b
mov edx, edi
mov dword [esp + 0x10], edi
mov edx, dword [edx + 0x54]
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x48], edx
mov edx, 1
shl edx, cl
test dword [esp + 0x48], edx
jne 0x4ce06e
mov ebx, dword [esp + 0x10]
or edx, dword [esp + 0x48]
mov dword [ebx + 0x54], edx
mov ebx, dword [esp + 0x54]
cmp ecx, 1
jne 0x4ce06e
push dword [esp + 0x10]
call fcn.004c3c20
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x44]
push dword [eax]
push 0
push dword [eax + 0x1c]
push ecx
push edi
call fcn.004d05b0
mov edx, dword [esp + 0x58]
add esp, 0x14
test byte [edx + 0x24], 0x80
je 0x4ce0a0
mov ebp, dword [edx + 8]
test ebp, ebp
je 0x4ce0a0
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
je 0x4ce0a0
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x4ce090
mov eax, dword [esi + 0x20]
test byte [eax + 0x30], 1
jne 0x4ce0d9
mov eax, dword [edx + 8]
test eax, eax
je 0x4ce0d9
test byte [eax + 0x38], 4
jne 0x4ce0d2
movzx ecx, word [eax + 0x30]
cmp cx, word [edx + 0x30]
jge 0x4ce0d2
cmp dword [eax + 0x24], 0
jne 0x4ce0d2
test ebp, ebp
je 0x4ce0d0
cmp cx, word [ebp + 0x30]
jge 0x4ce0d2
mov ebp, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4ce0b0
test ebp, ebp
je 0x4ce0f2
mov eax, dword [ebp + 0x2c]
push ebp
push edi
mov dword [esp + 0x1c], eax
call fcn.004c1840
add esp, 8
mov dword [esp + 0x64], eax
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x5c], ecx
cmp dword [ebx + 0x70], ecx
jg 0x4ce11b
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push edx
push dword [esp + 0x24]
push 0x60
push ebx
call fcn.00490570
add esp, 0x14
mov ecx, eax
jmp 0x4ce152
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
jne 0x4ce16d
mov eax, dword [ebx + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 1
mov edx, dword [esp + 0x64]
test edx, edx
je 0x4ce1b5
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x4ce18b
push edx
push 0xfffffffffffffff7
push eax
call fcn.0047d1f0
add esp, 0xc
jmp 0x4ce1b5
mov eax, dword [ebx + 0x6c]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4ce1ae
push 0xfffffffffffffff7
push edx
push eax
push ebx
call fcn.004ed1b0
add esp, 0x10
jmp 0x4ce1b5
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x6c]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 8]
cmp dword [ebx + 0x70], ecx
jg 0x4ce1db
push 0
push edx
push dword [esp + 0x24]
push 0x5c
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4ce211
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0xf0]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4ce22e
push 0
push 0
push dword [esp + 0x24]
push 0x74
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4ce261
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [edi + 0xcb], 2
jne 0x4ce49b
mov ecx, dword [esp + 0x44]
test ebp, ebp
je 0x4ce28f
test byte [ecx + 0x24], 0x80
je 0x4ce285
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
je 0x4ce28f
mov eax, dword [ebp]
mov edx, str._USING_COVERING_INDEX
jmp 0x4ce296
mov eax, 0x515374
mov edx, eax
push eax
push edx
push dword [ecx]
push str.SCAN_TABLE__s_s_s
push 0
push edi
call fcn.004dc4f0
add esp, 0x18
jmp 0x4ce49b
cmp dword [edx + 0x24], 0
mov dword [esp + 0x10], 0
je 0x4ce36b
mov eax, dword [edx + 0x2c]
xor ecx, ecx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4ce30d
mov ebx, dword [edx + 0x28]
mov esi, eax
xor edx, edx
jmp 0x4ce2e0
mov eax, dword [ebx + edx]
test dword [eax + 4], 0x1000000
jne 0x4ce2f6
mov eax, dword [ebx + edx + 4]
test byte [eax + 4], 0x20
jne 0x4ce2fe
inc ecx
add edx, 0x10
cmp ecx, esi
jl 0x4ce2e0
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0xf0]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x4ce36b
inc dword [edi + 0x2c]
mov ecx, dword [ebx + 0x6c]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x10], edx
cmp dword [ebx + 0x70], ecx
jg 0x4ce335
push 0
push edx
push 0
push 0x45
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4ce36b
mov esi, dword [esp + 0xf0]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
push eax
push edi
call fcn.0049ef00
mov al, byte [esp + 0x63]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0xa0]
push dword [esp + 0x60]
push ebp
push edi
call fcn.004e2e20
add esp, 0x24
mov dword [esp + 0x14], eax
test eax, eax
je 0x4ce593
mov ebp, dword [esp + 0x30]
push ebp
push dword [esp + 0x14]
push edi
call fcn.004eba30
mov edx, dword [esp + 0x1c]
add esp, 0xc
test edx, edx
je 0x4ce40d
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4ce3d7
push 0
push edx
push 1
push 0x45
push ebx
call fcn.00490570
add esp, 0x14
jmp 0x4ce40d
mov esi, dword [esp + 0xf0]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x14]
test byte [edx + 0x30], 4
jne 0x4ce41c
mov eax, dword [edx + 0x1c]
jmp 0x4ce42a
movzx eax, byte [edx + 0x2c]
imul eax, eax, 0x58
mov eax, dword [eax + edx + 0x2a8]
mov dword [esp + 0x10], eax
cmp eax, dword [edx + 0x1c]
je 0x4ce48b
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4ce451
push 0
push eax
push 0
push 0xb
push ebx
call fcn.00490570
mov edx, dword [esp + 0x28]
add esp, 0x14
jmp 0x4ce48b
mov esi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0xf0]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push edx
call fcn.004e5850
push ebp
push edi
call fcn.0047af50
add esp, 0xc
mov ebp, dword [esp + 0x24]
push 0x10
push ebp
push dword [esp + 0x48]
mov dword [esp + 0xa8], 0
push edi
call fcn.004b2d40
push ebp
push ebp
push dword [esp + 0x10c]
push 0
push 0
push 0xffffffffffffffff
push esi
push edi
call fcn.004a1850
add esp, 0x30
mov ecx, dword [ebx + 0xc]
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce4ea
push ebp
push ebx
push ecx
call fcn.0049f060
add esp, 0xc
jmp 0x4ce4f3
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + ebp*4], eax
cmp byte [esp + 0x91], 3
jne 0x4ce512
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
push edi
call fcn.004dc4f0
add esp, 0x10
cmp dword [esp + 0x9c], 0
je 0x4ce55d
cmp dword [esp + 0xa0], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x4ce530
mov eax, str.ORDER_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push edi
call fcn.004dc4f0
push dword [esp + 0x104]
mov eax, dword [esp + 0x7c]
push dword [eax]
lea eax, [esp + 0xb4]
push eax
push esi
push edi
call fcn.0048e4e0
add esp, 0x24
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0xe4]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce57e
push edx
push ebx
push ecx
call fcn.0049f060
add esp, 0xc
jmp 0x4ce587
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
xor eax, eax
cmp dword [edi + 0x24], eax
setg al
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x4ce5ac
push ecx
push eax
call fcn.0047a120
add esp, 8
mov ebp, dword [esp + 0x38]
mov ecx, dword [edi + 0xd8]
test ecx, ecx
jne 0x4ce5cf
xor eax, eax
mov dword [edi + 0xd8], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret
mov edx, dword [edi + 8]
test ecx, ecx
jns 0x4ce5da
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x4ce5e9
mov eax, 0x530d04
jmp 0x4ce5f2
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [edi + 0xd8], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xd8
ret