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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x84], eax
mov esi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x7c], 0
mov eax, dword [edi + 0x1a0]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x1a4]
mov dword [edi + 0x1a0], eax
inc eax
mov dword [edi + 0x1a4], eax
mov eax, dword [edi]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], eax
test esi, esi
je 0x515e52
cmp byte [eax + 0x45], 0
jne 0x515e52
cmp dword [edi + 0x24], 0
jne 0x515e52
push 0
push 0
push 0
mov edx, 0x15
call fcn.004f4990
add esp, 0xc
test eax, eax
jne 0x515e52
push 0x30
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.005d05b0
mov eax, dword [esp + 0x90]
add esp, 0xc
cmp byte [eax], 8
ja 0x513ad9
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x513ace
mov ecx, dword [esp + 0x44]
call fcn.004ebf80
and dword [esi + 8], 0xfffffffe
mov dword [esi + 0x2c], 0
push 0
mov edx, esi
mov ecx, edi
call fcn.00513270
mov ecx, esi
xorps xmm0, xmm0
mov esi, dword [esp + 0x48]
add esp, 4
cmp dword [edi + 0x24], 0
movaps xmmword [esp + 0xd0], xmm0
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x1c]
movaps xmmword [esp + 0xe0], xmm0
mov dword [esp + 0x20], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0x4c], edx
jne 0x513c89
cmp byte [esi + 0x45], 0
jne 0x513c89
mov eax, dword [ecx + 8]
xor esi, esi
shr eax, 3
and eax, 1
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x30], esi
jne 0x513c07
cmp esi, dword [edx]
jge 0x513c07
lea eax, [esi + esi*4]
add eax, eax
mov edx, dword [edx + eax*8 + 0x1c]
test edx, edx
je 0x513bf8
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + eax*8 + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
movsx eax, word [eax + 0x2a]
mov dword [esp + 0x130], eax
mov eax, dword [edx]
mov eax, dword [eax]
cmp dword [esp + 0x130], eax
jne 0x513c65
mov eax, dword [edx + 8]
mov edx, ecx
shr eax, 3
mov ecx, edi
and eax, 1
push eax
push dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push esi
call fcn.00511b20
add esp, 0xc
test eax, eax
je 0x513bc3
cmp dword [esp + 0x14], 0
je 0x513bc0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], 1
or dword [eax + 8], 8
or esi, 0xffffffff
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov edx, dword [ecx + 0x1c]
cmp byte [eax + 0x45], 0
mov dword [esp + 0x4c], edx
jne 0x515d8c
mov eax, dword [esp + 0x84]
cmp byte [eax], 8
jbe 0x513bfc
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0xd0], eax
jmp 0x513bfc
mov edx, dword [esp + 0x4c]
inc esi
cmp dword [ecx + 0x30], 0
je 0x513b41
mov esi, dword [edi + 8]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x513c27
mov ecx, edi
call fcn.0050ef70
mov ecx, dword [esp + 0x40]
mov esi, eax
mov dword [esp + 0x54], esi
test esi, esi
je 0x513c81
cmp dword [ecx + 0x30], 0
je 0x513ce3
push dword [esp + 0x84]
mov edx, ecx
mov ecx, edi
call fcn.0050f970
mov ecx, dword [esp + 0x9c]
add esp, 4
mov dword [edi + 0x1a0], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x138]
push str.expected__d_columns_for__s_but_got__d
push edi
call fcn.004bab30
add esp, 0x14
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword [edi + 0x1a0], ecx
test eax, eax
jne 0x513cb9
mov eax, dword [esp + 0x84]
cmp byte [eax], 9
jne 0x513cb9
push dword [esp + 0x7c]
mov ecx, edi
call fcn.0050e600
add esp, 4
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x515dc2
cmp dword [esi + 0x1c8], 0
je 0x515d93
mov edx, ecx
mov ecx, esi
call fcn.004b7d60
jmp 0x515dc2
mov edx, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x58], eax
cmp dword [edx], eax
jle 0x513fe7
lea eax, [eax + eax*4]
shl eax, 4
add eax, edx
mov dword [esp + 0x48], eax
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x74], edx
test edx, edx
je 0x513fd2
mov edx, dword [eax + 0x20]
test edx, edx
je 0x513d39
test byte [eax + 0x30], 0x10
jne 0x513fd2
push edx
push dword [eax + 0x24]
mov edx, 0xe
mov ecx, esi
call fcn.004d5ed0
add esp, 8
jmp 0x513fce
lea edx, [esp + 0x130]
mov dword [esp + 0x130], 0
call fcn.004ea580
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x130]
add dword [edi + 0x19c], eax
test byte [edx + 0x2c], 0x20
jne 0x513d83
mov eax, dword [esp + 0x40]
mov ecx, edi
push dword [edx + 0x38]
mov edx, dword [esp + 0x78]
push dword [eax + 0x20]
call fcn.00512110
mov edx, dword [esp + 0x50]
add esp, 8
cmp dword [esp + 0x58], 0
jne 0x513ea1
mov eax, dword [esp + 0x4c]
cmp dword [eax], 1
je 0x513da1
test byte [eax + 0x7c], 0xa
je 0x513ea1
mov eax, dword [esp + 0x40]
test byte [eax + 8], 2
jne 0x513ea1
mov eax, dword [esp + 0x44]
mov ecx, 0x100
test word [eax + 0x40], cx
jne 0x513ea1
mov edi, dword [esi + 0x88]
mov ecx, dword [esp + 0x1c]
lea esi, [edi + 1]
mov eax, dword [ecx + 0x2c]
inc eax
push esi
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 0x58]
mov dword [edx + 0x24], eax
mov edx, 0xf
push 0
push eax
call fcn.004d5d80
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov edx, dword [esp + 0x74]
mov byte [esp + 0x134], 0xd
mov dword [esp + 0x138], 0
mov dword [ecx + 0x20], esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esi + 0x24]
mov dword [esp + 0x13c], eax
mov al, byte [ecx + 0x1a4]
mov byte [esi + 0x34], al
lea eax, [esp + 0x134]
push eax
call fcn.00513a00
mov ecx, dword [esi + 0x18]
add esp, 4
mov eax, dword [esp + 0x74]
mov edx, 0x4a
mov ax, word [eax + 6]
mov word [ecx + 0x2c], ax
mov eax, dword [esp + 0x140]
or dword [esi + 0x30], 0x10
push dword [esi + 0x24]
mov dword [esi + 0x28], eax
mov esi, dword [esp + 0x58]
mov ecx, esi
call fcn.004d5e60
mov eax, dword [esi + 0xc]
add esp, 4
mov edx, edi
mov ecx, esi
mov byte [eax + 0x13], 0
mov eax, dword [esi + 0xc]
mov dword [eax + 0x1c], 0
call fcn.004d6610
mov edi, dword [esp + 0x1c]
jmp 0x513f8d
xor eax, eax
mov ecx, esi
mov dword [esp + 0x130], eax
mov eax, dword [edi + 0x2c]
inc eax
mov dword [edi + 0x2c], eax
push eax
mov dword [edx + 0x24], eax
mov edx, 0x4d
push 0
call fcn.004d5ed0
mov ecx, dword [esp + 0x50]
add esp, 8
mov dword [esp + 0x14], eax
inc eax
test byte [ecx + 0x30], 8
mov dword [ecx + 0x20], eax
jne 0x513eef
mov edx, 0x14
mov ecx, esi
call fcn.004d5df0
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x130], eax
mov eax, dword [ecx + 0x38]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x13c], eax
mov al, byte [edi + 0x1a4]
mov byte [ecx + 0x34], al
lea eax, [esp + 0x134]
push eax
mov ecx, edi
mov byte [esp + 0x138], 0xc
mov dword [esp + 0x13c], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
call fcn.00513a00
mov ecx, dword [esp + 0x4c]
add esp, 4
mov eax, dword [esp + 0x74]
mov ecx, dword [ecx + 0x18]
mov ax, word [eax + 6]
mov word [ecx + 0x2c], ax
mov eax, dword [esp + 0x130]
test eax, eax
je 0x513f68
mov edx, eax
mov ecx, esi
call fcn.004d6610
mov eax, dword [esp + 0x48]
mov edx, 0x49
mov ecx, esi
push dword [eax + 0x24]
call fcn.004d5e60
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, esi
push eax
call fcn.004d65b0
add esp, 4
mov eax, dword [esp + 0x44]
mov byte [edi + 0x13], 0
mov dword [edi + 0x1c], 0
cmp byte [eax + 0x45], 0
jne 0x515d85
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x130]
mov dword [esp + 0x130], 0
call fcn.004ea580
mov eax, dword [esp + 0x130]
sub dword [edi + 0x19c], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x58], eax
cmp eax, dword [edx]
jl 0x513cf5
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x130], eax
mov al, byte [ecx + 8]
and al, 1
mov dword [esp + 0x7c], edx
mov byte [esp + 0x1b], al
mov byte [esp + 0x134], al
mov eax, dword [ecx + 8]
and al, 9
cmp al, 1
jne 0x51405e
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
call fcn.004f0f60
mov edx, dword [esp + 0x80]
add esp, 4
test eax, eax
jne 0x51405e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
and dword [eax + 8], 0xfffffffe
call fcn.004eb370
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], edx
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5140b6
push dword [edx]
mov edx, eax
mov ecx, edi
push 0
call fcn.0050db90
mov edx, dword [edi + 0x28]
mov ecx, eax
push 0xfffffffffffffffb
push ecx
push 0
lea eax, [edx + 1]
mov dword [esp + 0xec], edx
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
inc ecx
mov eax, dword [eax]
add eax, ecx
mov ecx, esi
push eax
push edx
mov edx, 0x6c
call fcn.004d6110
add esp, 0x1c
mov dword [esp + 0xe4], eax
jmp 0x5140c1
mov dword [esp + 0xe4], 0xffffffff
mov eax, dword [esp + 0x84]
cmp byte [eax], 0xc
jne 0x5140e5
mov ecx, dword [esp + 0x7c]
mov edx, 0x6c
push dword [ecx]
mov ecx, esi
push dword [eax + 8]
call fcn.004d5ed0
add esp, 8
mov ecx, esi
call fcn.004d62a0
mov ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x9c], ecx
test dword [eax + 8], 0x4000
jne 0x51410b
mov edx, pe_nt_image_headers32
mov word [eax + 6], dx
push ecx
mov edx, eax
mov ecx, edi
call fcn.0050f000
mov edx, dword [esp + 0x44]
add esp, 4
cmp dword [edx + 0xc], 0
jne 0x514147
mov eax, dword [esp + 0xe4]
test eax, eax
js 0x514147
push 0x6d
mov edx, eax
mov ecx, esi
call fcn.004d6570
mov edx, dword [esp + 0x44]
add esp, 4
or byte [esp + 0xec], 1
test byte [edx + 8], 1
je 0x5141b2
mov esi, dword [edi + 0x28]
push 0xfffffffffffffffb
push ecx
push 0
lea eax, [esi + 1]
mov dword [esp + 0x144], esi
mov dword [edi + 0x28], eax
mov ecx, edi
mov edx, dword [edx]
push 0
call fcn.0050db90
add esp, 0xc
mov edx, 0x6c
push eax
push 0
push 0
push esi
mov esi, dword [esp + 0x68]
mov ecx, esi
call fcn.004d6110
mov dword [esp + 0x150], eax
add esp, 0x14
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x5141aa
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x40]
mov al, 3
jmp 0x5141b4
xor al, al
cmp dword [esp + 0x10], 0
mov byte [esp + 0x135], al
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
jne 0x5142fe
test eax, eax
jne 0x5142fe
xor ecx, ecx
mov dword [esp + 0x14], 0x4000
cmp byte [esp + 0x1b], cl
mov eax, 0x100
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 + 0x58]
mov ecx, edi
push dword [esp + 0x2c]
push dword [esp + 0x68]
call fcn.00526220
mov edx, eax
add esp, 0x14
mov dword [esp + 0x130], edx
test edx, edx
je 0x513c81
mov eax, dword [esp + 0x40]
movzx ecx, word [edx + 0x48]
cmp cx, word [eax + 6]
jge 0x51423c
mov word [eax + 6], cx
cmp byte [esp + 0x1b], 0
je 0x514268
mov eax, dword [esp + 0x74]
mov cl, byte [edx + 0x2f]
movzx eax, al
test cl, cl
mov dword [esp + 0x74], eax
movzx eax, cl
mov ecx, dword [esp + 0x74]
cmovne ecx, eax
mov dword [esp + 0x74], ecx
mov byte [esp + 0x135], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51429a
mov al, byte [edx + 0x30]
movsx ecx, byte [edx + 0x2b]
mov byte [esp + 0xed], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0xd4], ecx
cmp ecx, dword [eax]
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0xe4]
test ecx, ecx
js 0x5142b9
test eax, eax
jne 0x5142b9
mov edx, ecx
mov ecx, esi
call fcn.004d6960
mov edx, dword [esp + 0x130]
push dword [edx + 0x20]
lea eax, [esp + 0x138]
mov ecx, edi
push dword [edx + 0x1c]
mov edx, dword [esp + 0x48]
push dword [esp + 0x8c]
push eax
lea eax, [esp + 0xe0]
push eax
push 0xffffffffffffffff
push dword [esp + 0x94]
call fcn.0050cf30
mov ecx, dword [esp + 0x14c]
add esp, 0x1c
call fcn.00526d00
jmp 0x515c88
mov dword [esp + 0x10], 0
mov dword [esp + 0x6c], 0
test eax, eax
je 0x514442
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jle 0x514336
add ecx, 0x16
xor edi, edi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], di
test eax, eax
jg 0x514324
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jle 0x514358
add ecx, 0x16
xor edi, edi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], di
test eax, eax
jg 0x514346
mov edi, dword [esp + 0x1c]
cmp word [edx + 6], 0x42
jle 0x514368
mov eax, 0x42
mov word [edx + 6], ax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov ecx, eax
push 0xffffffffffffffff
call fcn.004f0f60
add esp, 4
mov ecx, 1
test eax, eax
mov dword [esp + 0x78], ecx
mov eax, 0
cmove eax, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x14], ecx
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x48], edx
lea eax, [edx + 1]
mov dword [ecx + 0x48], eax
lea eax, [edx - 1]
test edx, eax
jne 0x5143d0
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [ecx]
push 0
push eax
call fcn.004b81f0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x48]
mov dword [ecx + 0x4c], eax
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x5143de
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x50]
not edx
mov dword [esp + 0xf8], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x100], eax
mov eax, dword [edi + 0x2c]
inc eax
mov dword [esp + 0x48], edx
mov dword [esp + 0xfc], 0
movlpd qword [esp + 0x104], xmm0
movlpd qword [esp + 0x10c], xmm0
mov dword [esp + 0xf4], edi
mov dword [esp + 0xb0], eax
test ecx, ecx
je 0x51444d
mov eax, dword [ecx]
mov dword [esp + 0xac], eax
jmp 0x514458
xor ecx, ecx
mov word [edx + 6], cx
jmp 0x51436c
mov dword [esp + 0xac], 0
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0xf4]
call fcn.004f1410
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xf4]
call fcn.004f1410
mov eax, dword [esp + 0x130]
test eax, eax
je 0x5144de
lea ecx, [esp + 0xf4]
mov dword [esp + 0x114], 0
xorps xmm0, xmm0
mov dword [esp + 0x12c], ecx
mov edx, eax
movlpd qword [esp + 0x120], xmm0
lea ecx, [esp + 0x114]
mov dword [esp + 0x128], 0
mov dword [esp + 0x118], 0x4f1190
mov dword [esp + 0x11c], fcn.0040f0f0
call fcn.004e79a0
cmp dword [esp + 0xcc], 0
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xc4], ecx
jle 0x51455b
mov ax, word [esp + 0x110]
xor esi, esi
xor edi, edi
or ax, 8
lea ecx, [esp + 0xf4]
mov word [esp + 0x110], ax
mov eax, dword [esp + 0xc8]
mov edx, dword [esi + eax]
mov edx, dword [edx + 0x14]
call fcn.004f1410
mov ax, word [esp + 0x110]
lea esi, [esi + 0x10]
mov ecx, 0xfff7
inc edi
and ax, cx
mov word [esp + 0x110], ax
cmp edi, dword [esp + 0xcc]
jl 0x514502
mov ecx, dword [esp + 0xc0]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x54]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x45], 0
jne 0x515d85
mov edx, dword [esp + 0x50]
test edx, edx
je 0x515704
mov eax, dword [edi + 0x28]
push ecx
mov dword [esp + 0xa8], eax
mov ecx, edi
inc eax
push 0
mov dword [edi + 0x28], eax
call fcn.0050db90
push 0xfffffffffffffffb
push eax
push 0
push dword [esp + 0xc0]
mov edx, 0x6d
mov dword [esp + 0x2c], eax
push dword [esp + 0xbc]
mov ecx, esi
call fcn.004d6110
mov dword [esp + 0xac], eax
add esp, 0x1c
mov eax, dword [edi + 0x2c]
inc eax
mov dword [esp + 0x80], eax
inc eax
mov dword [esp + 0x60], eax
inc eax
mov dword [edi + 0x2c], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x78], ecx
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x88], edx
lea eax, [edx + 1]
mov dword [ecx + 0x48], eax
lea eax, [edx - 1]
test edx, eax
jne 0x51461e
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [ecx]
push 0
push eax
call fcn.004b81f0
mov ecx, dword [esp + 0x80]
add esp, 8
mov edx, dword [esp + 0x88]
mov dword [ecx + 0x4c], eax
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x51462c
mov dword [eax + edx*4], 0xffffffff
inc dword [edi + 0x2c]
not edx
mov ecx, dword [esi + 0xc]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x68], eax
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], edx
lea eax, [edx + 1]
mov dword [ecx + 0x48], eax
lea eax, [edx - 1]
test edx, eax
jne 0x51467f
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [ecx]
push 0
push eax
call fcn.004b81f0
mov ecx, dword [esp + 0x80]
add esp, 8
mov edx, dword [esp + 0x64]
mov dword [ecx + 0x4c], eax
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x51468d
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [edi + 0x2c]
not edx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x50]
lea ecx, [eax + 1]
mov dword [esp + 0x8c], ecx
mov ecx, dword [edx]
add ecx, eax
mov dword [edi + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x94], eax
mov eax, dword [edx]
add eax, ecx
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5146e3
push 0
push dword [esp + 0x64]
mov edx, 0x4d
mov ecx, esi
push 0
call fcn.004d5d40
add esp, 0xc
jmp 0x514719
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x4d
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 [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x514743
push 0
push dword [esp + 0x84]
mov edx, 0x4d
mov ecx, esi
push 0
call fcn.004d5d40
add esp, 0xc
jmp 0x51477c
mov edx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x4d
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 + 0x50]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esi + 0x88]
dec edx
mov eax, dword [eax]
add edx, eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x5147b5
push edx
push dword [esp + 0x90]
mov edx, 0x50
mov ecx, esi
push 0
call fcn.004d5d40
add esp, 0xc
jmp 0x5147ee
mov edi, dword [esp + 0x8c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x514817
push 0
push dword [esp + 0x68]
mov edx, 0xe
mov ecx, esi
push dword [esp + 0x70]
call fcn.004d5d40
add esp, 0xc
jmp 0x51484d
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x5c], 0
mov ecx, 0x240
mov edx, dword [esp + 0x4c]
mov eax, 0x40
cmovne eax, ecx
mov ecx, edi
push 0
movzx eax, ax
push eax
push 0
push dword [esp + 0x5c]
push dword [esp + 0x68]
call fcn.00526220
mov edx, eax
add esp, 0x14
mov dword [esp + 0x78], edx
test edx, edx
je 0x513c81
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
movsx eax, byte [edx + 0x2b]
mov dword [esp + 0x3c], ecx
cmp eax, ecx
jne 0x5148a8
xor ecx, ecx
mov dword [esp + 0x58], ecx
jmp 0x514d3d
cmp byte [esp + 0x1b], 0
je 0x5148be
mov eax, dword [esp + 0x40]
test byte [eax + 8], 1
mov eax, str.DISTINCT
je 0x5148c3
mov eax, str.GROUP_BY
cmp byte [edi + 0x193], 2
jne 0x514909
mov esi, dword [edi + 8]
push eax
push str.USE_TEMP_B_TREE_FOR__s
push dword [edi]
call fcn.004b9e00
add esp, 0xc
mov edx, 0xa3
mov ecx, esi
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [edi + 0x1a0]
call fcn.004d6110
mov eax, dword [esp + 0x64]
add esp, 0x14
mov esi, dword [esp + 0x54]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0xc0], 0
mov edx, ecx
mov dword [esp + 0x58], 1
mov dword [esp + 0x70], ecx
jle 0x51496c
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0xc0]
add esi, 0xc
mov ecx, dword [esi]
lea esi, [esi + 0x18]
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x10], ecx
cmp ecx, edx
cmovl eax, dword [esp + 0x70]
cmp ecx, edx
mov dword [esp + 0x70], eax
lea eax, [edx + 1]
cmovl eax, edx
mov edx, eax
sub edi, 1
jne 0x514932
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x70], edx
jmp 0x514970
mov edx, dword [esp + 0x70]
cmp edx, 1
jne 0x51499d
mov al, byte [edi + 0x13]
test al, al
jne 0x514988
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x20], eax
jmp 0x5149c6
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x160]
mov dword [esp + 0x20], eax
jmp 0x5149c6
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
cmp edx, ecx
jg 0x5149b7
add eax, edx
sub ecx, edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], ecx
jmp 0x5149c6
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [edi + 0x2c], eax
mov ecx, edi
call fcn.004eee80
mov edx, dword [esp + 0x50]
push 0
push 0
push dword [esp + 0x28]
call fcn.004f03d0
mov ecx, dword [esp + 0xcc]
add esp, 0xc
mov dword [esp + 0x10], 0
test ecx, ecx
jle 0x514a7b
mov esi, dword [esp + 0x3c]
add esi, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x6c], edx
nop word [eax + eax]
mov eax, dword [esp + 0xbc]
mov edi, dword [esp + 0x3c]
cmp dword [edx + eax + 0xc], edi
mov edi, dword [esp + 0x1c]
jl 0x514a63
push 0
push esi
push dword [edx + eax + 4]
mov ecx, edi
push dword [edx + eax + 8]
mov edx, dword [edx + eax]
call fcn.004eeda0
add esp, 0x10
cmp eax, esi
je 0x514a53
mov ecx, dword [edi + 8]
mov edx, 0x56
push esi
push eax
call fcn.004d5ed0
add esp, 8
inc dword [esp + 0x3c]
inc esi
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
add edx, 0x18
inc eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x514a10
mov esi, dword [esp + 0x54]
mov al, byte [edi + 0x13]
test al, al
jne 0x514a8a
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x514a99
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x160]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x10], edx
cmp dword [eax + 0x30], ecx
jg 0x514ac9
push edx
push dword [esp + 0x74]
mov edx, 0x64
mov ecx, esi
push dword [esp + 0x28]
call fcn.004d5d40
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x514aff
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x514b34
push 0
push edx
push dword [esp + 0x44]
mov edx, 0x7d
mov ecx, esi
call fcn.004d5d40
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x514b6a
mov edi, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x7d
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 0x514baf
mov al, byte [edi + 0x13]
mov byte [esp + 0x1b], al
cmp al, 8
jae 0x514baf
movzx esi, byte [edi + 0x19]
lea eax, [edi + 0x98]
xor ecx, ecx
mov dword [esp + 0x10], esi
test esi, esi
mov esi, dword [esp + 0x54]
je 0x514ba0
cmp dword [eax + 0xc], edx
je 0x514bc5
inc ecx
add eax, 0x14
cmp ecx, dword [esp + 0x10]
jl 0x514b91
movzx eax, byte [esp + 0x1b]
mov dword [edi + eax*4 + 0x160], edx
inc byte [edi + 0x13]
mov eax, dword [esp + 0x70]
mov ecx, edi
mov edx, dword [esp + 0x20]
cmp eax, 1
jne 0x514bcb
call fcn.004f14c0
jmp 0x514be7
mov byte [eax + 6], 1
jmp 0x514baf
push eax
call fcn.004eebd0
mov eax, dword [esp + 0x74]
add esp, 4
cmp eax, dword [edi + 0x1c]
jle 0x514be7
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x78]
call fcn.00526d00
mov edx, dword [edi + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0xa8], edx
lea eax, [edx + 1]
mov dword [edi + 0x28], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x514c13
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x514c22
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x160]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x514c4e
push dword [esp + 0x70]
mov ecx, esi
push dword [esp + 0x70]
push edx
mov edx, 0x6f
call fcn.004d5d40
add esp, 0xc
jmp 0x514c84
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x70]
mov dword [eax + ecx*4], 0x6f
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0xa4]
cmp dword [eax + 0x30], ecx
jg 0x514cb1
push 0
push dword [esp + 0x4c]
mov ecx, esi
push edx
mov edx, 0x38
call fcn.004d5d40
add esp, 0xc
jmp 0x514ce7
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x54]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x38
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor ecx, ecx
mov byte [esp + 0xa1], 1
mov dword [esp + 0x3c], ecx
cmp byte [edi + 0x19], cl
jbe 0x514d30
lea edx, [edi + 0xa4]
cmp byte [edx - 6], 0
je 0x514d20
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x514d20
movzx ecx, al
mov eax, dword [edx]
mov dword [edi + ecx*4 + 0x160], eax
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x3c]
movzx eax, byte [edi + 0x19]
inc ecx
add edx, 0x14
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jl 0x514d00
mov edx, dword [esp + 0x78]
mov ecx, 1
mov byte [edi + 0x19], 0
cmp dword [esp + 0x5c], 0
je 0x514da3
mov eax, dword [esp + 0x44]
test byte [eax + 0x40], 4
jne 0x514da3
test ecx, ecx
jne 0x514d57
cmp byte [edx + 0x2c], cl
je 0x514da3
mov eax, dword [esi]
mov dword [esp + 0xd0], 0
mov dword [esp + 0x5c], eax
cmp byte [eax + 0x45], 0
jne 0x514da3
mov eax, dword [esp + 0xe4]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea esi, [eax + ecx*4]
mov ecx, dword [esp + 0x60]
call fcn.004d67f0
mov word [esi], 0xa2
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x88]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ecx
cmp byte [edi + 0x19], cl
jbe 0x514df0
lea edx, [edi + 0xa4]
nop
cmp byte [edx - 6], 0
je 0x514de0
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x514de0
movzx ecx, al
mov eax, dword [edx]
mov dword [edi + ecx*4 + 0x160], eax
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x5c]
movzx eax, byte [edi + 0x19]
inc ecx
add edx, 0x14
mov dword [esp + 0x5c], ecx
cmp ecx, eax
jl 0x514dc0
cmp dword [esp + 0x58], 0
mov byte [edi + 0x19], 0
je 0x514e60
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0xa4]
cmp dword [eax + 0x30], ecx
jg 0x514e2a
push dword [esp + 0x10]
mov ecx, esi
push dword [esp + 0x70]
push edx
mov edx, 0x79
call fcn.004d5d40
add esp, 0xc
jmp 0x514e60
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax]
test edx, edx
jle 0x514f32
mov dword [esp + 0x6c], ecx
nop dword [eax + eax]
mov eax, dword [esp + 0x94]
add eax, ecx
cmp dword [esp + 0x58], 0
mov dword [esp + 0x5c], eax
je 0x514ef5
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
cmp dword [eax + 0x30], edx
jg 0x514ebd
mov edx, dword [esp + 0x5c]
push edx
push ecx
push dword [esp + 0x18]
mov edx, 0x62
mov ecx, esi
call fcn.004d5d40
add esp, 0xc
jmp 0x514f16
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x514f16
push eax
mov eax, dword [esp + 0x54]
mov ecx, edi
mov byte [esp + 0xa4], 1
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x70]
mov edx, dword [edx + eax]
call fcn.004f02d0
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x6c], 0x18
inc ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax]
cmp ecx, edx
jl 0x514e80
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x514f3e
inc dword [ecx]
mov edx, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x5c], ecx
cmp dword [eax + 0x30], ecx
jg 0x514f70
push edx
push dword [esp + 0x98]
mov edx, 0x60
mov ecx, esi
push dword [esp + 0x94]
call fcn.004d5d40
add esp, 0xc
jmp 0x514fb0
mov edi, dword [esp + 0x8c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x94]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x5c]
push 0xfffffffffffffffb
push dword [esp + 0x18]
mov edx, eax
mov ecx, esi
call fcn.004d6a80
mov ecx, dword [esi + 0x88]
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], ecx
lea edx, [ecx + 1]
cmp dword [eax + 0x30], ecx
jg 0x514fec
push edx
push 0
push edx
mov edx, 0x12
mov ecx, esi
call fcn.004d5d40
add esp, 0xc
jmp 0x51501b
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], edx
mov esi, dword [esp + 0x54]
mov dword [eax + ecx*4], 0x12
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 + 0x50]
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
mov edx, dword [ecx + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x30], edx
jg 0x51505c
mov edx, dword [esp + 0x10]
push edx
push dword [esp + 0x90]
mov edx, 0x54
push dword [esp + 0x9c]
call fcn.004d5d40
add esp, 0xc
jmp 0x51509c
lea eax, [edx + 1]
mov dword [ecx + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
mov eax, dword [eax + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x10]
mov edx, dword [esp + 0x98]
mov ecx, edi
call fcn.004eebd0
mov eax, dword [esi + 0xc]
add esp, 4
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5150df
mov eax, dword [esp + 0x60]
mov edx, 0xe
push 0
push dword [esp + 0x8c]
inc eax
mov ecx, esi
push eax
call fcn.004d5d40
add esp, 0xc
jmp 0x51511d
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], eax
inc edx
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x515146
push 0
push dword [esp + 0x4c]
mov edx, 0x43
mov ecx, esi
push dword [esp + 0x68]
call fcn.004d5d40
add esp, 0xc
jmp 0x51517c
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5151a5
push 0
push dword [esp + 0x68]
mov edx, 0xe
mov ecx, esi
push dword [esp + 0x70]
call fcn.004d5d40
add esp, 0xc
jmp 0x5151db
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x45], 0
je 0x5151f0
mov eax, 0x665728
jmp 0x515205
mov ecx, dword [esp + 0x5c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, edi
lea edx, [esp + 0xa0]
call fcn.00513500
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x515240
push 0
push dword [esp + 0x84]
mov edx, 0x4d
mov ecx, esi
push 1
call fcn.004d5d40
add esp, 0xc
jmp 0x515279
mov edx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x4d
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 + 0x58], 0
je 0x5152e8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0xa4]
cmp dword [eax + 0x30], ecx
jg 0x5152b0
push 0
push dword [esp + 0x24]
mov ecx, esi
push edx
mov edx, 3
call fcn.004d5d40
add esp, 0xc
jmp 0x515332
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 3
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x515332
mov ecx, dword [esp + 0x78]
call fcn.00526d00
mov eax, dword [esi]
mov dword [esp + 0x14], eax
cmp byte [eax + 0x45], 0
jne 0x515332
mov eax, dword [esp + 0x90]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea esi, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
call fcn.004d67f0
mov word [esi], 0xa2
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x515360
mov eax, dword [esp + 0x60]
mov edx, 0xe
push 0
push dword [esp + 0x8c]
inc eax
mov ecx, esi
push eax
call fcn.004d5d40
add esp, 0xc
jmp 0x51539e
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], eax
inc edx
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5153c5
push 0
push dword [esp + 0x4c]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.004d5d40
add esp, 0xc
jmp 0x5153fb
mov edx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
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 [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x30], ecx
jg 0x51542a
push 0
push dword [esp + 0x64]
mov edx, 0x4d
mov ecx, esi
push 1
call fcn.004d5d40
mov edx, dword [esp + 0x6c]
add esp, 0xc
jmp 0x515460
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x4d
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 [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x515487
push 0
lea eax, [edx + 1]
mov ecx, esi
push 0
push eax
mov edx, 0x49
call fcn.004d5d40
add esp, 0xc
jmp 0x5154c2
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], eax
inc edx
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x49
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 [esi + 0xc]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x5154e7
mov eax, dword [esp + 0x88]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x90], ecx
lea edx, [ecx + 2]
cmp dword [eax + 0x30], ecx
jg 0x515517
push 0
push edx
push dword [esp + 0x88]
mov edx, 0x43
mov ecx, esi
call fcn.004d5d40
add esp, 0xc
jmp 0x515550
mov edi, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x515579
mov eax, dword [esp + 0x60]
mov edx, 0x49
push 0
inc eax
mov ecx, esi
push 0
push eax
call fcn.004d5d40
add esp, 0xc
jmp 0x5155b0
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
inc edx
mov dword [eax + ecx*4], 0x49
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 + 0xa0]
mov ecx, edi
call fcn.00513410
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x130]
inc esi
push 0x10
push esi
push eax
push edi
call fcn.004f0a30
push dword [esp + 0x24]
lea eax, [esp + 0x148]
mov ecx, edi
push esi
push dword [esp + 0x9c]
push eax
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esp + 0x64]
mov edx, eax
push 0xffffffffffffffff
push dword [eax]
call fcn.0050cf30
mov esi, dword [esp + 0x80]
add esp, 0x2c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x515637
mov eax, dword [esp + 0x60]
mov edx, 0x49
push 0
inc eax
mov ecx, esi
push 0
push eax
call fcn.004d5d40
add esp, 0xc
jmp 0x515672
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], eax
inc edx
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x49
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 [esi + 0xc]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x515691
mov eax, dword [esp + 0x64]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.00513360
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5156c9
push 0
push 0
push dword [esp + 0x70]
mov edx, 0x49
mov ecx, esi
call fcn.004d5d40
add esp, 0xc
jmp 0x515c69
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x49
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 0x515c69
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x80], eax
cmp dword [ecx + 0x20], eax
jne 0x515a87
mov eax, dword [ecx]
cmp dword [eax], 1
jne 0x515a87
mov edx, dword [ecx + 0x1c]
cmp dword [edx], 1
jne 0x515a87
cmp dword [edx + 0x1c], 0
jne 0x515a87
mov edx, dword [edx + 0x18]
mov dword [esp + 0x64], edx
cmp dword [edx + 0x38], 0
jne 0x515a87
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x90], eax
cmp byte [eax], 0x99
jne 0x515a87
cmp dword [esp + 0xcc], 0
je 0x515a87
mov eax, dword [esp + 0xc8]
mov edi, 0x100
mov eax, dword [eax + 4]
test word [eax + 2], di
mov edi, dword [esp + 0x1c]
je 0x515a87
mov eax, dword [esp + 0x90]
test byte [eax + 4], 0x10
jne 0x515a87
mov ecx, dword [edx + 0x48]
mov edx, 0xfff0bdc0
mov dword [esp + 0x58], edx
test ecx, ecx
je 0x5157d7
mov eax, dword [edi]
xor edx, edx
mov dword [esp + 0x58], edx
cmp dword [eax + 0x14], edx
jle 0x5157d7
mov eax, dword [eax + 0x10]
mov esi, dword [edi]
add eax, 0xc
cmp dword [eax], ecx
je 0x5157cf
inc edx
add eax, 0x10
cmp edx, dword [esi + 0x14]
jl 0x5157c2
mov esi, dword [esp + 0x54]
mov dword [esp + 0x58], edx
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [esp + 0x10], eax
inc eax
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x7c]
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x90], ecx
mov eax, dword [ecx + 0x60]
mov ecx, edx
shl dword [esp + 0x78], cl
test dword [esp + 0x78], eax
jne 0x515834
mov ecx, dword [esp + 0x90]
bts eax, edx
mov dword [ecx + 0x60], eax
cmp edx, 1
jne 0x515834
call fcn.004fa970
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov ecx, edi
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.004f4a30
mov eax, dword [esp + 0x70]
add esp, 0xc
test byte [eax + 0x24], 0x20
je 0x51587a
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x51587c
nop
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x515870
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x515860
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
jmp 0x51587c
xor ecx, ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x5158b8
mov esi, dword [esp + 0x64]
test byte [eax + 0x38], 4
jne 0x5158a9
movzx edx, word [eax + 0x30]
cmp dx, word [esi + 0x2e]
jge 0x5158a9
cmp dword [eax + 0x24], 0
jne 0x5158a9
test ecx, ecx
je 0x5158a7
cmp dx, word [ecx + 0x30]
jge 0x5158a9
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x515887
mov esi, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x5158d0
mov eax, dword [ecx + 0x2c]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.004fb160
mov dword [esp + 0x5c], eax
push 1
push dword [esp + 0x5c]
mov edx, 0x69
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004d6210
mov edx, dword [esp + 0x6c]
add esp, 0x10
test edx, edx
je 0x51593c
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x51590d
push edx
mov edx, 0xfffffffb
call fcn.004d67f0
add esp, 4
jmp 0x51593c
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
cmp byte [eax + ecx*4 - 0x13], 0
lea eax, [eax + ecx*4]
je 0x515935
push 0xfffffffffffffffb
push edx
lea edx, [eax - 0x14]
mov ecx, esi
call fcn.004d69b0
add esp, 8
jmp 0x51593c
mov dword [eax - 4], edx
mov byte [eax - 0x13], 0xfb
mov eax, dword [esp + 0xc8]
mov ecx, dword [esi + 0x88]
mov edx, dword [eax + 8]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x51596c
push 0
push edx
push dword [esp + 0x18]
mov edx, 0x65
mov ecx, esi
call fcn.004d5d40
add esp, 0xc
jmp 0x5159a2
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5159c9
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x70
mov ecx, esi
call fcn.004d5d40
add esp, 0xc
jmp 0x5159ff
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x70
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 + 0x193], 2
jne 0x515c0f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
test ecx, ecx
je 0x515a33
test byte [edx + 0x24], 0x20
je 0x515a27
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x515a33
mov eax, dword [ecx]
mov dword [esp + 0x14], 1
jmp 0x515a40
mov dword [esp + 0x14], 0
mov eax, 0x6292df
cmp dword [esp + 0x14], 0
mov ecx, 0x6292df
push eax
mov eax, str._USING_COVERING_INDEX
cmove eax, ecx
push eax
push dword [edx]
push str.SCAN_TABLE__s_s_s
push dword [edi]
call fcn.004b9e00
mov ecx, dword [edi + 8]
add esp, 0x14
mov edx, 0xa3
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [edi + 0x1a0]
call fcn.004d6110
add esp, 0x14
jmp 0x515c0f
cmp dword [ecx + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x68], 0
jne 0x515b7b
xor eax, eax
mov dword [esp + 0x68], 0
cmp dword [esp + 0xcc], 1
mov dword [esp + 0x10], eax
jne 0x515b37
mov ecx, dword [esp + 0xc8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x515b37
cmp dword [ecx], 1
jne 0x515b37
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp byte [eax], 0x9a
jne 0x515b35
mov eax, dword [esp + 0xc8]
mov edx, 0x635c3c
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
call fcn.004bace0
test eax, eax
jne 0x515b09
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], 1
mov dword [esp + 0x10], eax
jmp 0x515b37
mov ecx, dword [esp + 0xc8]
mov edx, 0x635c50
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
call fcn.004bace0
test eax, eax
jne 0x515b35
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], 2
mov dword [esp + 0x10], eax
jmp 0x515b37
xor eax, eax
cmp byte [esp + 0x68], 0
je 0x515b7b
mov ecx, dword [esp + 0x44]
mov edx, eax
push 0
call fcn.004eb370
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov dword [esp + 0x80], edx
cmp byte [eax + 0x45], 0
jne 0x515b7b
mov eax, dword [edx + 4]
cmp byte [esp + 0x68], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov byte [eax], 0x98
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.00513360
mov eax, dword [esp + 0x68]
mov ecx, edi
mov edx, dword [esp + 0x4c]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0x1c]
push dword [esp + 0x68]
call fcn.00526220
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x515bd4
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x44]
test eax, eax
je 0x513c85
mov edx, eax
mov ecx, esi
call fcn.004ebf80
jmp 0x513c85
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.00513500
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x2b], 0
jle 0x515bfa
mov edx, dword [eax + 0x20]
mov ecx, esi
call fcn.004d5f40
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.00526d00
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.00513410
mov eax, dword [esp + 0x130]
push 0x10
push dword [esp + 0x4c]
mov dword [esp + 0xd8], 0
push eax
push edi
call fcn.004f0a30
mov eax, dword [esp + 0x58]
mov ecx, edi
push eax
push eax
push dword [esp + 0x9c]
mov eax, dword [esp + 0x5c]
mov edx, eax
push 0
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.0050cf30
mov eax, dword [esp + 0xac]
add esp, 0x2c
test eax, eax
je 0x515c69
mov ecx, dword [esp + 0x44]
mov edx, eax
call fcn.004ebf80
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x515c88
mov eax, dword [esp + 0x48]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
cmp al, 3
jne 0x515ccc
cmp byte [edi + 0x193], 2
jne 0x515ccc
mov esi, dword [edi + 8]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push dword [edi]
call fcn.004b9e00
add esp, 0xc
mov edx, 0xa3
mov ecx, esi
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [edi + 0x1a0]
call fcn.004d6110
add esp, 0x14
cmp dword [esp + 0xd0], 0
je 0x515d46
cmp byte [edi + 0x193], 2
jne 0x515d23
cmp dword [esp + 0xd4], 0
mov ecx, str.ORDER_BY
mov esi, dword [edi + 8]
mov eax, str.RIGHT_PART_OF_ORDER_BY
cmovle eax, ecx
push eax
push str.USE_TEMP_B_TREE_FOR__s
push dword [edi]
call fcn.004b9e00
add esp, 0xc
mov edx, 0xa3
mov ecx, esi
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [edi + 0x1a0]
call fcn.004d6110
add esp, 0x14
mov eax, dword [esp + 0x7c]
mov ecx, edi
push dword [esp + 0x84]
mov edx, dword [esp + 0x44]
push dword [eax]
lea eax, [esp + 0xd8]
push eax
call fcn.0050dcb0
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x4c]
test edx, edx
je 0x515d6c
mov eax, dword [esp + 0x9c]
lea eax, [eax*4 + 4]
sub edx, eax
mov eax, dword [ecx + 0x88]
mov dword [edx], eax
mov esi, dword [esp + 0x44]
xor eax, eax
cmp dword [edi + 0x24], eax
mov edx, dword [esp + 0x4c]
setg al
mov dword [esp + 0x3c], eax
jmp 0x513c8e
mov esi, eax
jmp 0x513c85
mov esi, eax
jmp 0x513c89
cmp ecx, dword [esi + 0x120]
jb 0x515db9
cmp ecx, dword [esi + 0x124]
jae 0x515db9
mov eax, dword [esi + 0x11c]
mov dword [ecx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ecx
jmp 0x515dc2
push ecx
call fcn.004b7cf0
add esp, 4
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x515e3a
cmp dword [esi + 0x1c8], 0
je 0x515df5
mov ecx, esi
call fcn.004b7d60
mov eax, dword [esp + 0x3c]
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
cmp edx, dword [esi + 0x120]
jb 0x515e31
cmp edx, dword [esi + 0x124]
jae 0x515e31
mov eax, dword [esi + 0x11c]
mov dword [edx], eax
dec dword [esi + 0x108]
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x11c], edx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push edx
call fcn.004b7cf0
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret