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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
push esi
mov esi, ecx
mov dword [esp + 0x70], 0
push edi
mov edi, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x1d4]
mov dword [esp + 0xdc], eax
mov eax, dword [esi + 0x1d8]
mov dword [esi + 0x1d4], eax
inc eax
mov dword [esi + 0x1d8], eax
mov eax, dword [esi]
mov dword [esp + 0x58], 1
mov dword [esp + 0x1c], eax
test edi, edi
je 0x476848
cmp byte [eax + 0x45], 0
jne 0x476848
cmp dword [esi + 0x44], 0
jne 0x476848
push 0
push 0
push 0
mov edx, 0x15
call fcn.00454dd0
add esp, 0xc
test eax, eax
jne 0x476848
push 0x30
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.004a35f0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 8
ja 0x4744dd
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x4744d2
mov ecx, dword [esp + 0x1c]
call fcn.0044d030
and dword [edi + 8], 0xfffffffe
mov dword [edi + 0x2c], 0
push 0
mov edx, edi
mov ecx, esi
call fcn.00473c80
mov edx, edi
xorps xmm0, xmm0
mov edi, dword [esp + 0x20]
add esp, 4
cmp dword [esi + 0x44], 0
movaps xmmword [esp + 0xe0], xmm0
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x1c]
movaps xmmword [esp + 0xf0], xmm0
mov dword [esp + 0x30], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x20], ecx
jne 0x4766fa
cmp byte [edi + 0x45], 0
jne 0x4766fa
mov eax, dword [edx + 8]
shr eax, 3
and eax, 1
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov eax, dword [edx]
cmp dword [eax], 1
jle 0x474564
cmp ecx, 0xa
je 0x474551
cmp ecx, 0xb
jne 0x474564
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push esi
call fcn.0041b2c0
add esp, 8
jmp 0x47469a
xor edi, edi
cmp dword [edx + 0x30], edi
jne 0x47462f
mov ecx, dword [esp + 0x20]
cmp edi, dword [ecx]
jge 0x47462f
mov esi, dword [esp + 0x20]
lea eax, [edi + edi*4]
add eax, eax
mov ecx, dword [ecx + eax*8 + 0x1c]
mov eax, dword [esi + eax*8 + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x474620
movsx ecx, word [eax + 0x22]
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x48]
jne 0x474679
mov eax, dword [eax + 8]
mov ecx, esi
shr eax, 3
and eax, 1
push eax
push dword [esp + 0x60]
mov dword [esp + 0x1c], eax
push edi
call fcn.00471ea0
add esp, 0xc
test eax, eax
je 0x4745f1
cmp dword [esp + 0x14], 0
je 0x4745ee
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], 1
or dword [eax + 8], 8
or edi, 0xffffffff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x1c]
cmp byte [eax + 0x45], 0
mov dword [esp + 0x20], ecx
jne 0x4766e4
mov eax, dword [ebp + 8]
cmp byte [eax], 8
jbe 0x474624
mov ecx, dword [edx + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x20]
inc edi
cmp dword [edx + 0x30], 0
je 0x474573
mov edi, dword [esi + 8]
mov dword [esp + 0x7c], edi
test edi, edi
jne 0x47464f
mov ecx, esi
call fcn.0046eff0
mov edx, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x7c], edi
test edi, edi
je 0x474696
cmp dword [edx + 0x30], 0
je 0x4746f6
push dword [ebp + 8]
mov ecx, esi
call fcn.0046fac0
mov edx, dword [esp + 0xe0]
add esp, 4
mov dword [esi + 0x1d4], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
push dword [eax]
mov eax, dword [esp + 0x18]
push dword [eax]
movsx eax, word [eax + 0x22]
push eax
push str.expected__d_columns_for__s_but_got__d
push esi
call fcn.0041b2c0
add esp, 0x14
mov edi, dword [esp + 0x1c]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xdc]
mov dword [esi + 0x1d4], edx
test eax, eax
jne 0x4746cc
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x4746cc
push dword [esp + 0x74]
mov edx, ecx
mov ecx, esi
call fcn.0046e7a0
add esp, 4
mov esi, dword [esp + 0xc8]
test esi, esi
je 0x476782
cmp dword [edi + 0x1c8], 0
je 0x476704
mov edx, esi
mov ecx, edi
call fcn.00418550
jmp 0x476782
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x48], eax
cmp dword [ecx], eax
jle 0x474996
nop dword [eax + eax]
lea eax, [eax + eax*4]
add ecx, 8
shl eax, 4
add eax, ecx
mov dword [esp + 0x40], eax
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x474981
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x474757
test byte [eax + 0x28], 0x10
jne 0x474981
push ecx
push dword [eax + 0x1c]
mov edx, 0xe
mov ecx, edi
call fcn.00437870
add esp, 8
jmp 0x47497d
mov ecx, edx
call fcn.0044b9a0
mov edx, dword [esp + 0x40]
add dword [esi + 0x1d0], eax
test byte [edx + 0x24], 0x20
jne 0x47478c
mov eax, dword [esp + 0x18]
push dword [edx + 0x30]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
push dword [eax + 0x20]
call fcn.00472480
mov edx, dword [esp + 0x48]
add esp, 8
cmp dword [esp + 0x48], 0
jne 0x474880
mov eax, dword [esp + 0x20]
cmp dword [eax], 1
je 0x4747aa
test byte [eax + 0x7c], 0xa
je 0x474880
mov eax, dword [esp + 0x18]
test byte [eax + 8], 2
jne 0x474880
mov ecx, dword [esp + 0x1c]
mov eax, 0x100
test word [ecx + 0x40], ax
jne 0x474880
mov ecx, dword [esp + 0x10]
mov esi, dword [edi + 0x20]
inc esi
push esi
mov eax, dword [ecx + 0x4c]
inc eax
mov dword [ecx + 0x4c], eax
mov ecx, edi
mov dword [edx + 0x1c], eax
mov edx, 0xf
push 0
push eax
call fcn.00437720
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov word [esp + 0x98], 0xd
mov dword [esp + 0xa0], 0
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x18], esi
mov dword [esp + 0x9c], eax
mov al, byte [ecx + 0x1d8]
mov byte [edx + 0x2c], al
lea eax, [esp + 0x98]
mov edx, dword [esp + 0x64]
push eax
mov dword [esp + 0xa8], 0
call fcn.00474420
mov edx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x64]
mov ecx, dword [edx + 0x10]
mov ax, word [eax + 6]
mov word [ecx + 0x26], ax
mov ecx, edi
mov eax, dword [esp + 0xa0]
or dword [edx + 0x28], 0x10
mov dword [edx + 0x20], eax
mov edx, dword [edx + 0x1c]
call fcn.00437db0
lea edx, [esi - 1]
mov ecx, edi
call fcn.00438170
mov esi, dword [esp + 0x10]
jmp 0x474955
xor eax, eax
mov ecx, edi
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esi + 0x4c], eax
push eax
mov dword [edx + 0x1c], eax
mov edx, 0x4a
push 0
call fcn.00437870
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [esp + 0x14], eax
inc eax
test byte [ecx + 0x28], 8
mov dword [ecx + 0x18], eax
jne 0x4748c3
mov ecx, esi
call fcn.0044d610
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x30]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x9c], eax
mov al, byte [esi + 0x1d8]
mov byte [ecx + 0x2c], al
lea eax, [esp + 0x98]
push eax
mov ecx, esi
mov word [esp + 0x9c], 0xc
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
call fcn.00474420
mov ecx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x64]
mov ecx, dword [ecx + 0x10]
mov ax, word [eax + 6]
mov word [ecx + 0x26], ax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x474930
mov edx, eax
mov ecx, edi
call fcn.00438170
mov eax, dword [esp + 0x40]
mov edx, 0x46
mov ecx, edi
push dword [eax + 0x1c]
call fcn.00437800
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, edi
push eax
call fcn.00438110
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x3c], 0
mov byte [esi + 0x13], 0
cmp byte [eax + 0x45], 0
jne 0x474696
mov ecx, dword [esp + 0x18]
call fcn.0044b9a0
sub dword [esi + 0x1d0], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [ecx]
jl 0x474710
mov eax, dword [edx + 0x20]
mov ecx, dword [edx]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x44], eax
mov al, byte [edx + 8]
and al, 1
mov dword [esp + 0x74], ecx
mov byte [esp + 0xf], al
mov byte [esp + 0x98], al
mov eax, dword [edx + 8]
and al, 9
cmp al, 1
jne 0x474a09
mov edx, ecx
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
call fcn.00451130
add esp, 4
test eax, eax
jne 0x474a05
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
push 0
and dword [eax + 8], 0xfffffffe
call fcn.0044c690
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x474a61
push dword [ecx]
mov edx, eax
mov ecx, esi
push 0
call fcn.0046dc50
mov edx, dword [esi + 0x48]
mov ecx, eax
push 0xfffffffffffffffa
push ecx
push 0
lea eax, [edx + 1]
mov dword [esp + 0xfc], edx
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov eax, dword [esp + 0x44]
inc ecx
mov eax, dword [eax]
add eax, ecx
mov ecx, edi
push eax
push edx
mov edx, 0x69
call fcn.00437b60
add esp, 0x1c
mov dword [esp + 0xf4], eax
jmp 0x474a6c
mov dword [esp + 0xf4], 0xffffffff
mov eax, dword [ebp + 8]
cmp byte [eax], 0xc
jne 0x474a8c
mov ecx, dword [esp + 0x74]
mov edx, 0x69
push dword [ecx]
mov ecx, edi
push dword [eax + 4]
call fcn.00437870
add esp, 8
mov ecx, edi
call fcn.00437e30
mov ecx, eax
mov edx, pe_nt_image_headers32
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10c], ecx
push ecx
mov ecx, esi
mov word [eax + 6], dx
mov edx, eax
call fcn.0046f030
mov edx, dword [esp + 0x1c]
add esp, 4
cmp dword [edx + 0xc], 0
jne 0x474ae5
mov eax, dword [esp + 0xf4]
test eax, eax
js 0x474ae5
push 0x6a
mov edx, eax
mov ecx, edi
call fcn.004380d0
mov edx, dword [esp + 0x1c]
add esp, 4
or byte [esp + 0xfc], 1
test byte [edx + 8], 1
je 0x474b4e
mov esi, dword [esi + 0x48]
mov ecx, dword [esp + 0x10]
push 0xfffffffffffffffa
push ecx
lea eax, [esi + 1]
mov dword [esp + 0xa4], esi
mov dword [ecx + 0x48], eax
mov edx, dword [edx]
push 0
push 0
call fcn.0046dc50
add esp, 0xc
mov edx, 0x69
mov ecx, edi
push eax
push 0
push 0
push esi
call fcn.00437b60
mov dword [esp + 0xb4], eax
add esp, 0x14
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x474b42
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 8
mov esi, dword [esp + 0x10]
mov al, 3
mov edx, dword [esp + 0x18]
jmp 0x474b50
xor al, al
cmp dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x99], al
mov dword [esp + 0x64], eax
jne 0x474c85
test ecx, ecx
jne 0x474c85
cmp byte [esp + 0xf], cl
mov eax, 0x400
mov dword [esp + 0x14], 0x4000
cmovne ecx, eax
mov ax, word [edx + 8]
and ax, word [esp + 0x14]
or cx, ax
movsx eax, word [edx + 6]
push eax
movzx ecx, cx
push ecx
push dword [edx]
mov edx, dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x3c]
push dword [esp + 0x88]
call fcn.00486030
mov edx, eax
add esp, 0x14
mov dword [esp + 0x44], edx
test edx, edx
je 0x4766f2
mov eax, dword [esp + 0x18]
movzx ecx, word [edx + 0x20]
cmp cx, word [eax + 6]
jge 0x474bd6
mov word [eax + 6], cx
cmp byte [esp + 0xf], 0
je 0x474c02
mov eax, dword [esp + 0x64]
mov cl, byte [edx + 0x2a]
movzx eax, al
test cl, cl
mov dword [esp + 0x64], eax
movzx eax, cl
mov ecx, dword [esp + 0x64]
cmovne ecx, eax
mov dword [esp + 0x64], ecx
mov byte [esp + 0x99], cl
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x474c2b
movsx eax, byte [edx + 0x26]
cmp eax, dword [ecx]
mov dword [esp + 0x14], 0
cmove ecx, dword [esp + 0x14]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0xf4]
test eax, eax
js 0x474c47
test ecx, ecx
jne 0x474c47
mov edx, eax
mov ecx, edi
call fcn.00438390
mov edx, dword [esp + 0x44]
push dword [edx + 0x34]
lea eax, [esp + 0x9c]
mov ecx, esi
push dword [edx + 0x30]
mov edx, dword [esp + 0x20]
push dword [ebp + 8]
push eax
lea eax, [esp + 0xf0]
push eax
push 0xffffffffffffffff
push dword [esp + 0x8c]
call fcn.0046cf80
mov ecx, dword [esp + 0x60]
add esp, 0x1c
call fcn.00486ac0
jmp 0x476479
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x474cf4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jle 0x474cb9
add ecx, 0x16
xor esi, esi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], si
test eax, eax
jg 0x474ca7
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jle 0x474ce2
add ecx, 0x16
nop dword [eax]
xor edi, edi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], di
test eax, eax
jg 0x474cd0
mov edi, dword [esp + 0x7c]
cmp word [edx + 6], 0x42
mov ecx, dword [esp + 0x28]
jle 0x474cfa
mov eax, 0x42
jmp 0x474cf6
xor eax, eax
mov word [edx + 6], ax
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
call fcn.00451130
add esp, 4
mov ecx, 1
test eax, eax
mov eax, 0
cmove eax, ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x68], ecx
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x6c], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
test edx, eax
jne 0x474d58
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ecx]
push 0
push eax
call fcn.00418a40
mov ecx, dword [esp + 0x70]
add esp, 8
mov edx, dword [esp + 0x6c]
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x474d66
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x28]
not edx
movaps xmmword [esp + 0x110], xmm0
mov dword [esp + 0x114], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x11c], eax
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esp + 0x6c], edx
movaps xmmword [esp + 0x120], xmm0
mov dword [esp + 0x110], esi
mov dword [esp + 0xbc], eax
test ecx, ecx
je 0x474dbd
mov eax, dword [ecx]
mov dword [esp + 0xb8], eax
jmp 0x474dc8
mov dword [esp + 0xb8], 0
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0x110]
call fcn.00451650
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x110]
call fcn.00451650
mov eax, dword [esp + 0x44]
test eax, eax
je 0x474e48
xorps xmm0, xmm0
mov dword [esp + 0x148], 0
lea ecx, [esp + 0x110]
movaps xmmword [esp + 0x130], xmm0
mov dword [esp + 0x148], ecx
mov edx, eax
lea ecx, [esp + 0x130]
movq qword [esp + 0x140], xmm0
mov dword [esp + 0x134], 0x451330
mov dword [esp + 0x138], fcn.00403e70
call fcn.00449190
cmp dword [esp + 0xd8], 0
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xd0], ecx
jle 0x474ec9
mov ax, word [esp + 0x12c]
xor esi, esi
xor edi, edi
nop dword [eax]
or ax, 8
lea ecx, [esp + 0x110]
mov word [esp + 0x12c], ax
mov eax, dword [esp + 0xd4]
mov edx, dword [esi + eax]
mov edx, dword [edx + 0x14]
call fcn.00451650
mov ax, word [esp + 0x12c]
lea esi, [esi + 0x10]
mov ecx, 0xfff7
inc edi
and ax, cx
mov word [esp + 0x12c], ax
cmp edi, dword [esp + 0xd8]
jl 0x474e70
mov ecx, dword [esp + 0xcc]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x45], 0
jne 0x474696
mov edx, dword [esp + 0x28]
test edx, edx
je 0x47607c
mov eax, dword [esi + 0x48]
push ecx
mov dword [esp + 0xb4], eax
mov ecx, esi
inc eax
push 0
mov dword [esi + 0x48], eax
call fcn.0046dc50
push 0xfffffffffffffffa
push eax
push 0
push dword [esp + 0xcc]
mov edx, 0x6a
mov dword [esp + 0x74], eax
push dword [esp + 0xc8]
mov ecx, edi
call fcn.00437b60
mov dword [esp + 0xb0], eax
add esp, 0x1c
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esp + 0x70], eax
inc eax
mov dword [esp + 0x4c], eax
inc eax
mov dword [esi + 0x4c], eax
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x68], ecx
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x88], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
test edx, eax
jne 0x474f86
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ecx]
push 0
push eax
call fcn.00418a40
mov ecx, dword [esp + 0x70]
add esp, 8
mov edx, dword [esp + 0x88]
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x474f94
mov dword [eax + edx*4], 0xffffffff
inc dword [esi + 0x4c]
not edx
mov ecx, dword [edi + 0x18]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x60], eax
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x84], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
test edx, eax
jne 0x474fea
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ecx]
push 0
push eax
call fcn.00418a40
mov ecx, dword [esp + 0x70]
add esp, 8
mov edx, dword [esp + 0x84]
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x474ff8
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [esi + 0x4c]
not edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x28]
lea ecx, [eax + 1]
mov dword [esp + 0x8c], ecx
mov ecx, dword [edx]
add ecx, eax
mov dword [esi + 0x4c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x80], eax
mov eax, dword [edx]
add eax, ecx
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x47504e
push 0
push dword [esp + 0x50]
mov edx, 0x4a
mov ecx, edi
push 0
call fcn.004376e0
add esp, 0xc
jmp 0x475085
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4750a9
push 0
push dword [esp + 0x74]
mov edx, 0x4a
mov ecx, edi
push 0
call fcn.004376e0
add esp, 0xc
jmp 0x4750e0
mov edx, dword [esp + 0x70]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
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 [esp + 0x28]
mov edx, dword [esp + 0x8c]
mov eax, dword [edi + 0x18]
dec edx
add edx, dword [ecx]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475114
push edx
push dword [esp + 0x90]
mov edx, 0x4d
mov ecx, edi
push 0
call fcn.004376e0
add esp, 0xc
jmp 0x47514e
mov esi, dword [esp + 0x8c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x4d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475177
push 0
push dword [esp + 0x88]
mov edx, 0xe
mov ecx, edi
push dword [esp + 0x68]
call fcn.004376e0
add esp, 0xc
jmp 0x4751b1
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x84]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x14], 0
mov ecx, 0x900
mov edx, dword [esp + 0x20]
mov eax, 0x100
cmovne eax, ecx
mov ecx, esi
push 0
movzx eax, ax
push eax
push 0
push dword [esp + 0x34]
push dword [esp + 0x88]
call fcn.00486030
mov edx, eax
add esp, 0x14
mov dword [esp + 0x54], edx
test edx, edx
je 0x474696
mov ecx, dword [esp + 0x28]
movsx eax, byte [edx + 0x26]
cmp eax, dword [ecx]
jne 0x475209
xor ecx, ecx
mov dword [esp + 0x48], ecx
jmp 0x4756e2
cmp byte [esp + 0xf], 0
je 0x47521f
mov eax, dword [esp + 0x18]
test byte [eax + 8], 1
mov eax, str.DISTINCT
je 0x475224
mov eax, str.GROUP_BY
cmp byte [esi + 0x1c5], 2
jne 0x475268
mov esi, dword [esi + 8]
push eax
mov eax, dword [esp + 0x14]
push str.USE_TEMP_B_TREE_FOR__s
push dword [eax]
call fcn.0041a4a0
add esp, 0xc
mov edx, 0xa0
mov ecx, esi
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push dword [eax + 0x1d4]
call fcn.00437b60
mov esi, dword [esp + 0x24]
add esp, 0x14
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x48], 1
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], eax
test edx, edx
jle 0x4752ad
mov eax, dword [esp + 0xc8]
mov edi, ecx
add eax, 0xc
cmp dword [eax], ecx
jl 0x47529d
inc edi
inc ecx
add eax, 0x18
sub edx, 1
jne 0x475297
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x7c]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x2c], eax
cmp edx, ecx
jg 0x4752cb
add eax, edx
sub ecx, edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], ecx
jmp 0x4752da
mov eax, dword [esi + 0x4c]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x2c], ecx
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.0044eff0
mov edx, dword [esp + 0x28]
push 0
push 0
push dword [esp + 0x34]
call fcn.00450580
mov ecx, dword [esp + 0xd8]
add esp, 0xc
mov dword [esp + 0x58], 0
test ecx, ecx
jle 0x4753eb
mov edx, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x24], edi
nop word [eax + eax]
mov eax, dword [esp + 0xc8]
cmp dword [edi + eax + 0xc], edx
jl 0x4753cf
mov ecx, dword [edi + eax + 8]
mov edx, dword [edi + eax + 4]
mov eax, dword [edi + eax]
mov dword [esp + 0x78], ecx
lea ecx, [esi + 0x7c]
mov dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x68], ecx
cmp dword [ecx + 0xc], 0
mov eax, dword [esp + 0x50]
jle 0x475374
cmp dword [ecx], eax
jne 0x475374
movsx eax, word [ecx + 4]
cmp eax, dword [esp + 0x78]
je 0x475401
mov eax, dword [esp + 0x50]
inc edx
add ecx, 0x14
mov dword [esp + 0x68], ecx
cmp edx, 0xa
jl 0x475354
mov ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x90]
push ecx
push dword [esp + 0x7c]
mov ecx, dword [esi + 8]
push eax
call fcn.0044eda0
mov eax, dword [esp + 0x38]
add esp, 0xc
add eax, dword [esp + 0x30]
mov ecx, esi
mov edx, dword [esp + 0x50]
push eax
push dword [esp + 0x7c]
call fcn.0044ea60
add esp, 8
mov edi, dword [esp + 0x24]
inc dword [esp + 0x30]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
add edi, 0x18
inc eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x58], eax
cmp eax, ecx
jl 0x475320
mov edi, dword [esp + 0x7c]
mov al, byte [esi + 0x13]
test al, al
jne 0x4754a7
inc dword [esi + 0x4c]
mov edx, dword [esi + 0x4c]
jmp 0x4754b3
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x10], eax
inc dword [esi + 0x70]
mov edx, dword [ecx + 0xc]
mov ecx, esi
call fcn.0044ec70
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], eax
cmp eax, ecx
je 0x4753c0
mov ecx, dword [esi + 8]
mov dword [esp + 0x78], ecx
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x475463
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
push 0
push eax
push edx
mov edx, 0x53
call fcn.004376e0
add esp, 0xc
jmp 0x4753c0
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x53
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4753bc
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov edx, dword [esi + eax*4 + 0x1c]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x24], edx
cmp dword [eax + 0x58], ecx
jg 0x4754e0
push edx
push dword [esp + 0x44]
mov edx, 0x60
mov ecx, edi
push dword [esp + 0x34]
call fcn.004376e0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x475517
mov esi, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x40]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x60
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xb0]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x475549
push 0
push edx
push dword [esp + 0x60]
mov edx, 0x7b
mov ecx, edi
call fcn.004376e0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x475580
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x7c]
mov word [eax + ecx*4], 0x7b
mov byte [eax + ecx*4 + 3], 0
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 0x4755b4
mov al, byte [esi + 0x13]
mov byte [esp + 0xf], al
cmp al, 8
jae 0x4755b4
xor ecx, ecx
lea eax, [esi + 0x7c]
cmp dword [eax + 0xc], edx
je 0x4755b0
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x475594
movzx eax, byte [esp + 0xf]
mov dword [esi + eax*4 + 0x1c], edx
inc byte [esi + 0x13]
jmp 0x4755b4
mov byte [eax + 6], 1
push dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.0044ebb0
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, dword [esi + 0x3c]
jle 0x4755d9
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0x54]
call fcn.00486ac0
mov edx, dword [esi + 0x48]
mov dword [esp + 0x50], edx
mov dword [esp + 0xb4], edx
lea eax, [edx + 1]
mov dword [esi + 0x48], eax
mov al, byte [esi + 0x13]
test al, al
jne 0x475605
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
jmp 0x475611
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x47563a
push dword [esp + 0x40]
mov ecx, edi
push dword [esp + 0x30]
push edx
mov edx, 0x6c
call fcn.004376e0
add esp, 0xc
jmp 0x47566d
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0xb0]
cmp dword [eax + 0x58], ecx
jg 0x475697
push 0
push dword [esp + 0x70]
mov ecx, edi
push edx
mov edx, 0x2a
call fcn.004376e0
add esp, 0xc
jmp 0x4756ca
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 0x2a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, esi
mov byte [esp + 0xad], 1
call fcn.0044eff0
mov edx, dword [esp + 0x54]
mov ecx, 1
cmp dword [esp + 0x14], 0
je 0x47573f
mov eax, dword [esp + 0x1c]
test byte [eax + 0x40], 4
jne 0x47573f
test ecx, ecx
jne 0x4756fc
cmp byte [edx + 0x27], cl
je 0x47573f
mov ecx, dword [edi]
mov dword [esp + 0xe0], 0
cmp byte [ecx + 0x45], 0
jne 0x47573f
mov eax, dword [esp + 0xf4]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.004381b0
mov word [esi], 0x9f
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 0x20]
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.0044eff0
cmp dword [esp + 0x48], 0
je 0x4757b3
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0xb0]
cmp dword [eax + 0x58], ecx
jg 0x475780
push dword [esp + 0x50]
mov ecx, edi
push dword [esp + 0x30]
push edx
mov edx, 0x76
call fcn.004376e0
add esp, 0xc
jmp 0x4757b3
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x24], edx
cmp dword [eax], edx
jle 0x475882
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
cmp dword [esp + 0x48], 0
je 0x47583c
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475802
mov eax, dword [esp + 0x80]
mov ecx, edi
add eax, edx
push eax
push edx
push dword [esp + 0x58]
mov edx, 0x5e
call fcn.004376e0
add esp, 0xc
jmp 0x475862
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x5e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x80]
add eax, edx
mov dword [ecx + 0xc], eax
jmp 0x475866
mov eax, dword [esp + 0x80]
add eax, edx
mov byte [esp + 0xac], 1
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
mov edx, dword [edx + ecx]
mov ecx, esi
call fcn.00450380
add esp, 4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edx
mov ecx, dword [esp + 0x14]
add ecx, 0x18
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
cmp edx, dword [eax]
jl 0x4757d0
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x47588c
inc dword [ecx]
mov ecx, dword [eax]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x90], ecx
cmp dword [eax + 0x58], edx
jg 0x4758c2
push ecx
push dword [esp + 0x84]
mov edx, 0x5d
mov ecx, edi
push dword [esp + 0x94]
call fcn.004376e0
add esp, 0xc
mov edx, eax
jmp 0x475906
mov esi, dword [esp + 0x8c]
lea eax, [edx + 1]
mov dword [edi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x80]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x90]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x5d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x475922
mov edx, dword [esp + 0x5c]
push edx
mov edx, 0xfffffffa
call fcn.004381b0
add esp, 4
jmp 0x47595a
test edx, edx
jns 0x47592a
mov edx, dword [edi + 0x20]
dec edx
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x5c]
je 0x47594f
push 0xfffffffffffffffa
push edx
mov edx, eax
mov ecx, edi
call fcn.004383e0
add esp, 8
jmp 0x47595a
test edx, edx
je 0x47595a
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x14], ecx
lea edx, [ecx + 1]
cmp dword [eax + 0x58], ecx
jg 0x475981
push edx
push 0
push edx
mov edx, 0x12
mov ecx, edi
call fcn.004376e0
add esp, 0xc
jmp 0x4759b0
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x12
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov dword [esp + 0x90], ecx
mov eax, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x18]
cmp dword [eax + 0x58], edx
jg 0x4759f1
mov edx, dword [esp + 0x24]
push edx
push dword [esp + 0x90]
mov edx, 0x51
push dword [esp + 0x88]
call fcn.004376e0
add esp, 0xc
jmp 0x475a35
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x80]
mov eax, dword [eax + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x51
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x24]
mov edx, dword [esp + 0x84]
mov ecx, esi
call fcn.0044ebb0
mov eax, dword [edi + 0x18]
add esp, 4
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475a75
mov eax, dword [esp + 0x4c]
mov edx, 0xe
push 0
push dword [esp + 0x8c]
inc eax
mov ecx, edi
push eax
call fcn.004376e0
add esp, 0xc
jmp 0x475ab4
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
inc edx
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475ada
push 0
push dword [esp + 0x70]
mov edx, 0x40
mov ecx, edi
push dword [esp + 0x54]
call fcn.004376e0
add esp, 0xc
jmp 0x475b11
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 0x40
mov byte [eax + ecx*4 + 3], 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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475b3a
push 0
push dword [esp + 0x88]
mov edx, 0xe
mov ecx, edi
push dword [esp + 0x68]
call fcn.004376e0
add esp, 0xc
jmp 0x475b74
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x84]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 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 [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x475b8c
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x475b9b
mov eax, 0x520b44
jmp 0x475ba4
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, esi
lea edx, [esp + 0xac]
call fcn.00473f10
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475bd9
push 0
push dword [esp + 0x74]
mov edx, 0x4a
mov ecx, edi
push 1
call fcn.004376e0
add esp, 0xc
jmp 0x475c10
mov edx, dword [esp + 0x70]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
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
cmp dword [esp + 0x48], 0
je 0x475c76
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0xb0]
cmp dword [eax + 0x58], ecx
jg 0x475c41
push 0
push dword [esp + 0x5c]
mov ecx, edi
push edx
mov edx, 3
call fcn.004376e0
add esp, 0xc
jmp 0x475cb7
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x58]
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x475cb7
mov ecx, dword [esp + 0x54]
call fcn.00486ac0
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
jne 0x475cb7
mov eax, dword [esp + 0x94]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.004381b0
mov word [esi], 0x9f
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475ce2
mov eax, dword [esp + 0x4c]
mov edx, 0xe
push 0
push dword [esp + 0x8c]
inc eax
mov ecx, edi
push eax
call fcn.004376e0
add esp, 0xc
jmp 0x475d21
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
inc edx
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475d45
push 0
push dword [esp + 0x70]
mov edx, 0xd
mov ecx, edi
push 0
call fcn.004376e0
add esp, 0xc
jmp 0x475d7c
mov edx, dword [esp + 0x6c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x90], ecx
cmp dword [eax + 0x58], ecx
jg 0x475dab
push 0
push dword [esp + 0x50]
mov edx, 0x4a
mov ecx, edi
push 1
call fcn.004376e0
mov edx, dword [esp + 0x58]
add esp, 0xc
jmp 0x475de2
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475e06
push 0
lea eax, [edx + 1]
mov ecx, edi
push 0
push eax
mov edx, 0x46
call fcn.004376e0
add esp, 0xc
jmp 0x475e42
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
inc edx
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
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 edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x475e61
mov eax, dword [esp + 0x88]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x60], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x94], ecx
lea edx, [ecx + 2]
cmp dword [eax + 0x58], ecx
jg 0x475e95
push 0
push edx
push dword [esp + 0x78]
mov edx, 0x40
mov ecx, edi
call fcn.004376e0
add esp, 0xc
jmp 0x475ecc
mov esi, dword [esp + 0x70]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x40
mov byte [eax + ecx*4 + 3], 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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475ef2
mov eax, dword [esp + 0x4c]
mov edx, 0x46
push 0
inc eax
mov ecx, edi
push 0
push eax
call fcn.004376e0
add esp, 0xc
jmp 0x475f2e
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
inc edx
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
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
lea edx, [esp + 0xac]
mov ecx, esi
call fcn.00473df0
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0x44]
inc esi
mov ecx, dword [esp + 0x10]
push 0x10
push esi
call fcn.00450bf0
push dword [esp + 0x98]
lea eax, [esp + 0xa4]
push esi
push dword [ebp + 8]
mov esi, dword [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x34]
mov edx, eax
push 0xffffffffffffffff
push dword [eax]
call fcn.0046cf80
mov eax, dword [edi + 0x18]
add esp, 0x24
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x475fad
mov eax, dword [esp + 0x4c]
mov edx, 0x46
push 0
inc eax
mov ecx, edi
push 0
push eax
call fcn.004376e0
add esp, 0xc
jmp 0x475fe5
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
inc edx
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
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 edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x476004
mov eax, dword [esp + 0x84]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
mov ecx, esi
dec eax
mov dword [edx + 0x60], eax
lea edx, [esp + 0xac]
call fcn.00473d00
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x476040
push 0
push 0
push dword [esp + 0x68]
mov edx, 0x46
mov ecx, edi
call fcn.004376e0
add esp, 0xc
jmp 0x476456
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
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 0x476456
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xac]
xor eax, eax
mov dword [esp + 0x70], eax
call fcn.00472600
mov edx, eax
mov dword [esp + 0x60], edx
test edx, edx
je 0x4762f9
mov ecx, dword [esi]
mov eax, dword [edx + 0x40]
mov dword [esp + 0x94], ecx
mov ecx, 0xfff0bdc0
mov dword [esp + 0x48], ecx
test eax, eax
je 0x4760ef
mov eax, dword [esi]
xor ecx, ecx
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x14], ecx
jle 0x4760ef
mov eax, dword [eax + 0x10]
mov edi, dword [edx + 0x40]
add eax, 0xc
mov esi, dword [esp + 0x94]
cmp dword [eax], edi
je 0x4760e3
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x14]
jl 0x4760d6
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov eax, dword [esi + 0x48]
mov dword [esp + 0x50], eax
inc eax
mov dword [esi + 0x48], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 0x1c]
mov edx, ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0045ae10
mov eax, dword [esp + 0x60]
mov ecx, esi
mov edx, dword [esp + 0x48]
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.00454e60
mov eax, dword [esp + 0x6c]
add esp, 0xc
test byte [eax + 0x2a], 0x20
je 0x47615c
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x47615e
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x476152
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x476142
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], ecx
jmp 0x47615e
xor ecx, ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x4761a1
mov esi, dword [esp + 0x60]
nop dword [eax]
test byte [eax + 0x38], 4
jne 0x476192
movzx edx, word [eax + 0x30]
cmp dx, word [esi + 0x28]
jge 0x476192
cmp dword [eax + 0x24], 0
jne 0x476192
test ecx, ecx
je 0x476190
cmp dx, word [ecx + 0x30]
jge 0x476192
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x476170
mov esi, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x4761b9
mov eax, dword [ecx + 0x2c]
mov edx, ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0045b770
mov dword [esp + 0x58], eax
push 1
push dword [esp + 0x4c]
mov edx, 0x66
mov ecx, edi
push dword [esp + 0x1c]
push dword [esp + 0x5c]
call fcn.00437ce0
mov edx, dword [esp + 0x68]
add esp, 0x10
test edx, edx
je 0x476222
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x4761f6
push edx
mov edx, 0xfffffffa
call fcn.004381b0
add esp, 4
jmp 0x476222
mov eax, dword [edi + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x47621b
push 0xfffffffffffffffa
push edx
mov edx, eax
mov ecx, edi
call fcn.004383e0
add esp, 8
jmp 0x476222
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov eax, dword [esp + 0xd4]
mov ecx, dword [edi + 0x20]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x47624f
push 0
push edx
push dword [esp + 0x58]
mov edx, 0x62
mov ecx, edi
call fcn.004376e0
add esp, 0xc
jmp 0x476286
mov esi, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x62
mov byte [eax + ecx*4 + 3], 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 [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4762aa
push 0
push 0
push dword [esp + 0x58]
mov edx, 0x6d
mov ecx, edi
call fcn.004376e0
add esp, 0xc
jmp 0x4762e1
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x6d
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esp + 0x5c]
mov ecx, esi
mov edx, dword [esp + 0x60]
push eax
call fcn.004743a0
add esp, 4
jmp 0x476403
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x28], 0
jne 0x47636f
lea edx, [esp + 0x54]
lea ecx, [esp + 0xac]
call fcn.00472590
mov byte [esp + 0xf], al
test al, al
je 0x476367
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
push 0
call fcn.0044c690
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x70], edx
cmp byte [eax + 0x45], 0
jne 0x47636f
mov eax, dword [edx + 4]
cmp byte [esp + 0xf], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov byte [eax], 0x98
jmp 0x47636f
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
lea edx, [esp + 0xac]
mov ecx, esi
call fcn.00473d00
mov al, byte [esp + 0xf]
mov ecx, esi
mov edx, dword [esp + 0x20]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0x30]
push dword [esp + 0x88]
call fcn.00486030
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4763c8
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x47469a
mov edx, eax
mov ecx, edi
call fcn.0044d030
jmp 0x47469a
lea edx, [esp + 0xac]
mov ecx, esi
call fcn.00473f10
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x26], 0
jle 0x4763ee
mov edx, dword [eax + 0x34]
mov ecx, edi
call fcn.004378e0
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.00486ac0
lea edx, [esp + 0xac]
mov ecx, esi
call fcn.00473df0
mov edx, dword [esp + 0x44]
mov ecx, esi
push 0x10
push dword [esp + 0x70]
mov dword [esp + 0xe8], 0
call fcn.00450bf0
mov eax, dword [esp + 0x74]
mov ecx, esi
push eax
push eax
push dword [ebp + 8]
mov eax, dword [esp + 0x2c]
mov edx, eax
push 0
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.0046cf80
mov eax, dword [esp + 0x94]
add esp, 0x24
test eax, eax
je 0x476456
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.0044d030
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x476472
mov eax, dword [esp + 0x6c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x60], eax
mov eax, dword [esp + 0x64]
cmp al, 3
jne 0x476578
cmp byte [esi + 0x1c5], 2
jne 0x476578
mov eax, dword [esi + 8]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push dword [esi]
mov dword [esp + 0x50], eax
call fcn.0041a4a0
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x1d4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4764e3
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0xa0
call fcn.004376e0
add esp, 0xc
mov edx, eax
jmp 0x476522
mov edi, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x7c]
mov word [eax + ecx*4], 0xa0
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x476542
mov edx, dword [esp + 0x54]
mov ecx, eax
push edx
or edx, 0xffffffff
call fcn.004381b0
add esp, 4
jmp 0x476578
test edx, edx
jns 0x47654a
mov edx, dword [ecx + 0x20]
dec edx
mov eax, dword [ecx + 4]
lea edx, [edx + edx*4]
cmp byte [eax + edx*4 + 1], 0
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
je 0x47656d
push 0xffffffffffffffff
push edx
mov edx, eax
call fcn.004383e0
add esp, 8
jmp 0x476578
test edx, edx
je 0x476578
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xff
cmp dword [esp + 0xe0], 0
je 0x4766a9
cmp byte [esi + 0x1c5], 2
jne 0x47668a
mov eax, dword [esi + 8]
mov ecx, str.ORDER_BY
cmp dword [esp + 0xe4], 0
mov dword [esp + 0x44], eax
mov eax, str.RIGHT_PART_OF_ORDER_BY
cmovle eax, ecx
push eax
push str.USE_TEMP_B_TREE_FOR__s
push dword [esi]
call fcn.0041a4a0
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x1d4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4765f5
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0xa0
call fcn.004376e0
add esp, 0xc
mov edx, eax
jmp 0x476634
mov edi, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x7c]
mov word [eax + ecx*4], 0xa0
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x476654
mov edx, dword [esp + 0x54]
mov ecx, eax
push edx
or edx, 0xffffffff
call fcn.004381b0
add esp, 4
jmp 0x47668a
test edx, edx
jns 0x47665c
mov edx, dword [ecx + 0x20]
dec edx
mov eax, dword [ecx + 4]
lea edx, [edx + edx*4]
cmp byte [eax + edx*4 + 1], 0
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
je 0x47667f
push 0xffffffffffffffff
push edx
mov edx, eax
call fcn.004383e0
add esp, 8
jmp 0x47668a
test edx, edx
je 0x47668a
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xff
mov eax, dword [esp + 0x74]
mov ecx, esi
push dword [ebp + 8]
mov edx, dword [esp + 0x1c]
push dword [eax]
lea eax, [esp + 0xe8]
push eax
call fcn.0046dd70
add esp, 0xc
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4766c8
mov eax, dword [esp + 0x10c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
mov edi, dword [esp + 0x1c]
dec eax
mov dword [edx + 0x60], eax
xor eax, eax
cmp dword [esi + 0x44], eax
setg al
mov dword [esp + 0x58], eax
jmp 0x47469f
mov edi, dword [esp + 0x1c]
mov eax, 1
jmp 0x4746a3
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, 1
jmp 0x4746a3
cmp esi, dword [edi + 0x120]
jb 0x47672a
cmp esi, dword [edi + 0x124]
jae 0x47672a
mov eax, dword [edi + 0x11c]
mov dword [esi], eax
dec dword [edi + 0x108]
mov dword [edi + 0x11c], esi
jmp 0x476782
cmp dword [0x51bfe0], 0
je 0x476778
mov eax, dword [0x51f900]
test eax, eax
je 0x476746
push eax
call dword [0x51c038]
add esp, 4
push esi
call dword [0x51c014]
sub dword [0x51f930], eax
add esp, 4
dec dword [0x51f954]
push esi
call dword [0x51c00c]
mov eax, dword [0x51f900]
add esp, 4
test eax, eax
je 0x476782
push eax
call dword [0x51c040]
jmp 0x47677f
push esi
call dword [0x51c00c]
add esp, 4
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x47683e
cmp dword [edi + 0x1c8], 0
je 0x4767ad
mov edx, esi
mov ecx, edi
call fcn.00418550
mov eax, dword [esp + 0x58]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x120]
jb 0x4767db
cmp esi, dword [edi + 0x124]
jae 0x4767db
mov eax, dword [edi + 0x11c]
mov dword [esi], eax
dec dword [edi + 0x108]
mov eax, dword [esp + 0x58]
mov dword [edi + 0x11c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x51bfe0], 0
je 0x476834
mov eax, dword [0x51f900]
test eax, eax
je 0x4767f7
push eax
call dword [0x51c038]
add esp, 4
push esi
call dword [0x51c014]
sub dword [0x51f930], eax
add esp, 4
dec dword [0x51f954]
push esi
call dword [0x51c00c]
mov eax, dword [0x51f900]
add esp, 4
test eax, eax
je 0x47683e
push eax
call dword [0x51c040]
mov eax, dword [esp + 0x5c]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [0x51c00c]
add esp, 4
mov eax, dword [esp + 0x58]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret