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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x8d3fc4]
xor eax, esp
mov dword [esp + 0xf0], eax
and dword [esp + 0x6c], 0
push ebx
mov ebx, ecx
mov dword [esp + 0x54], 1
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov eax, dword [ebx]
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x18], eax
call fcn.0049bbde
mov dword [esp + 0x14], eax
test esi, esi
je 0x4a1488
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x4a1488
push eax
push eax
push eax
push 0x15
pop edx
mov ecx, ebx
call fcn.00486715
add esp, 0xc
test eax, eax
jne 0x4a1488
cmp byte [edi], 6
ja 0x49fabd
cmp dword [esi + 0x30], eax
je 0x49faaf
push dword [esi + 0x30]
mov edx, fcn.0047d920
mov ecx, ebx
call fcn.00499434
and dword [esi + 0x30], 0
pop ecx
mov eax, dword [esi + 4]
and eax, 0xfffffffe
or eax, 0x400000
mov dword [esi + 4], eax
push 0
mov edx, esi
mov ecx, ebx
call fcn.0049f41b
cmp dword [ebx + 0x24], 0
pop ecx
jne 0x49fb0e
mov edi, dword [esi + 4]
test edi, 0x800000
je 0x49fb27
mov edx, dword [esi + 0x20]
lea eax, [edx + 8]
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.0049f9a1
test eax, eax
je 0x49fb1e
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x49faff
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
push eax
push str.target_object_alias_may_not_appear_in_FROM_clause:__s
push ebx
call fcn.00453b99
add esp, 0xc
mov ecx, ebx
call fcn.0046bc29
mov eax, dword [esp + 0x5c]
jmp 0x4a148b
and edi, 0xff7fffff
mov dword [esi + 4], edi
mov eax, dword [esp + 0x48]
cmp byte [eax], 9
jne 0x49fb39
mov edx, esi
mov ecx, ebx
call fcn.0049b5ff
mov edx, esi
mov ecx, ebx
call fcn.004b380a
test eax, eax
jne 0x49fb0e
mov eax, dword [esi + 0x20]
lea edi, [esp + 0xa0]
mov dword [esp + 0x34], eax
xor edx, edx
mov eax, dword [esi + 4]
shr eax, 3
and eax, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x70], eax
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0xa0], eax
cmp dword [esi + 0x34], edx
jne 0x49fceb
mov edi, dword [esp + 0x34]
cmp edx, dword [edi]
jge 0x49fd2d
imul ecx, edx, 0x48
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + edi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + edi + 0x18]
mov dword [esp + 0x3c], eax
mov al, byte [ecx + edi + 0x2c]
and al, 0x18
cmp al, 8
jne 0x49fbed
mov edx, dword [ecx + edi + 0x34]
mov ecx, dword [esi + 0x24]
call fcn.004817af
test eax, eax
je 0x49fbe9
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x2000
jne 0x49fbe9
mov edx, dword [esp + 0x20]
and byte [edx + edi + 0x2c], 0xd7
movzx eax, byte [edi + 0x2c]
mov edx, dword [edx + edi + 0x34]
and eax, 0x40
mov ecx, dword [esi + 0x24]
push eax
call fcn.00499f20
pop ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x49fcdc
mov eax, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
movsx eax, word [ebx + 0x22]
mov ebx, dword [esp + 0x40]
cmp eax, dword [esp + 0x2c]
jne 0x49fd0f
test byte [ecx + 4], 8
jne 0x49fcdc
cmp dword [ecx + 0x30], 0
je 0x49fc87
cmp dword [esi + 0x30], 0
jne 0x49fc33
cmp dword [edi], 1
jle 0x49fc6f
cmp dword [ecx + 0x3c], 0
jne 0x49fc6f
mov eax, 0x8000000
test dword [ecx + 4], eax
jne 0x49fc6f
test dword [esi + 4], eax
jne 0x49fc6f
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x40000
jne 0x49fc6f
push dword [ecx + 0x30]
mov edx, fcn.0047d920
mov ecx, ebx
call fcn.00499434
mov eax, dword [esp + 0x10]
pop ecx
and dword [eax + 0x30], 0
jmp 0x49fc87
test edx, edx
jne 0x49fc87
test dword [esi + 4], 0x40000
je 0x49fc87
cmp dword [edi], 1
je 0x49fcdc
test byte [edi + 0x74], 0x22
jne 0x49fcdc
push dword [esp + 0x70]
mov eax, dword [esp + 0x14]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0049d77b
pop ecx
pop ecx
test eax, eax
je 0x49fcb0
cmp dword [ebx + 0x24], 0
jne 0x49fb0e
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x34], edi
cmp byte [eax + 0x57], 0
jne 0x49fb0e
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
cmp byte [eax], 8
jbe 0x49fcdc
mov eax, dword [esi + 0x30]
mov dword [esp + 0xa0], eax
inc edx
cmp dword [esi + 0x34], 0
mov dword [esp + 0x10], edx
je 0x49fb85
push dword [esp + 0x48]
mov edx, esi
mov ecx, ebx
call fcn.0049c1c2
cmp dword [esi + 0x38], 0
mov edi, eax
pop ecx
jne 0x49fd08
mov ecx, ebx
call fcn.0046bc29
mov eax, edi
jmp 0x4a148b
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push dword [ecx]
push eax
push str.expected__d_columns_for__s_but_got__d
push ebx
call fcn.00453b99
add esp, 0x14
jmp 0x49fb0e
mov eax, dword [esi + 0x24]
test eax, eax
je 0x49fd4f
cmp byte [eax], 0x2c
jne 0x49fd4f
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x8000
jne 0x49fd4f
mov edx, esi
mov ecx, ebx
call fcn.0049e156
xor eax, eax
mov edx, 0x858903
mov dword [esp + 0x58], eax
cmp dword [edi], eax
jle 0x4a015d
mov dword [esp + 0x34], edi
imul eax, eax, 0x48
add eax, 8
add edi, eax
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
jne 0x49fd8f
cmp dword [edi + 8], eax
je 0x49fd8f
push dword [edi + 4]
mov ecx, ebx
push edx
push dword [edi + 8]
push 0x14
pop edx
call fcn.00486715
add esp, 0xc
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a0143
and dword [esp + 0xc], 0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0047c4ef
mov eax, dword [esp + 0xc]
mov edx, 0x100
add dword [ebx + 0xdc], eax
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x1000
jne 0x49fdf3
test dword [edi + 0x28], edx
je 0x49fddd
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x12], 0
je 0x49fdf3
cmp dword [eax], 2
jge 0x49fdf3
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edi
push dword [esi + 0x24]
call fcn.0049e20c
pop ecx
pop ecx
mov edx, 0x100
cmp dword [esp + 0x58], 0
mov eax, dword [ebx + 0xfc]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0xfc], eax
jne 0x49ff03
cmp dword [ecx], 1
je 0x49fe24
test byte [ecx + 0x74], 0x22
je 0x49ff03
test dword [edi + 0x28], edx
je 0x49fe36
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x12], 0
je 0x49ff03
test byte [ecx + 0x2c], 0x40
jne 0x49ff03
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x6c]
inc esi
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push esi
push 0
push eax
push 0xb
pop edx
mov dword [edi + 0x1c], eax
call fcn.0046b9a1
mov eax, dword [edi + 0x1c]
add esp, 0xc
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [edi + 0x18], esi
mov byte [esp + 0x84], 0xd
push edi
push str.CO_ROUTINE___S
push 1
push ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call fcn.0046bbd8
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
call fcn.0049fa1a
mov ecx, dword [edi + 0x10]
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x26], ax
mov eax, dword [esp + 0x90]
or dword [edi + 0x28], 0x20
mov edx, dword [edi + 0x1c]
mov dword [edi + 0x20], eax
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0046bcdd
lea edx, [esi - 1]
mov ecx, edi
call fcn.0046c1e8
mov ecx, dword [edi + 0x6c]
mov esi, dword [esp + 0x54]
mov dword [eax + 8], ecx
and dword [ebx + 0x1c], 0
mov byte [ebx + 0x13], 0
jmp 0x4a0111
test dword [edi + 0x28], edx
je 0x49ff53
mov eax, dword [edi + 0x44]
mov dword [esp + 0x20], eax
cmp dword [eax + 4], 0
jle 0x49ff53
mov ecx, dword [esp + 0x14]
push 0
push dword [eax + 4]
push dword [eax + 8]
push 0xa
pop edx
call fcn.0046b9a1
mov eax, dword [edi + 0x2c]
add esp, 0xc
mov edi, dword [esp + 0x20]
cmp eax, dword [edi + 0xc]
je 0x49ff4d
mov ecx, dword [esp + 0x14]
push 0
push dword [edi + 0xc]
push eax
push 0x73
pop edx
call fcn.0046b9a1
add esp, 0xc
mov ax, word [edi + 0x10]
jmp 0x49ffa5
mov edx, edi
call fcn.0049f8e8
mov dword [esp + 0xc], eax
test eax, eax
je 0x49ffb2
cmp dword [eax + 0x18], 0
je 0x49ff83
mov ecx, dword [esp + 0x14]
push 0
push dword [eax + 0x18]
push dword [eax + 0x1c]
push 0xa
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x14]
push 0
push dword [eax + 0x2c]
push dword [edi + 0x2c]
push 0x73
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [eax + 0x14]
mov ax, word [eax + 2]
mov ecx, dword [esp + 0x10]
mov word [ecx + 2], ax
jmp 0x4a0111
xor ecx, ecx
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push ecx
push ecx
push ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
push 9
pop edx
mov dword [edi + 0x1c], eax
call fcn.0046b9a1
or dword [edi + 0x28], 0x10
add esp, 0xc
mov dword [esp + 0x28], eax
inc eax
test byte [edi + 0x28], 8
mov dword [esp + 0x20], eax
mov dword [edi + 0x18], eax
jne 0x4a0001
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push eax
push eax
push 0xf
pop edx
call fcn.0046b9a1
add esp, 0xc
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0x2c]
xor eax, eax
push edi
push str.MATERIALIZE___S
push 1
push ebx
mov byte [esp + 0x94], 0xc
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call fcn.0046bbd8
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x28]
call fcn.00491a1a
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x94]
push eax
call fcn.0049fa1a
mov edx, dword [esp + 0xac]
add esp, 0x14
test edx, edx
je 0x4a007c
mov ecx, dword [esp + 0x18]
call fcn.00450d17
mov eax, dword [esp + 0x10]
and dword [esp + 0x98], 0
mov ecx, dword [edi + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x26], ax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a00ac
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.0046c1e8
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x24]
push dword [edi + 0x1c]
push 0x43
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x14]
call fcn.0046c1e8
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov ecx, 0x100
and dword [ebx + 0x1c], 0
mov byte [ebx + 0x13], 0
mov eax, dword [edi + 0x28]
and eax, 0x108
cmp eax, ecx
jne 0x4a0111
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x10], ax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x49fb0e
and dword [esp + 0xc], 0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0047c4ef
mov eax, dword [esp + 0xc]
sub dword [ebx + 0xdc], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0xfc], eax
mov eax, dword [esp + 0x58]
mov edx, 0x858903
mov edi, dword [esp + 0x34]
inc eax
mov dword [esp + 0x58], eax
cmp eax, dword [edi]
jl 0x49fd66
mov eax, dword [esi + 0x24]
xor ecx, ecx
mov edi, dword [esi + 0x1c]
inc ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x58], eax
mov al, byte [esi + 4]
and al, cl
mov dword [esp + 0x50], edi
mov byte [esp + 0xf0], al
mov eax, dword [esi + 4]
and al, 9
cmp al, cl
jne 0x4a01cf
mov ecx, dword [esp + 0xa0]
mov edx, edi
push 0xffffffffffffffff
call fcn.00481469
pop ecx
test eax, eax
jne 0x4a01cf
cmp dword [esi + 0x44], eax
jne 0x4a01cf
mov ecx, dword [esp + 0x18]
mov edx, edi
and dword [esi + 4], 0xfffffffe
push eax
call fcn.0047d093
or dword [esi + 4], 8
pop ecx
mov dword [esp + 0x10], eax
mov dword [esi + 0x28], eax
mov byte [esp + 0xf0], 2
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4a0226
push dword [edi]
mov edx, eax
mov ecx, ebx
push 0
call fcn.0049b01b
mov edx, dword [ebx + 0x28]
push 0xfffffffffffffff8
push eax
mov eax, dword [esp + 0xb0]
lea ecx, [edx + 1]
mov dword [esp + 0xb8], edx
mov dword [ebx + 0x28], ecx
push 0
mov ecx, dword [eax]
mov eax, dword [edi]
inc ecx
mov edi, dword [esp + 0x28]
add eax, ecx
push eax
push edx
push 0x76
pop edx
mov ecx, edi
call fcn.0046bac5
add esp, 0x1c
mov dword [esp + 0xb4], eax
jmp 0x4a0232
or dword [esp + 0xb4], 0xffffffff
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
cmp byte [ecx], 0xc
jne 0x4a0302
mov eax, dword [esp + 0x50]
push 0
push dword [eax]
push dword [ecx + 4]
mov ecx, edi
push 0x76
pop edx
call fcn.0046b9a1
add esp, 0xc
test dword [esi + 4], 0x800
je 0x4a0302
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
lea edx, [eax - 1]
mov dword [esp + 0x1c], edx
test edx, edx
jle 0x4a02de
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
imul ecx, edx, 0x14
mov dword [esp + 0x38], ecx
test byte [ecx + ebx + 0x14], 0x40
jne 0x4a02d2
mov eax, dword [ecx + ebx + 8]
test eax, eax
je 0x4a02a4
mov edx, eax
mov ecx, edi
call fcn.0047cbeb
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + ebx + 0xc]
test eax, eax
je 0x4a02bd
mov edx, eax
mov ecx, edi
call fcn.00450d17
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
sub ecx, 0x14
dec eax
mov dword [esp + 0x38], ecx
dec edx
mov dword [ebx], eax
mov dword [esp + 0x1c], edx
test edx, edx
jg 0x4a0284
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
xor edx, edx
test eax, eax
jle 0x4a0302
mov eax, dword [esp + 0x50]
add ecx, 8
test byte [ecx + 0xc], 0x40
jne 0x4a02fa
mov eax, dword [ecx]
mov byte [eax], 0x79
mov eax, dword [esp + 0x50]
inc edx
add ecx, 0x14
cmp edx, dword [eax]
jl 0x4a02eb
dec dword [ebx + 0x38]
mov ecx, 0x4000
mov eax, dword [ebx + 0x38]
mov dword [esp + 0xcc], eax
test dword [esi + 4], ecx
jne 0x4a0322
mov ecx, 0x140
mov word [esi + 2], cx
cmp dword [esi + 0x3c], 0
je 0x4a0333
push eax
mov edx, esi
mov ecx, ebx
call fcn.0049bbfe
pop ecx
cmp dword [esi + 8], 0
jne 0x4a0356
mov edx, dword [esp + 0xb4]
test edx, edx
js 0x4a0356
mov ecx, edi
call fcn.0046c1e8
mov byte [eax], 0x77
or byte [esp + 0xc0], 1
test byte [esi + 4], 1
je 0x4a03c7
mov eax, dword [ebx + 0x28]
mov ecx, ebx
mov dword [esp + 0xf4], eax
inc eax
mov dword [ebx + 0x28], eax
mov edx, dword [esi + 0x1c]
push 0
push 0
call fcn.0049b01b
mov ecx, dword [esp + 0x1c]
mov edi, eax
push 0
push 0
push dword [esp + 0x104]
push 0x76
pop edx
call fcn.0046b9a1
add esp, 0x14
mov esi, eax
mov edx, esi
push 0xfffffffffffffff8
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0046c12a
pop ecx
pop ecx
push 8
pop edx
mov ecx, edi
mov dword [esp + 0xf8], esi
call fcn.0046bf17
mov esi, dword [esp + 0x54]
mov byte [esp + 0xf1], 3
jmp 0x4a03cf
mov byte [esp + 0xf1], 0
cmp dword [esp + 0x70], 0
mov ecx, dword [esp + 0x10]
jne 0x4a05ef
test ecx, ecx
jne 0x4a05ef
cmp byte [esp + 0xf0], cl
mov eax, 0x100
mov edx, 0x4000
cmovne ecx, eax
mov ax, word [esi + 4]
and ax, dx
or cx, ax
movzx eax, cx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a041f
mov edx, esi
mov ecx, ebx
call fcn.004b4094
movsx eax, word [esi + 2]
mov ecx, ebx
mov edx, dword [esp + 0x34]
push eax
push dword [esp + 0x24]
push esi
push dword [esi + 0x1c]
push dword [esp + 0xb0]
push dword [esp + 0x60]
call fcn.004b1b23
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x49fb0e
movzx eax, word [ecx + 0x34]
cmp ax, word [esi + 2]
jge 0x4a0461
mov word [esi + 2], ax
cmp byte [esp + 0xf0], 0
je 0x4a0489
mov cl, byte [ecx + 0x2f]
movzx edx, byte [esp + 0xf1]
test cl, cl
movzx eax, cl
mov ecx, dword [esp + 0x44]
cmovne edx, eax
mov byte [esp + 0xf1], dl
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x4a04de
movsx eax, byte [ecx + 0x2d]
mov dword [esp + 0xa4], eax
test byte [ecx + 0x30], 4
je 0x4a04b6
movzx eax, byte [ecx + 0x2c]
imul eax, eax, 0x60
cmp dword [eax + ecx + 0x2d0], 0
je 0x4a04bb
mov eax, dword [ecx + 0x1c]
jmp 0x4a04c2
mov eax, dword [eax + ecx + 0x2a8]
mov dword [esp + 0xbc], eax
xor ecx, ecx
mov eax, dword [esp + 0xa4]
cmp eax, dword [edx]
cmove edx, ecx
mov dword [esp + 0xa0], edx
cmp dword [esp + 0xb4], 0
jl 0x4a04fa
test edx, edx
jne 0x4a04fa
mov edx, dword [esp + 0xb4]
mov ecx, edi
call fcn.0046c090
cmp dword [esp + 0x28], 0
je 0x4a05b5
mov ebx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
lea esi, [ebx - 1]
sub ebx, 2
inc dword [ecx + 0x2c]
mov edi, dword [ecx + 0x2c]
push esi
push edi
push dword [esp + 0x4c]
lea eax, [ebx - 1]
mov dword [ecx + 0x38], eax
call fcn.004b55e1
mov ecx, dword [esp + 0x20]
lea eax, [ebx - 1]
add esp, 0xc
push 0
push eax
push 0
push 9
pop edx
call fcn.0046b9a1
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, esi
call fcn.0046bd45
mov edx, dword [esp + 0x54]
lea esi, [ebx - 1]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0xf0]
and dword [esp + 0xbc], 0
push esi
push ebx
push dword [esp + 0x50]
push eax
lea eax, [esp + 0xb0]
push eax
push 0xffffffffffffffff
call fcn.0049a8ce
mov ecx, dword [esp + 0x2c]
mov edx, ebx
call fcn.0046bd45
push 0
push 0
push edi
mov edi, dword [esp + 0x38]
mov ecx, edi
push 0x43
pop edx
call fcn.0046b9a1
add esp, 0x24
mov edx, esi
mov ecx, edi
call fcn.0046bd45
mov ebx, dword [esp + 0x40]
jmp 0x4a13d5
mov eax, dword [esp + 0x44]
mov edx, esi
mov ecx, ebx
push dword [eax + 0x20]
push dword [eax + 0x1c]
lea eax, [esp + 0xf8]
push dword [esp + 0x50]
push eax
lea eax, [esp + 0xb0]
push eax
push 0xffffffffffffffff
call fcn.0049a8ce
mov ecx, dword [esp + 0x5c]
add esp, 0x18
call fcn.004b2538
jmp 0x4a13d5
and dword [esp + 0x60], 0
and dword [esp + 0x28], 0
and dword [esp + 0x6c], 0
test ecx, ecx
je 0x4a06a4
mov edx, dword [esi + 0x1c]
mov eax, dword [edx]
test eax, eax
jle 0x4a0623
add edx, 0x1a
xor ebx, ebx
dec eax
mov word [edx], bx
lea edx, [edx + 0x14]
test eax, eax
jg 0x4a0612
mov ebx, dword [esp + 0x40]
mov eax, dword [ecx]
test eax, eax
jle 0x4a063d
lea edx, [ecx + 0x1a]
xor edi, edi
dec eax
mov word [edx], di
lea edx, [edx + 0x14]
test eax, eax
jg 0x4a062c
mov edi, dword [esp + 0x14]
push 0x42
pop eax
cmp word [esi + 2], ax
jle 0x4a064a
mov word [esi + 2], ax
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4a06aa
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x4a06aa
and dword [esp + 0x20], 0
test edx, edx
jle 0x4a0687
mov edi, dword [esp + 0x20]
xor edx, edx
mov eax, dword [esp + 0xa0]
lea edx, [edx + 0x14]
mov al, byte [edx + eax - 4]
and al, 1
inc edi
mov byte [ecx + edx - 4], al
cmp edi, dword [ecx]
jl 0x4a066a
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xa0]
push 0xffffffffffffffff
call fcn.00481469
pop ecx
test eax, eax
jne 0x4a06aa
mov dword [esp + 0x6c], 1
jmp 0x4a06aa
xor eax, eax
mov word [esi + 2], ax
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
push 0
push 0x34
mov dword [esp + 0x4c], eax
call fcn.00450fbe
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x4a06df
push ecx
mov edx, 0x49f970
mov ecx, ebx
call fcn.00499434
pop ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x49fb0e
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x34]
and dword [esp + 0xec], 0
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0x2c]
inc eax
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd8], ecx
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a073c
mov edx, dword [eax]
jmp 0x4a073e
xor edx, edx
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 0x18], eax
lea ecx, [esp + 0xd0]
call fcn.00481e49
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0xd0]
call fcn.00481e49
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4a07d0
cmp dword [esp + 0x10], 0
je 0x4a07c2
mov edx, dword [esi + 0x2c]
xorps xmm0, xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0x49f840
mov dword [esp + 0x9c], esi
test edx, edx
je 0x4a07b7
lea ecx, [esp + 0x84]
call fcn.004798ac
mov eax, dword [esi + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov edx, eax
lea ecx, [esp + 0xd0]
call fcn.00481e15
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x24], eax
cmp dword [esi + 0x28], 0
jne 0x4a080a
cmp dword [esi + 0x2c], 0
jne 0x4a080a
cmp dword [ecx + 0x2c], 1
jne 0x4a080a
mov edx, dword [ecx + 0x28]
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x18]
push eax
mov edx, dword [edx]
call fcn.0049e399
pop ecx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x33], al
jmp 0x4a080f
mov byte [esp + 0x33], 0
and dword [esp + 0xc], 0
mov edx, dword [ecx + 0x2c]
test edx, edx
jle 0x4a08a8
mov ecx, dword [esp + 0xe8]
xor ebx, ebx
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x28]
or ecx, 0x20000
mov esi, dword [ebx + eax]
mov dword [esp + 0xe8], ecx
lea ecx, [esp + 0xd0]
mov edx, dword [esi + 0x14]
call fcn.00481e49
test dword [esi + 4], 0x1000000
je 0x4a0869
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0xd0]
mov edx, dword [edx + 0x28]
call fcn.00481e15
mov ecx, dword [esp + 0xe8]
add ebx, 0x14
mov eax, dword [esp + 0xc]
and ecx, 0xfffdffff
inc eax
mov dword [esp + 0xe8], ecx
mov esi, dword [edi + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], esi
cmp eax, esi
jl 0x4a082c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x4a145f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a0fa4
and dword [esp + 0x38], 0
and dword [esp + 0xc], 0
cmp edx, 1
jne 0x4a094f
mov edx, dword [ecx + 0x28]
cmp dword [edx + 0xc], 0
jl 0x4a094f
mov edx, dword [edx]
test edx, edx
je 0x4a094f
test dword [edx + 4], 0x1000
jne 0x4a094f
mov edx, dword [edx + 0x14]
test edx, edx
je 0x4a094f
mov edx, dword [edx + 8]
test edx, edx
je 0x4a0916
mov ecx, dword [esp + 0x18]
push 0
push 0
call fcn.0047cd6c
pop ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
pop ecx
jmp 0x4a091b
and dword [esp + 0xc], 0
mov ecx, dword [esp + 0x18]
mov edx, eax
push 0
call fcn.0047d093
pop ecx
push dword [esp + 0xc]
mov edx, eax
mov ecx, ebx
call fcn.0047d69e
mov dword [esp + 0x3c], eax
neg eax
pop ecx
sbb ecx, ecx
and ecx, 0x500
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x10]
mov dword [ecx + 4], eax
inc dword [ebx + 0x28]
push dword [ecx + 0x20]
mov ecx, ebx
push 0
call fcn.0049b01b
push 0xfffffffffffffff8
push eax
mov dword [esp + 0xd8], eax
mov ecx, edi
mov eax, dword [esp + 0x34]
push 0
push dword [eax + 0xc]
push dword [eax + 4]
push 0x77
pop edx
call fcn.0046bac5
mov ecx, dword [ebx + 0x38]
add esp, 0x1c
mov edx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [esp + 0x1c], eax
inc eax
dec ecx
mov dword [esp + 0x64], eax
add eax, 2
mov dword [esp + 0x3c], ecx
dec ecx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], ecx
mov dword [esp + 0x2c], ecx
mov ecx, eax
add ecx, dword [edx]
push 0
push dword [esp + 0x68]
mov dword [esp + 0x70], eax
lea eax, [ecx + 1]
mov dword [ebx + 0x2c], ecx
mov dword [esp + 0x84], eax
mov eax, dword [edx]
push 0
add eax, ecx
mov ecx, edi
push 0x47
pop edx
mov dword [ebx + 0x2c], eax
call fcn.0046b9a1
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x68]
inc ecx
mov eax, dword [eax]
dec eax
add eax, ecx
push eax
push ecx
push 0
push 0x4b
pop edx
mov ecx, edi
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
push 0
push dword [esp + 0x30]
push dword [esp + 0x70]
push 0xa
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x78]
add esp, 0xc
neg eax
mov edx, 0x80
sbb eax, eax
and eax, 0x200
cmp byte [esp + 0xf0], 2
push 0
push 0x40
pop ecx
cmove ecx, edx
mov edx, dword [esp + 0x38]
or ax, cx
mov ecx, ebx
or ax, word [esp + 0x10]
movzx eax, ax
push eax
push esi
push dword [esp + 0x44]
push dword [esp + 0x20]
push dword [esp + 0x60]
call fcn.004b1b23
mov edx, eax
add esp, 0x18
mov dword [esp + 0x70], edx
test edx, edx
jne 0x4a0a8c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a145b
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.0047d8c7
jmp 0x4a145b
movzx eax, byte [edx + 0x2f]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
movsx eax, byte [edx + 0x2d]
cmp eax, dword [ecx]
jne 0x4a0aaf
mov esi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x4a0c5e
cmp byte [esp + 0xf0], 0
je 0x4a0ac4
test byte [esi + 4], 1
mov eax, str.DISTINCT
je 0x4a0ac9
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.0046bbd8
mov eax, dword [esp + 0x20]
add esp, 0x10
mov esi, dword [esp + 0x24]
mov dword [esp + 0x4c], 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x20]
test eax, eax
jle 0x4a0b3b
mov edi, dword [esi + 0x1c]
mov ebx, edx
add edi, 0x12
mov esi, eax
movsx ecx, word [edi]
lea eax, [edx + 1]
cmp ecx, ebx
lea edi, [edi + 0x14]
cmovl eax, edx
mov edx, eax
lea eax, [ebx + 1]
cmovl eax, ebx
mov ebx, eax
sub esi, 1
jne 0x4a0b0e
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov ecx, ebx
call fcn.00481eb5
mov edx, dword [esp + 0x10]
mov ecx, ebx
push 0
push 0
push eax
mov dword [esp + 0x68], eax
call fcn.004808a8
xor ecx, ecx
mov byte [esi], 1
add esp, 0xc
mov dword [esp + 0x60], ecx
cmp dword [esi + 0x20], ecx
jle 0x4a0bb1
mov edi, dword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x40], eax
mov edx, dword [esi + 0x1c]
add edx, eax
movsx eax, word [edx + 0x12]
cmp eax, edi
jl 0x4a0b98
mov eax, dword [esp + 0x5c]
mov ecx, ebx
mov edx, dword [edx + 4]
add eax, edi
push eax
call fcn.004807d0
pop ecx
mov ecx, dword [esp + 0x60]
inc edi
mov eax, dword [esp + 0x40]
inc ecx
add eax, 0x14
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], eax
cmp ecx, dword [esi + 0x20]
jl 0x4a0b74
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov byte [esi], 0
call fcn.00481e7d
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0x38]
push dword [esp + 0x64]
push 0x61
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x30]
add esp, 0xc
mov edx, 0x8b
mov ecx, edi
push 0
push esi
push dword [eax + 4]
call fcn.0046b9a1
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00481e9c
push dword [esp + 0x34]
mov edx, dword [esp + 0x60]
call fcn.00481eeb
mov ecx, dword [esp + 0x74]
add esp, 4
call fcn.004b2538
mov esi, dword [esp + 0x24]
mov ecx, ebx
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x60], edx
mov dword [esi + 8], edx
inc dword [ebx + 0x28]
call fcn.00481e7d
push dword [esp + 0x34]
mov ecx, edi
mov dword [esp + 0x2c], eax
push eax
push edx
push 0x79
pop edx
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
push 0
push dword [esp + 0x48]
push dword [esi + 4]
push 0x22
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x7c]
xor eax, eax
add esp, 0xc
mov byte [esi + 1], 1
inc eax
cmp dword [esp + 0x6c], 0
je 0x4a0c8f
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x50], 4
jne 0x4a0c8f
test eax, eax
jne 0x4a0c79
test byte [edx + 0x30], 8
je 0x4a0c8f
mov edx, dword [esp + 0xb4]
mov ecx, edi
and dword [esp + 0xa0], 0
call fcn.0046c090
cmp dword [esp + 0x4c], 0
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x80], eax
je 0x4a0cba
push dword [esp + 0x60]
mov edx, 0x85
mov ecx, edi
push dword [esp + 0x2c]
push dword [esi + 4]
call fcn.0046b9a1
add esp, 0xc
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
test edx, edx
jle 0x4a0d1e
add eax, 8
mov dword [esp + 0x6c], eax
jmp 0x4a0cd7
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x7c]
add edx, ecx
cmp dword [esp + 0x4c], 0
push edx
je 0x4a0cf9
push ecx
push dword [esp + 0x68]
mov ecx, edi
push 0x5e
pop edx
call fcn.0046b9a1
add esp, 0xc
jmp 0x4a0d06
mov byte [esi], 1
mov ecx, ebx
mov edx, dword [eax]
call fcn.004807d0
pop ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x6c], 0x14
inc ecx
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
cmp ecx, edx
jl 0x4a0cd3
mov ecx, dword [esp + 0xc8]
test ecx, ecx
je 0x4a0d2d
inc dword [ecx]
mov edx, dword [eax]
mov eax, dword [esp + 0x68]
push 0xfffffffffffffff8
push ecx
push edx
push dword [esp + 0x88]
inc eax
mov ecx, edi
push eax
push 0x5a
pop edx
call fcn.0046bac5
mov esi, dword [edi + 0x6c]
add esp, 0x14
mov ecx, edi
lea eax, [esi + 1]
push eax
push 0
push eax
push 0xe
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x7c]
mov ecx, ebx
push dword [eax]
mov eax, dword [esp + 0x6c]
inc eax
push eax
call fcn.0047f371
mov eax, dword [esp + 0x6c]
mov ecx, edi
push 0
push dword [esp + 0x48]
inc eax
push eax
push 0xa
pop edx
call fcn.0046b9a1
add esp, 0x14
mov ecx, edi
push 0
push dword [esp + 0x48]
push dword [esp + 0x6c]
push 0x3b
pop edx
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
push 0
push dword [esp + 0x30]
push dword [esp + 0x70]
push 0xa
pop edx
call fcn.0046b9a1
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.0046c1e8
mov ecx, dword [edi + 0x6c]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, ebx
push esi
call fcn.0049f5bc
push 0
push dword [esp + 0x28]
mov ecx, edi
push 1
push 0x47
pop edx
call fcn.0046b9a1
add esp, 0x14
cmp dword [esp + 0x4c], 0
je 0x4a0e1a
push 0
push dword [esp + 0x84]
mov ecx, edi
push dword [esi + 4]
push 0x25
pop edx
call fcn.0046b9a1
add esp, 0xc
jmp 0x4a0e2e
mov ecx, dword [esp + 0x70]
call fcn.004b2538
mov edx, dword [esp + 0x74]
mov ecx, edi
call fcn.0046c090
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a0e41
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.0047d8c7
mov esi, dword [esp + 0x64]
mov ecx, edi
push 0
push dword [esp + 0x40]
lea eax, [esi + 1]
push eax
push 0xa
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x50]
add esp, 0xc
mov ecx, edi
call fcn.0046b9fa
mov edi, dword [edi + 0x6c]
push 0
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push 1
push 0x47
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x70]
add esp, 0xc
inc eax
mov ecx, esi
push 0
push 0
push eax
push 0x43
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x48]
add esp, 0xc
mov ecx, esi
call fcn.0046bd45
mov esi, dword [esi + 0x6c]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esi + 2]
push eax
push dword [esp + 0x24]
push 0x3b
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x70]
add esp, 0xc
mov ecx, dword [esp + 0x14]
inc eax
push 0
push 0
push eax
push 0x43
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, ebx
call fcn.0049f562
push 0x10
inc esi
push esi
push dword [esp + 0x60]
push ebx
call fcn.00480e00
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x100]
push edi
push esi
push dword [esp + 0x60]
mov ecx, ebx
push eax
lea eax, [esp + 0xc0]
push eax
push 0xffffffffffffffff
call fcn.0049a8ce
mov eax, dword [esp + 0x8c]
push 0
push 0
inc eax
push eax
mov edi, dword [esp + 0x48]
mov ecx, edi
push 0x43
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x60]
add esp, 0x34
mov ecx, edi
call fcn.0046bd45
mov esi, dword [esp + 0x24]
mov ecx, ebx
mov edx, esi
call fcn.0049f479
push 0
push dword [esp + 0x20]
mov ecx, edi
push 0
push 0x47
pop edx
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
push 0
push 0
push dword [esp + 0x70]
push 0x43
pop edx
call fcn.0046b9a1
add esp, 0xc
cmp word [esp + 0xc], 0
je 0x4a13ca
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4a13ca
mov eax, dword [esi + 0x28]
mov edx, ecx
mov ecx, ebx
push dword [eax + 0x10]
push dword [eax + 0xc]
call fcn.0049a870
pop ecx
pop ecx
jmp 0x4a13ca
cmp dword [esi + 0x24], 0
jne 0x4a11e6
mov eax, dword [esi + 0x1c]
cmp dword [eax], 1
jne 0x4a11e6
mov eax, dword [esi + 0x20]
cmp dword [eax], 1
jne 0x4a11e6
cmp dword [eax + 0x1c], 0
jne 0x4a11e6
cmp edx, 1
jne 0x4a11e6
cmp dword [esi + 0x2c], 0
jne 0x4a11e6
mov edx, dword [eax + 0x18]
mov dword [esp + 0x38], edx
cmp byte [edx + 0x2b], 0
jne 0x4a11e6
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 8]
cmp byte [eax], 0xa8
jne 0x4a11e6
cmp dword [eax + 0x28], ecx
jne 0x4a11e6
mov eax, dword [ecx + 0x28]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x4a11e6
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x14]
test dword [eax + 4], 0x1000004
jne 0x4a11e6
test edx, edx
je 0x4a11e6
mov edx, dword [edx + 0x3c]
mov ecx, dword [ebx]
call fcn.00499367
mov dword [esp + 0xc], eax
xor edx, edx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
lea ecx, [eax + 1]
xor eax, eax
cmp dword [ebx + 0x78], edx
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x14]
mov ecx, ebx
cmovne ecx, dword [ebx + 0x78]
mov dword [esp + 0x20], eax
call fcn.0048bec0
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov edx, dword [esp + 0xc]
push dword [eax]
push 0
push dword [eax + 0x14]
call fcn.00486842
mov edx, dword [esp + 0x44]
add esp, 0xc
test byte [edx + 0x1c], 0x80
je 0x4a10b2
mov ecx, edx
call fcn.004877d3
mov dword [esp + 0x1c], eax
jmp 0x4a10b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x3c], edx
test byte [ecx + 0x30], 1
jne 0x4a1103
mov ecx, dword [edx + 8]
mov dword [esp + 0x3c], edx
test ecx, ecx
je 0x4a1103
mov dword [esp + 0x3c], edx
test byte [ecx + 0x38], 4
jne 0x4a10f4
movzx esi, word [ecx + 0x30]
cmp si, word [edx + 0x28]
jge 0x4a10f4
cmp dword [ecx + 0x24], 0
jne 0x4a10f4
test eax, eax
je 0x4a10f2
cmp si, word [eax + 0x30]
jge 0x4a10f4
mov eax, ecx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4a10d2
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a111b
mov ecx, dword [eax + 0x2c]
mov edx, eax
mov dword [esp + 0x20], ecx
mov ecx, ebx
call fcn.0048c369
mov dword [esp + 0x28], eax
push 1
push dword [esp + 0x10]
mov ecx, edi
push dword [esp + 0x28]
push dword [esp + 0x38]
push 0x70
pop edx
call fcn.0046bcab
mov eax, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x4a114d
push 0xfffffffffffffff8
push eax
or edx, 0xffffffff
mov ecx, edi
call fcn.0046c12a
pop ecx
pop ecx
mov eax, dword [esp + 0x24]
mov ecx, edi
push 0
mov eax, dword [eax + 0x28]
push dword [eax + 8]
push dword [esp + 0x34]
push 0x62
pop edx
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
push 0
push 0
push dword [esp + 0x34]
push 0x7a
pop edx
call fcn.0046b9a1
add esp, 0xc
cmp byte [ebx + 0xd3], 2
jne 0x4a1396
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4a11b0
mov ecx, dword [esp + 0x38]
test byte [ecx + 0x1c], 0x80
je 0x4a11a7
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x4a11b0
mov eax, dword [edx]
mov ecx, 0x858903
jmp 0x4a11bc
and dword [esp + 0x5c], 0
mov ecx, 0x858903
mov eax, ecx
cmp dword [esp + 0x5c], 0
push eax
mov eax, str._USING_COVERING_INDEX
cmove eax, ecx
push eax
mov eax, dword [esp + 0x44]
push dword [eax]
push str.SCAN__s_s_s
push 0
push ebx
call fcn.0046bbd8
add esp, 0x18
jmp 0x4a1396
and dword [esp + 0x2c], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x28], 0
cmp dword [ecx + 0x24], 0
je 0x4a1270
mov edx, dword [ecx + 0x2c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
test edx, edx
jle 0x4a1248
mov eax, dword [ecx + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
test dword [eax + 4], 0x1000000
jne 0x4a122b
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test byte [eax + 4], 0x20
jne 0x4a1295
mov eax, dword [esp + 0xc]
inc dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edx
cmp dword [esp + 0x1c], edx
jl 0x4a1213
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jne 0x4a1295
inc dword [ebx + 0x2c]
mov ecx, edi
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 0
push 0x47
pop edx
mov dword [esp + 0x38], eax
call fcn.0046b9a1
mov ecx, dword [esp + 0x30]
add esp, 0xc
jmp 0x4a1295
cmp dword [ecx + 0x2c], 1
jne 0x4a1295
mov eax, dword [ecx + 0x28]
cmp dword [eax + 0xc], 0
jl 0x4a1295
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x3c], eax
neg eax
sbb eax, eax
and eax, 0x500
mov dword [esp + 0x28], eax
mov edx, ecx
mov ecx, ebx
call fcn.0049f479
movzx eax, byte [esp + 0x33]
mov ecx, ebx
or ax, word [esp + 0x28]
mov edx, dword [esp + 0x34]
push 0
movzx eax, ax
push eax
push esi
push dword [esp + 0x48]
push dword [esp + 0x88]
push dword [esp + 0x60]
call fcn.004b1b23
add esp, 0x18
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a145b
movzx eax, byte [eax + 0x2f]
mov ecx, ebx
mov edx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.0049f5bc
mov edx, dword [esp + 0x7c]
pop ecx
pop ecx
test edx, edx
je 0x4a1315
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4a1315
push dword [eax + 0x10]
mov ecx, ebx
push dword [eax + 0xc]
call fcn.0049a870
pop ecx
pop ecx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a132f
push 0
push eax
push 1
push 0x47
pop edx
mov ecx, edi
call fcn.0046b9a1
add esp, 0xc
cmp byte [esp + 0x33], 0
mov ecx, dword [esp + 0x1c]
je 0x4a1386
test byte [ecx + 0x30], 4
je 0x4a1386
cmp byte [ecx + 0x2d], 0
je 0x4a1386
movzx edx, byte [ecx + 0x2c]
sub edx, 1
js 0x4a1378
imul eax, edx, 0x60
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [eax + 0x348]
test byte [eax + 0x2c], 4
jne 0x4a1479
mov eax, dword [esp + 0xc]
sub eax, 0x60
sub edx, 1
mov dword [esp + 0xc], eax
jns 0x4a1358
mov edx, dword [ecx + 0x20]
mov ecx, edi
call fcn.0046b9fa
mov ecx, dword [esp + 0x1c]
call fcn.004b2538
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.0049f562
and dword [esp + 0xa0], 0
push 0x10
push dword [esp + 0x48]
push dword [esp + 0x60]
push ebx
call fcn.00480e00
mov eax, dword [esp + 0x54]
mov edx, esi
push eax
push eax
push dword [esp + 0x60]
mov ecx, ebx
push 0
push 0
push 0xffffffffffffffff
call fcn.0049a8ce
add esp, 0x28
mov edx, dword [esp + 0x44]
mov ecx, edi
call fcn.0046bd45
cmp byte [esp + 0xf1], 3
jne 0x4a13f4
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.0046bbd8
add esp, 0x10
cmp dword [esp + 0xa0], 0
je 0x4a1441
cmp dword [esp + 0xa4], 0
mov ecx, str.ORDER_BY
mov eax, str.RIGHT_PART_OF_ORDER_BY
cmovle eax, ecx
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.0046bbd8
mov eax, dword [esp + 0x60]
mov ecx, ebx
push dword [esp + 0x58]
mov edx, dword [esp + 0x68]
push dword [eax]
lea eax, [esp + 0xb8]
push eax
call fcn.0049b0d4
add esp, 0x1c
mov edx, dword [esp + 0xcc]
mov ecx, edi
call fcn.0046bd45
xor eax, eax
cmp dword [ebx + 0x24], eax
setg al
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x49fb0e
mov edx, ecx
mov ecx, eax
call fcn.0047d8c7
jmp 0x49fb0e
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x308]
jmp 0x4a137b
xor eax, eax
inc eax
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00700c25
mov esp, ebp
pop ebp
ret