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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x1d0]
mov dword [esp + 0xfc], eax
mov eax, dword [edi + 0x1d4]
mov dword [edi + 0x1d0], eax
inc eax
mov dword [edi + 0x1d4], eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
test esi, esi
je 0x50f77e
cmp byte [eax + 0x40], 0
jne 0x50f77e
cmp dword [edi + 0x40], 0
jne 0x50f77e
push 0
push 0
push 0
mov edx, 0x15
call fcn.004eed60
add esp, 0xc
test eax, eax
jne 0x50f77e
push 0x30
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.005594a0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 8
ja 0x50da0e
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x60]
call fcn.004e7ac0
mov eax, 0xfffe
mov dword [esi + 0x30], 0
and word [esi + 6], ax
push 0
mov edx, esi
mov ecx, edi
call fcn.0050d120
mov eax, dword [esi + 0x30]
xorps xmm0, xmm0
mov edx, dword [esi]
add esp, 4
cmp dword [edi + 0x40], 0
movdqa xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x20]
movq qword [esp + 0xb0], xmm0
mov dword [esp + 0xb8], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
jne 0x50f76a
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x40], 0
jne 0x50f774
movzx eax, word [esi + 6]
mov ecx, edi
shr eax, 2
and eax, 1
mov dword [esp + 0x70], eax
call fcn.00508410
mov esi, eax
mov dword [esp + 0x6c], esi
test esi, esi
je 0x50dab5
mov ecx, dword [esp + 0x50]
mov edx, dword [ebp + 8]
cmp dword [ecx], 1
movzx eax, byte [edx]
jle 0x50db10
cmp eax, 0xa
je 0x50daa7
cmp eax, 0xb
jne 0x50db10
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push edi
call fcn.004bb5f0
add esp, 8
mov esi, 1
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xfc]
mov dword [edi + 0x1d0], ecx
test esi, esi
jne 0x50dae8
mov ecx, dword [ebp + 8]
cmp byte [ecx], 9
jne 0x50dae8
push edx
mov edx, eax
mov ecx, edi
call fcn.00507bd0
add esp, 4
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x60]
call fcn.004b8f10
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x60]
call fcn.004b8f10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [eax + 0x34], ecx
jne 0x50db7f
mov edx, dword [esp + 0x4c]
cmp ecx, dword [edx]
jge 0x50db7c
lea eax, [ecx + ecx*4]
shl eax, 4
add eax, 8
add eax, edx
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x50db69
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x50dbd8
test byte [eax + 0x28], 4
jne 0x50db69
push ecx
push dword [eax + 0x1c]
mov edx, 0x11
mov ecx, esi
call fcn.004d5260
mov edx, dword [esp + 0x54]
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
inc ecx
cmp dword [eax + 0x34], 0
mov dword [esp + 0x2c], ecx
je 0x50db23
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x54], ecx
mov cl, byte [eax + 6]
and cl, 1
cmp dword [eax + 0x34], 0
mov byte [esp + 0x17], cl
mov byte [esp + 0x100], cl
je 0x50de62
push edx
mov edx, eax
mov ecx, edi
call fcn.00508e20
mov ecx, dword [esp + 0x100]
add esp, 4
mov dword [edi + 0x1d0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
call fcn.004e6700
add dword [edi + 0x1cc], eax
mov ecx, edi
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0050b880
add esp, 0xc
test eax, eax
je 0x50dc39
cmp dword [esp + 0x1c], 0
je 0x50dc2d
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], 1
or word [eax + 6], 4
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
jmp 0x50de1b
mov eax, dword [esp + 0x4c]
cmp dword [eax], 1
jne 0x50dd21
mov eax, dword [esp + 0x60]
mov ecx, 0x100
test word [eax + 0x3c], cx
jne 0x50dd21
mov ecx, dword [esp + 0x20]
mov edx, 0x14
mov edi, dword [esi + 0x20]
inc edi
push edi
mov eax, dword [ecx + 0x48]
inc eax
mov dword [ecx + 0x48], eax
mov ecx, dword [esp + 0x1c]
push 0
push eax
mov dword [ecx + 0x1c], eax
mov ecx, esi
call fcn.004d5130
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x18], edi
mov dword [esp + 0x110], eax
mov al, byte [ecx + 0x1d4]
mov word [esp + 0x10c], 0xd
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov byte [edx + 0x2c], al
lea eax, [esp + 0x10c]
mov edx, dword [esp + 0x5c]
push eax
call fcn.0050d960
mov eax, dword [esp + 0x60]
add esp, 4
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.004bc870
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x10]
mov word [ecx + 0x1c], ax
mov ecx, esi
or dword [edx + 0x28], 4
mov eax, dword [esp + 0x11c]
push dword [edx + 0x1c]
mov dword [edx + 0x20], eax
mov edx, 0x15
call fcn.004d51f0
add esp, 0xc
lea edx, [edi - 1]
mov ecx, esi
call fcn.004d5780
mov edi, dword [esp + 0x20]
jmp 0x50de10
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x54], eax
mov edx, 0x19
mov eax, dword [edi + 0x48]
inc eax
mov dword [edi + 0x48], eax
push eax
mov dword [ecx + 0x1c], eax
mov ecx, esi
push 0
call fcn.004d5260
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x1c], eax
inc eax
test byte [edx + 0x28], 2
mov dword [edx + 0x18], eax
jne 0x50dd68
mov ecx, edi
call fcn.004e7e80
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov ecx, dword [edx + 0x30]
lea eax, [esp + 0x10c]
mov dword [esp + 0x110], ecx
mov cl, byte [edi + 0x1d4]
mov word [esp + 0x10c], 0xc
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov byte [edx + 0x2c], cl
mov ecx, edi
mov edx, dword [esp + 0x5c]
push eax
call fcn.0050d960
mov eax, dword [esp + 0x60]
add esp, 4
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.004bc870
mov ecx, dword [esp + 0x20]
add esp, 8
mov ecx, dword [ecx + 0x10]
mov word [ecx + 0x1c], ax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x50dddf
mov edx, eax
mov ecx, esi
call fcn.004d5780
mov eax, dword [esp + 0x18]
mov edx, 0x12
mov ecx, esi
push dword [eax + 0x1c]
call fcn.004d51f0
mov dword [esp + 0x4c], eax
add esp, 4
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x20], eax
jbe 0x50de10
mov ecx, dword [esi + 4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x48]
mov dword [ecx + edx*4 + 4], eax
mov dword [edi + 0x38], 0
mov byte [edi + 0x13], 0
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x40], 0
jne 0x50dab5
mov ecx, dword [esp + 0x24]
call fcn.004e6700
sub dword [edi + 0x1cc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
cmp byte [ecx], 8
mov dword [esp + 0x4c], edx
jbe 0x50db6d
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xa0], ecx
jmp 0x50db6d
mov al, byte [eax + 6]
and al, 5
cmp al, 1
jne 0x50dfb0
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
call fcn.004eb400
add esp, 4
test eax, eax
jne 0x50dfb0
mov eax, dword [esp + 0x24]
mov ecx, 0xfffe
push 0
and word [eax + 6], cx
mov edx, dword [eax]
mov ecx, dword [esp + 0x64]
call fcn.004e72d0
mov ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [eax + 0x28], ecx
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb4], 0xffffffff
mov eax, dword [ebp + 8]
cmp byte [eax], 0xc
jne 0x50deeb
mov ecx, dword [esp + 0x50]
mov edx, 0x37
push dword [ecx]
mov ecx, esi
push dword [eax + 4]
call fcn.004d5260
add esp, 8
mov ecx, esi
call fcn.004d54f0
mov ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x9c], ecx
mov edx, eax
push ecx
mov ecx, edi
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], SysReAllocString
call fcn.00508460
mov edx, dword [esp + 0x28]
add esp, 4
cmp dword [edx + 8], 0
jne 0x50df47
mov eax, dword [esp + 0xb4]
test eax, eax
js 0x50df47
mov edx, eax
mov ecx, esi
call fcn.004d5a20
or byte [esp + 0xb8], 1
mov edx, dword [esp + 0x24]
mov byte [eax], 0x38
test byte [edx + 6], 1
je 0x50e004
mov edi, dword [edi + 0x44]
mov ecx, dword [esp + 0x20]
push 0xfffffffffffffffa
push ecx
lea eax, [edi + 1]
mov dword [esp + 0x10c], edi
mov dword [ecx + 0x44], eax
mov edx, dword [edx]
push 0
push 0
call fcn.00507020
add esp, 0xc
mov edx, 0x37
mov ecx, esi
push eax
push 0
push 0
push edi
call fcn.004d52d0
mov ecx, dword [esi + 4]
add esp, 0x14
mov dword [esp + 0x108], eax
test ecx, ecx
je 0x50dfa4
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov edi, dword [esp + 0x20]
mov al, 3
mov edx, dword [esp + 0x24]
jmp 0x50e006
mov eax, dword [esp + 0x30]
test eax, eax
je 0x50dec0
push 0
push 0
mov edx, eax
mov ecx, edi
call fcn.00507020
mov edx, dword [edi + 0x44]
push 0xfffffffffffffffa
push eax
mov eax, dword [esp + 0x40]
lea ecx, [edx + 1]
mov dword [esp + 0xb8], edx
mov dword [edi + 0x44], ecx
mov ecx, esi
push 0
mov eax, dword [eax]
add eax, 2
push eax
push edx
mov edx, 0x37
call fcn.004d52d0
add esp, 0x1c
mov dword [esp + 0xb4], eax
jmp 0x50decb
xor al, al
cmp dword [esp + 0x70], 0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x101], al
mov dword [esp + 0x5c], eax
jne 0x50e12b
test ecx, ecx
jne 0x50e12b
push ecx
xor eax, eax
mov ecx, 0x400
cmp byte [esp + 0x1b], al
cmovne eax, ecx
mov ecx, edi
movzx eax, ax
push eax
push dword [edx]
mov edx, dword [esp + 0x58]
push dword [esp + 0x3c]
push dword [esp + 0x90]
call fcn.0051dc50
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
je 0x50dab5
mov cx, word [eax + 0x20]
call fcn.004bc920
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp edx, dword [eax + 0x1c]
ja 0x50e083
jb 0x50e07d
cmp ecx, dword [eax + 0x18]
jae 0x50e083
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
cmp byte [esp + 0x17], 0
mov edx, dword [esp + 0x2c]
je 0x50e0b3
mov eax, dword [esp + 0x5c]
mov cl, byte [edx + 0x28]
movzx eax, al
test cl, cl
mov dword [esp + 0x5c], eax
movzx eax, cl
mov ecx, dword [esp + 0x5c]
cmovne ecx, eax
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x101], cl
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x50e0d4
movsx eax, byte [edx + 0x24]
xor edx, edx
cmp eax, dword [ecx]
mov dword [esp + 0xa4], eax
cmove ecx, edx
mov dword [esp + 0xa0], ecx
mov eax, dword [esp + 0xb4]
test eax, eax
js 0x50e0ec
test ecx, ecx
jne 0x50e0ec
mov edx, eax
mov ecx, esi
call fcn.004d5890
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x24]
push dword [eax + 0x34]
push dword [eax + 0x30]
lea eax, [esp + 0x108]
push dword [ebp + 8]
push eax
lea eax, [esp + 0xb0]
push eax
push 0xffffffffffffffff
push dword [esp + 0x68]
call fcn.005063c0
mov ecx, dword [esp + 0x48]
add esp, 0x1c
call fcn.0051e570
jmp 0x50f4d2
mov dword [esp + 0x74], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x50e1bb
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x6c]
test eax, eax
jle 0x50e176
mov ecx, dword [esp + 0x1c]
add ecx, 0x16
lea esp, [esp]
xor edi, edi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], di
test eax, eax
jg 0x50e160
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
test eax, eax
jle 0x50e1a6
mov ecx, dword [esp + 0x1c]
add ecx, 0x16
lea ebx, [ebx]
xor esi, esi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], si
test eax, eax
jg 0x50e190
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
cmp dword [edx + 0x1c], 0
ja 0x50e1b2
cmp dword [edx + 0x18], 0x64
jbe 0x50e1c9
mov dword [edx + 0x18], 0x64
jmp 0x50e1c2
mov dword [edx + 0x18], 1
mov dword [edx + 0x1c], 0
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
call fcn.004eb400
add esp, 4
mov ecx, 1
test eax, eax
mov eax, 0
cmove eax, ecx
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.004d54f0
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
movdqa xmmword [esp + 0x120], xmm0
mov dword [esp + 0x124], eax
lea eax, [esp + 0xcc]
mov dword [esp + 0x12c], eax
mov eax, dword [edi + 0x48]
inc eax
movdqa xmmword [esp + 0x130], xmm0
mov dword [esp + 0x120], edi
mov dword [esp + 0xdc], eax
test ecx, ecx
je 0x50e24c
mov eax, dword [ecx]
inc eax
mov dword [esp + 0xd8], eax
jmp 0x50e257
mov dword [esp + 0xd8], 0
mov edx, dword [esp + 0x50]
mov dword [esp + 0xe4], ecx
lea ecx, [esp + 0x120]
call fcn.004eb8e0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x120]
call fcn.004eb8e0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x50e294
mov edx, eax
lea ecx, [esp + 0x120]
call fcn.004eb8b0
cmp dword [esp + 0xf8], 0
mov eax, dword [esp + 0xec]
mov dword [esp + 0xf0], eax
jle 0x50e307
mov al, byte [esp + 0x13c]
xor edi, edi
xor esi, esi
jmp 0x50e2c0
or al, 8
lea ecx, [esp + 0x120]
mov byte [esp + 0x13c], al
mov eax, dword [esp + 0xf4]
mov edx, dword [edi + eax]
mov edx, dword [edx + 0x14]
call fcn.004eb8e0
mov al, byte [esp + 0x13c]
lea edi, [edi + 0x10]
and al, 0xf7
inc esi
mov byte [esp + 0x13c], al
cmp esi, dword [esp + 0xf8]
jl 0x50e2c0
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x48]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x40], 0
jne 0x50dab5
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x50f126
mov eax, dword [edi + 0x44]
mov edx, ecx
mov dword [esp + 0xd0], eax
mov ecx, edi
inc eax
push 0
push 0
mov dword [edi + 0x44], eax
call fcn.00507020
mov edx, eax
mov ecx, esi
push 0xfffffffffffffffa
push edx
push 0
push dword [esp + 0xec]
mov dword [esp + 0xb0], edx
mov edx, 0x38
push dword [esp + 0xe8]
call fcn.004d52d0
mov dword [esp + 0x38], eax
add esp, 0x1c
mov eax, dword [edi + 0x48]
mov ecx, esi
inc eax
mov dword [esp + 0x30], eax
add eax, 2
mov dword [edi + 0x48], eax
call fcn.004d54f0
inc dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x68], eax
call fcn.004d54f0
mov edx, dword [edi + 0x48]
mov dword [esp + 0x64], eax
lea eax, [edx + 1]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add ecx, edx
mov dword [edi + 0x48], ecx
mov eax, dword [eax]
add eax, ecx
mov dword [edi + 0x48], eax
lea edx, [ecx + 1]
mov eax, dword [esp + 0x30]
mov ecx, esi
inc eax
mov dword [esp + 0x70], edx
push eax
push 0
mov edx, 0x19
call fcn.004d5260
push dword [esp + 0x38]
mov edx, 0x19
mov ecx, esi
push 0
call fcn.004d5260
mov eax, dword [esp + 0x28]
mov edx, 0x1c
mov ecx, dword [esp + 0x94]
mov eax, dword [eax]
dec eax
add eax, ecx
push eax
push ecx
push 0
mov ecx, esi
call fcn.004d5130
add esp, 0x1c
mov edx, 0x11
mov ecx, esi
push dword [esp + 0x64]
push dword [esp + 0x6c]
call fcn.004d5260
mov eax, dword [esp + 0x50]
neg eax
push 0
sbb eax, eax
and eax, 0x800
mov edx, dword [esp + 0x58]
mov ecx, 0x100
or ax, cx
mov ecx, edi
movzx eax, ax
push eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x98]
call fcn.0051dc50
mov edx, eax
add esp, 0x1c
mov dword [esp + 0x80], edx
test edx, edx
je 0x50dab5
mov eax, dword [esp + 0x18]
movsx ecx, byte [edx + 0x24]
cmp ecx, dword [eax]
jne 0x50e487
xor eax, eax
mov dword [esp + 0x8c], eax
jmp 0x50e8a3
cmp byte [esp + 0x17], 0
je 0x50e49d
mov eax, dword [esp + 0x24]
mov edx, str.DISTINCT
test byte [eax + 6], 1
je 0x50e4a2
mov edx, str.GROUP_BY
mov ecx, edi
call fcn.005070e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x8c], 1
mov eax, dword [eax]
mov dword [esp + 0x88], eax
lea ecx, [eax + 1]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x74], ecx
mov edx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
test eax, eax
jle 0x50e4fa
mov eax, dword [esp + 0xe8]
add eax, 0xc
cmp dword [eax], ecx
jl 0x50e4ed
inc edx
inc ecx
add eax, 0x18
dec dword [esp + 0x28]
jne 0x50e4e7
mov dword [esp + 0x2c], edx
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x78], eax
cmp edx, ecx
jg 0x50e514
add eax, edx
sub ecx, edx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x38], ecx
jmp 0x50e523
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x78], ecx
mov dword [edi + 0x48], eax
mov ecx, edi
call fcn.004e9340
mov edx, dword [esp + 0x78]
push 0
push edx
mov edx, dword [esp + 0x20]
call fcn.004ea940
mov eax, dword [esp + 0x80]
mov edx, 0x44
add eax, dword [esp + 0x90]
mov ecx, esi
push eax
push dword [esp + 0xdc]
call fcn.004d5260
add esp, 0x10
mov dword [esp + 0x88], 0
cmp dword [esp + 0xec], 0
jle 0x50e660
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
add edx, ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0xe8]
cmp dword [edi + eax + 0xc], ecx
mov edi, dword [esp + 0x20]
jl 0x50e63f
mov ecx, dword [esp + 0x28]
push 0
push edx
push dword [ecx + eax + 4]
mov edx, dword [ecx + eax]
push dword [ecx + eax + 8]
mov ecx, edi
call fcn.004e9290
mov edx, dword [esp + 0xa4]
add esp, 0x10
mov dword [esp + 0x10], eax
cmp edx, eax
je 0x50e62e
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x58], eax
cmp dword [ecx + 0x54], eax
jg 0x50e5fa
mov ecx, esi
call fcn.004d50b0
mov edx, dword [esp + 0x94]
test eax, eax
jne 0x50e62e
mov eax, dword [esp + 0x58]
inc dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov word [eax + ecx*4], 0x22
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 [esp + 0x74]
inc ecx
inc edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0x88]
add dword [esp + 0x28], 0x18
inc eax
mov dword [esp + 0x88], eax
cmp eax, dword [esp + 0xec]
jl 0x50e591
mov al, byte [edi + 0x13]
test al, al
jne 0x50e673
inc dword [edi + 0x48]
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x28], ecx
jmp 0x50e683
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50e6a1
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50e6d5
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x78]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x30
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 + 0xd0]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50e6fe
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50e734
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x6a
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 0x50e738
mov edx, dword [esp + 0x28]
test edx, edx
je 0x50e770
mov al, byte [edi + 0x13]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x50e770
xor ecx, ecx
lea eax, [edi + 0x74]
lea esp, [esp]
cmp dword [eax + 0xc], edx
je 0x50e76c
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x50e750
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x50e770
mov byte [eax + 6], 1
push dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ecx, edi
call fcn.004e9040
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, dword [edi + 0x38]
jle 0x50e795
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x3c], eax
mov ecx, dword [esp + 0x80]
call fcn.0051e570
mov eax, dword [edi + 0x44]
mov dword [esp + 0x74], eax
mov dword [esp + 0xd4], eax
inc eax
mov dword [edi + 0x44], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x50e7c6
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x28], edx
jmp 0x50e7d6
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50e7f4
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50e828
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x39
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 + 0xd0]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50e851
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50e888
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x67
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, edi
mov byte [esp + 0xcd], 1
call fcn.004e9340
mov edx, dword [esp + 0x80]
mov eax, 1
cmp dword [esp + 0x48], 0
je 0x50e8d6
mov ecx, dword [esp + 0x60]
test byte [ecx + 0x3c], 4
jne 0x50e8d6
test eax, eax
jne 0x50e8bd
cmp byte [edx + 0x25], al
je 0x50e8d6
mov edx, dword [esp + 0xb4]
mov ecx, esi
mov dword [esp + 0xa0], 0
call fcn.004d5890
mov eax, dword [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x88], eax
call fcn.004e9340
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x50e956
mov eax, dword [esp + 0xd0]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50e91b
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50e94f
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x5f
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 [esp + 0x8c]
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x28], edx
cmp dword [ecx], edx
jle 0x50ea15
test eax, eax
je 0x50e9d7
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50e98e
mov ecx, esi
call fcn.004d50b0
mov edx, dword [esp + 0x28]
test eax, eax
jne 0x50e9bf
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x2e
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x70]
add eax, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
test edx, edx
jne 0x50e9fd
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x50e9fd
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x20
jmp 0x50e9fd
mov eax, dword [esp + 0x70]
add eax, edx
mov byte [esp + 0xcc], 1
push eax
lea eax, [edx + edx*2]
mov edx, dword [ecx + 4]
mov ecx, edi
mov edx, dword [edx + eax*8]
call fcn.004ea810
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x18]
inc edx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], edx
cmp edx, dword [ecx]
jl 0x50e968
mov eax, dword [esp + 0x98]
test eax, eax
je 0x50ea22
inc dword [eax]
mov eax, dword [ecx]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], edx
cmp dword [eax + 0x54], edx
jg 0x50ea4d
mov ecx, esi
call fcn.004d50b0
test eax, eax
je 0x50ea49
mov edx, 1
jmp 0x50ea88
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x20]
mov word [eax + ecx*4], 0x29
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
je 0x50eae7
cmp byte [ecx + 0x40], 0
jne 0x50eae7
test edx, edx
jns 0x50ea9f
mov edx, dword [esi + 0x20]
dec edx
lea eax, [edx + edx*4]
mov edx, dword [esi + 4]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
push dword [edx + eax*4 + 0x10]
movsx edx, byte [edx + eax*4 + 1]
call fcn.004d57a0
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x98]
mov dword [eax + 0x10], 0
test edx, edx
jne 0x50eade
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
jmp 0x50eafc
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
jmp 0x50eafc
mov edx, dword [esp + 0x98]
push edx
mov edx, 0xfffffffa
call fcn.004d57a0
add esp, 4
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x48], edx
cmp dword [eax + 0x54], edx
jg 0x50eb1a
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50eb48
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x2a
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x70]
push dword [eax]
push dword [esp + 0x88]
call fcn.004e9550
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50eb81
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ebc0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
add edx, 2
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 0x11
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ebde
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ec1a
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x86
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ec38
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ec6c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov word [eax + ecx*4], 0x11
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 edx, dword [esi + 0x20]
mov eax, dword [esp + 0x48]
cmp edx, eax
jbe 0x50ec81
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0xcc]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
mov ecx, edi
call fcn.0050d3b0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ecb7
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50eceb
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x19
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 [esp + 0x8c]
test eax, eax
je 0x50ed5c
mov eax, dword [esp + 0xd0]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ed23
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50edae
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov word [eax + ecx*4], 5
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 0x50edae
mov ecx, dword [esp + 0x80]
call fcn.0051e570
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x50edae
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
lea edi, [ecx + eax*4]
mov ecx, dword [esi]
call fcn.004d57a0
xorps xmm0, xmm0
add esp, 4
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9c
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x20]
dec eax
cmp dword [esp + 0x1c], eax
jne 0x50edae
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50edcc
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ee0b
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
add edx, 2
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 0x11
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ee29
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ee60
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x10
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ee7e
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50eeb7
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
inc edx
mov word [eax + ecx*4], 0x19
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50eed5
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ef14
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
add edx, 2
mov edi, dword [esp + 0x20]
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], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
js 0x50ef31
mov edx, dword [eax + 0x70]
test edx, edx
je 0x50ef31
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], edx
cmp dword [eax + 0x54], edx
jg 0x50ef5a
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50ef8c
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x86
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc], 0
mov dword [ecx + 4], eax
lea eax, [edx + 2]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50efaa
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50efe9
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
add edx, 2
mov edi, dword [esp + 0x20]
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], 0
mov dword [eax + ecx*4 + 0x10], 0
lea edx, [esp + 0xcc]
mov ecx, edi
call fcn.0050d2a0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
inc edi
mov ecx, dword [esp + 0x20]
push 8
push edi
call fcn.004eaf40
push dword [esp + 0x50]
lea eax, [esp + 0x10c]
push edi
push dword [ebp + 8]
mov edi, dword [esp + 0x34]
mov ecx, edi
push eax
lea eax, [esp + 0xb8]
push eax
mov eax, dword [esp + 0x40]
mov edx, eax
push 0xffffffffffffffff
push dword [eax]
call fcn.005063c0
mov eax, dword [esi + 0x18]
add esp, 0x24
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f05a
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50f095
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
add edx, 2
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], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
js 0x50f0b2
mov edx, dword [eax + 0x70]
test edx, edx
je 0x50f0b2
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xcc]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [ecx + 0x58], eax
mov ecx, edi
call fcn.0050d1b0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f0ed
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50f4a7
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x68]
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], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50f4a7
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xcc]
mov dword [esp + 0x84], 0
call fcn.0050bef0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x50f342
mov ecx, dword [edi]
mov edx, dword [eax + 0x44]
call fcn.00504a90
mov edx, eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x64], eax
mov dword [esp + 0x1c], edx
lea ecx, [eax + 1]
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x44], ecx
mov ecx, edi
mov eax, dword [eax + 0x20]
mov dword [esp + 0x48], eax
call fcn.004f4790
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x1c]
push dword [eax]
push 0
push dword [eax + 0x20]
call fcn.004eedf0
mov edx, dword [esp + 0x38]
add esp, 0xc
test byte [edx + 0x2c], 0x20
je 0x50f1b8
mov ecx, edx
call fcn.004effd0
mov ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x50f1ba
xor ecx, ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x50f1f6
mov edi, dword [esp + 0x2c]
test byte [eax + 0x38], 4
jne 0x50f1e7
movzx edx, word [eax + 0x30]
cmp dx, word [edi + 0x2a]
jge 0x50f1e7
cmp dword [eax + 0x24], 0
jne 0x50f1e7
test ecx, ecx
je 0x50f1e5
cmp dx, word [ecx + 0x30]
jge 0x50f1e7
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50f1c5
mov edi, dword [esp + 0x20]
mov dword [esp + 0x7c], ecx
test ecx, ecx
je 0x50f20e
mov eax, dword [ecx + 0x2c]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.004f5110
mov dword [esp + 0x68], eax
push 1
push dword [esp + 0x20]
mov edx, 0x34
mov ecx, esi
push dword [esp + 0x50]
push dword [esp + 0x70]
call fcn.004d5440
mov eax, dword [esp + 0x78]
add esp, 0x10
test eax, eax
je 0x50f278
mov edx, dword [esi + 4]
mov ecx, dword [esi]
test edx, edx
je 0x50f26a
cmp byte [ecx + 0x40], 0
jne 0x50f26a
mov eax, dword [esi + 0x20]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx edx, byte [edi + 1]
call fcn.004d57a0
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xfa
mov edi, dword [esp + 0x24]
jmp 0x50f275
push eax
mov edx, 0xfffffffa
call fcn.004d57a0
add esp, 4
mov eax, dword [esp + 0xf4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], ecx
jg 0x50f2a4
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50f2d8
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x64]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x58]
mov word [eax + ecx*4], 0x31
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f2f6
mov ecx, esi
call fcn.004d50b0
test eax, eax
jne 0x50f32a
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x64]
mov word [eax + ecx*4], 0x3a
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 + 0x7c]
mov ecx, edi
mov edx, dword [esp + 0x2c]
push eax
call fcn.0050d8e0
add esp, 4
jmp 0x50f454
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x2c], 0
jne 0x50f3bf
lea edx, [esp + 0x68]
lea ecx, [esp + 0xcc]
call fcn.0050be80
mov byte [esp + 0x17], al
test al, al
je 0x50f3b7
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
push 0
call fcn.004e72d0
mov edx, eax
add esp, 4
mov dword [esp + 0x64], edx
mov dword [esp + 0x84], edx
test edx, edx
je 0x50f3bf
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x40], 0
jne 0x50f3bf
mov eax, dword [edx + 4]
cmp byte [esp + 0x17], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov byte [eax], 0x9a
jmp 0x50f3bf
mov eax, dword [esp + 0x68]
mov dword [esp + 0x64], eax
lea edx, [esp + 0xcc]
mov ecx, edi
call fcn.0050d1b0
mov al, byte [esp + 0x17]
mov ecx, edi
mov edx, dword [esp + 0x4c]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0x70]
push dword [esp + 0x90]
call fcn.0051dc50
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x50f40f
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x60]
call fcn.004e7ac0
jmp 0x50dab5
lea edx, [esp + 0xcc]
mov ecx, edi
call fcn.0050d3b0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x24], 0
jle 0x50f43f
push dword [eax + 0x34]
mov edx, 0x10
mov ecx, esi
push 0
call fcn.004d5260
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, eax
call fcn.0051e570
lea edx, [esp + 0xcc]
mov ecx, edi
call fcn.0050d2a0
mov edx, dword [esp + 0x54]
mov ecx, edi
push 8
push dword [esp + 0x94]
mov dword [esp + 0xa8], 0
call fcn.004eaf40
mov eax, dword [esp + 0x98]
mov ecx, edi
push eax
push eax
push dword [ebp + 8]
mov eax, dword [esp + 0x38]
mov edx, eax
push 0
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.005063c0
mov edx, dword [esp + 0xa8]
add esp, 0x24
mov ecx, dword [esp + 0x60]
call fcn.004e7ac0
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x90]
mov dword [esp + 0x10], eax
js 0x50f4c7
mov edx, dword [eax + 0x70]
test edx, edx
je 0x50f4c7
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x5c]
cmp al, 3
jne 0x50f5e7
cmp byte [edi + 0x1c2], 2
jne 0x50f5e7
mov eax, dword [edi + 8]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push dword [edi]
mov dword [esp + 0x60], eax
call fcn.004ba910
mov esi, dword [edi + 0x1d0]
add esp, 0xc
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x10], edx
cmp dword [ecx + 0x54], edx
jg 0x50f53d
mov ecx, eax
call fcn.004d50b0
test eax, eax
je 0x50f535
mov edx, 1
jmp 0x50f56d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
inc dword [eax + 0x20]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 4]
mov word [eax + ecx*4], 0x9d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 4]
test esi, esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x6c]
je 0x50f5d7
cmp byte [ecx + 0x40], 0
jne 0x50f5d7
test edx, edx
jns 0x50f590
mov edx, dword [eax + 0x20]
dec edx
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x1c]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
push dword [edx + eax*4 + 0x10]
movsx edx, byte [edx + eax*4 + 1]
call fcn.004d57a0
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x48]
mov dword [eax + 0x10], 0
test edx, edx
jne 0x50f5ce
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
jmp 0x50f5e7
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xff
jmp 0x50f5e7
mov edx, dword [esp + 0x48]
push edx
or edx, 0xffffffff
call fcn.004d57a0
add esp, 4
cmp dword [esp + 0xa0], 0
je 0x50f72e
cmp byte [edi + 0x1c2], 2
jne 0x50f70f
mov eax, dword [edi + 8]
mov ecx, str.ORDER_BY
cmp dword [esp + 0xa4], 0
mov dword [esp + 0x54], eax
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.004ba910
mov esi, dword [edi + 0x1d0]
add esp, 0xc
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x10], edx
cmp dword [ecx + 0x54], edx
jg 0x50f665
mov ecx, eax
call fcn.004d50b0
test eax, eax
je 0x50f65d
mov edx, 1
jmp 0x50f695
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
inc dword [eax + 0x20]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 4]
mov word [eax + ecx*4], 0x9d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 4]
test esi, esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x6c]
je 0x50f6ff
cmp byte [ecx + 0x40], 0
jne 0x50f6ff
test edx, edx
jns 0x50f6b8
mov edx, dword [eax + 0x20]
dec edx
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x1c]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
push dword [edx + eax*4 + 0x10]
movsx edx, byte [edx + eax*4 + 1]
call fcn.004d57a0
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x48]
mov dword [eax + 0x10], 0
test edx, edx
jne 0x50f6f6
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
jmp 0x50f70f
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xff
jmp 0x50f70f
mov edx, dword [esp + 0x48]
push edx
or edx, 0xffffffff
call fcn.004d57a0
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [esp + 0x28]
push dword [eax]
lea eax, [esp + 0xa8]
push eax
call fcn.005071b0
add esp, 0xc
mov edx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x9c]
mov dword [esp + 0x9c], eax
js 0x50f75c
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x50f75c
mov edi, dword [esp + 0x9c]
mov eax, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0x20]
dec eax
xor esi, esi
mov dword [edx + 0x58], eax
jmp 0x50daba
mov esi, 1
jmp 0x50dac2
mov esi, 1
jmp 0x50dabe
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret