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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x5c2b80]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x7c], eax
mov esi, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x68], 1
mov eax, dword [edi + 0x1d0]
mov dword [esp + 0xa0], 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 + 0x24], eax
test esi, esi
je 0x4d91c7
cmp byte [eax + 0x41], 0
jne 0x4d91c7
cmp dword [edi + 0x40], 0
jne 0x4d91c7
push 0
push 0
push 0
mov edx, 0x15
call fcn.004b75f0
add esp, 0xc
test eax, eax
jne 0x4d91c7
push 0x30
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0052ebd0
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp byte [eax], 8
ja 0x4d744f
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x24]
call fcn.004af950
mov eax, 0xfffe
mov dword [esi + 0x30], 0
and word [esi + 6], ax
push 0
mov edx, esi
mov ecx, edi
call fcn.004d6c20
mov eax, dword [esi + 0x30]
xorps xmm0, xmm0
mov edx, dword [esi]
add esp, 4
cmp dword [edi + 0x40], 0
movdqa xmmword [esp + 0xe0], xmm0
mov dword [esp + 0x40], eax
mov dword [esp + 0xe0], eax
mov eax, dword [esi + 0x20]
movq qword [esp + 0xf0], xmm0
mov dword [esp + 0xf8], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
jne 0x4d90f8
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x41], 0
jne 0x4d9101
movzx eax, word [esi + 6]
mov ecx, edi
shr eax, 2
and eax, 1
mov dword [esp + 0x60], eax
call fcn.004d1c30
mov esi, eax
mov dword [esp + 0x74], esi
test esi, esi
je 0x4d74f7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x7c]
cmp dword [ecx], 1
movzx eax, byte [edx]
jle 0x4d7557
cmp eax, 0xa
je 0x4d74e9
cmp eax, 0xb
jne 0x4d7557
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push edi
call fcn.0047fd00
add esp, 8
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x68], 0
mov ecx, dword [esp + 0xa0]
mov dword [edi + 0x1d0], ecx
jne 0x4d752d
mov ecx, dword [esp + 0x7c]
cmp byte [ecx], 9
jne 0x4d752d
push edx
mov edx, eax
mov ecx, edi
call fcn.004d1460
add esp, 4
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x4d9137
cmp dword [esi + 0x208], 0
je 0x4d9108
mov edx, ecx
mov ecx, esi
call fcn.0047cf90
jmp 0x4d9137
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x54], ecx
cmp dword [eax + 0x34], ecx
jne 0x4d75cd
mov edx, dword [esp + 0x34]
lea ebx, [ebx]
cmp ecx, dword [edx]
jge 0x4d75c9
lea eax, [ecx + ecx*4]
shl eax, 4
add eax, 8
add eax, edx
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x4d75b6
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4d7634
test byte [eax + 0x28], 4
jne 0x4d75b6
push ecx
push dword [eax + 0x1c]
mov edx, 0x11
mov ecx, esi
call fcn.0049bcd0
mov edx, dword [esp + 0x3c]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
inc ecx
cmp dword [eax + 0x34], 0
mov dword [esp + 0x54], ecx
je 0x4d7570
mov edx, dword [esp + 0x7c]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x58], ecx
mov cl, byte [eax + 6]
and cl, 1
cmp dword [eax + 0x34], 0
mov byte [esp + 0x17], cl
mov byte [esp + 0xa4], cl
je 0x4d78bf
push edx
mov edx, eax
mov ecx, edi
call fcn.004d2730
mov ecx, dword [esp + 0xa4]
add esp, 4
mov dword [edi + 0x1d0], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
call fcn.004ae430
add dword [edi + 0x1cc], eax
mov ecx, edi
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.004d50e0
add esp, 0xc
test eax, eax
je 0x4d7695
cmp dword [esp + 0x1c], 0
je 0x4d7689
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], 1
or word [eax + 6], 4
or eax, 0xffffffff
mov dword [esp + 0x54], eax
jmp 0x4d7877
mov eax, dword [esp + 0x34]
cmp dword [eax], 1
jne 0x4d777d
mov eax, dword [esp + 0x24]
mov ecx, 0x100
test word [eax + 0x3c], cx
jne 0x4d777d
mov ecx, dword [esp + 0x18]
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 + 0x2c]
push 0
push eax
mov dword [ecx + 0x1c], eax
mov ecx, esi
call fcn.0049bba0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x18], edi
mov dword [esp + 0x12c], eax
mov al, byte [ecx + 0x1d4]
mov word [esp + 0x128], 0xd
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov byte [edx + 0x2c], al
lea eax, [esp + 0x128]
mov edx, dword [esp + 0x64]
push eax
call fcn.004d7380
mov eax, dword [esp + 0x68]
add esp, 4
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00481250
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x10]
mov word [ecx + 0x1c], ax
mov ecx, esi
or dword [edx + 0x28], 4
mov eax, dword [esp + 0x138]
push dword [edx + 0x1c]
mov dword [edx + 0x20], eax
mov edx, 0x15
call fcn.0049bc60
add esp, 0xc
lea edx, [edi - 1]
mov ecx, esi
call fcn.0049c190
mov edi, dword [esp + 0x18]
jmp 0x4d786c
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x58], 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.0049bcd0
mov edx, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x1c], eax
inc eax
test byte [edx + 0x28], 2
mov dword [edx + 0x18], eax
jne 0x4d77c4
mov ecx, edi
call fcn.004aff10
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov ecx, dword [edx + 0x30]
lea eax, [esp + 0x128]
mov dword [esp + 0x12c], ecx
mov cl, byte [edi + 0x1d4]
mov word [esp + 0x128], 0xc
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov byte [edx + 0x2c], cl
mov ecx, edi
mov edx, dword [esp + 0x64]
push eax
call fcn.004d7380
mov eax, dword [esp + 0x68]
add esp, 4
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00481250
mov ecx, dword [esp + 0x30]
add esp, 8
mov ecx, dword [ecx + 0x10]
mov word [ecx + 0x1c], ax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4d783b
mov edx, eax
mov ecx, esi
call fcn.0049c190
mov eax, dword [esp + 0x28]
mov edx, 0x12
mov ecx, esi
push dword [eax + 0x1c]
call fcn.0049bc60
mov dword [esp + 0x60], eax
add esp, 4
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x20], eax
jbe 0x4d786c
mov ecx, dword [esi + 4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x5c]
mov dword [ecx + edx*4 + 4], eax
mov dword [edi + 0x38], 0
mov byte [edi + 0x13], 0
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x41], 0
jne 0x4d90f1
mov ecx, dword [esp + 0x20]
call fcn.004ae430
sub dword [edi + 0x1cc], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
mov edx, dword [eax + 0x20]
cmp byte [ecx], 8
mov dword [esp + 0x34], edx
jbe 0x4d75ba
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x40], ecx
mov dword [esp + 0xe0], ecx
jmp 0x4d75ba
mov al, byte [eax + 6]
and al, 5
cmp al, 1
jne 0x4d7908
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
call fcn.004b36e0
add esp, 4
test eax, eax
jne 0x4d7908
mov eax, dword [esp + 0x20]
mov ecx, 0xfffe
push 0
and word [eax + 6], cx
mov edx, dword [eax]
mov ecx, dword [esp + 0x28]
call fcn.004af070
mov ecx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [eax + 0x28], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4d795f
mov ecx, dword [esp + 0x30]
mov edx, eax
push dword [ecx]
mov ecx, edi
push 0
call fcn.004d0880
mov edx, dword [edi + 0x44]
push 0xfffffffffffffffa
push eax
mov eax, dword [esp + 0x40]
lea ecx, [edx + 1]
mov dword [esp + 0xf8], edx
mov dword [edi + 0x44], ecx
push 0
mov ecx, dword [eax]
mov eax, dword [esp + 0x54]
inc ecx
mov eax, dword [eax]
add eax, ecx
mov ecx, esi
push eax
push edx
mov edx, 0x39
call fcn.0049bd40
add esp, 0x1c
mov dword [esp + 0xf4], eax
jmp 0x4d796a
mov dword [esp + 0xf4], 0xffffffff
mov eax, dword [esp + 0x7c]
cmp byte [eax], 0xc
jne 0x4d798b
mov ecx, dword [esp + 0x30]
mov edx, 0x39
push dword [ecx]
mov ecx, esi
push dword [eax + 4]
call fcn.0049bcd0
add esp, 8
mov ecx, esi
call fcn.0049bed0
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x9c], ecx
mov edx, eax
push ecx
mov ecx, edi
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], 0x7fffffff
call fcn.004d1c80
mov edx, dword [esp + 0x24]
add esp, 4
cmp dword [edx + 8], 0
jne 0x4d79e7
mov eax, dword [esp + 0xf4]
test eax, eax
js 0x4d79e7
mov edx, eax
mov ecx, esi
call fcn.0049c4c0
or byte [esp + 0xf8], 1
mov edx, dword [esp + 0x20]
mov byte [eax], 0x3a
test byte [edx + 6], 1
je 0x4d7a4f
mov edi, dword [edi + 0x44]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffffa
push ecx
lea eax, [edi + 1]
mov dword [esp + 0xb0], edi
mov dword [ecx + 0x44], eax
mov edx, dword [edx]
push 0
push 0
call fcn.004d0880
add esp, 0xc
mov edx, 0x39
mov ecx, esi
push eax
push 0
push 0
push edi
call fcn.0049bd40
mov ecx, dword [esi + 4]
add esp, 0x14
mov dword [esp + 0xac], eax
test ecx, ecx
je 0x4d7a40
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov edi, dword [esp + 0x18]
mov eax, 3
mov edx, dword [esp + 0x20]
jmp 0x4d7a51
xor al, al
cmp dword [esp + 0x60], 0
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0xa5], al
mov dword [esp + 0x64], eax
jne 0x4d7b7a
test ecx, ecx
jne 0x4d7b7a
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 + 0x40]
push dword [esp + 0x4c]
push dword [esp + 0x9c]
call fcn.004e7ed0
add esp, 0x14
mov dword [esp + 0x54], eax
test eax, eax
je 0x4d74f7
mov cx, word [eax + 0x20]
call fcn.00481300
mov ecx, eax
mov eax, dword [esp + 0x20]
cmp edx, dword [eax + 0x1c]
ja 0x4d7ace
jb 0x4d7ac8
cmp ecx, dword [eax + 0x18]
jae 0x4d7ace
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
cmp byte [esp + 0x17], 0
mov edx, dword [esp + 0x54]
je 0x4d7afe
mov eax, dword [esp + 0x64]
mov cl, byte [edx + 0x28]
movzx eax, al
test cl, cl
mov dword [esp + 0x64], eax
movzx eax, cl
mov ecx, dword [esp + 0x64]
cmovne ecx, eax
mov dword [esp + 0x64], ecx
mov byte [esp + 0xa5], cl
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4d7b1f
movsx eax, byte [edx + 0x24]
xor edx, edx
cmp eax, dword [ecx]
mov dword [esp + 0xe4], eax
cmove ecx, edx
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0xf4]
test eax, eax
js 0x4d7b37
test ecx, ecx
jne 0x4d7b37
mov edx, eax
mov ecx, esi
call fcn.0049c360
mov eax, dword [esp + 0x54]
mov ecx, edi
mov edx, dword [esp + 0x20]
push dword [eax + 0x34]
push dword [eax + 0x30]
lea eax, [esp + 0xac]
push dword [esp + 0x84]
push eax
lea eax, [esp + 0xf0]
push eax
push 0xffffffffffffffff
push dword [esp + 0x48]
call fcn.004cfcb0
mov ecx, dword [esp + 0x70]
add esp, 0x1c
call fcn.004e88d0
jmp 0x4d8f0a
mov dword [esp + 0x80], 0
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x4d7c0b
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x74]
test eax, eax
jle 0x4d7bc6
mov ecx, dword [esp + 0x1c]
add ecx, 0x16
jmp 0x4d7bb0
xor edi, edi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], di
test eax, eax
jg 0x4d7bb0
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
test eax, eax
jle 0x4d7bf6
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 0x4d7be0
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
cmp dword [edx + 0x1c], 0
ja 0x4d7c02
cmp dword [edx + 0x18], 0x64
jbe 0x4d7c19
mov dword [edx + 0x18], 0x64
jmp 0x4d7c12
mov dword [edx + 0x18], 1
mov dword [edx + 0x1c], 0
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
call fcn.004b36e0
add esp, 4
mov ecx, 1
test eax, eax
mov eax, 0
cmove eax, ecx
mov ecx, esi
mov dword [esp + 0x94], eax
call fcn.0049bed0
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x34]
movdqa xmmword [esp + 0x100], xmm0
mov dword [esp + 0x104], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x10c], eax
mov eax, dword [edi + 0x48]
inc eax
movdqa xmmword [esp + 0x110], xmm0
mov dword [esp + 0x100], edi
mov dword [esp + 0xc0], eax
test ecx, ecx
je 0x4d7c9e
mov eax, dword [ecx]
mov dword [esp + 0xbc], eax
jmp 0x4d7ca9
mov dword [esp + 0xbc], 0
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc8], ecx
lea ecx, [esp + 0x100]
call fcn.004b3c40
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x100]
call fcn.004b3c40
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4d7ce6
mov edx, eax
lea ecx, [esp + 0x100]
call fcn.004b3bf0
cmp dword [esp + 0xdc], 0
mov edx, dword [esp + 0xd0]
mov dword [esp + 0xd4], edx
jle 0x4d7d69
mov ax, word [esp + 0x11c]
xor edi, edi
xor esi, esi
lea ebx, [ebx]
or ax, 8
lea ecx, [esp + 0x100]
mov word [esp + 0x11c], ax
mov eax, dword [esp + 0xd8]
mov edx, dword [eax + edi]
mov edx, dword [edx + 0x14]
call fcn.004b3c40
mov ax, word [esp + 0x11c]
lea edi, [edi + 0x10]
mov ecx, 0xfff7
inc esi
and ax, cx
mov word [esp + 0x11c], ax
cmp esi, dword [esp + 0xdc]
jl 0x4d7d10
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x48]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x41], 0
jne 0x4d90f1
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4d8b77
mov eax, dword [edi + 0x44]
push edx
mov dword [esp + 0xb8], eax
mov edx, ecx
inc eax
mov ecx, edi
push 0
mov dword [edi + 0x44], eax
call fcn.004d0880
push 0xfffffffffffffffa
push eax
push 0
push dword [esp + 0xd0]
mov edx, 0x3a
mov dword [esp + 0x74], eax
push dword [esp + 0xcc]
mov ecx, esi
call fcn.0049bd40
mov dword [esp + 0x38], eax
add esp, 0x1c
mov eax, dword [edi + 0x48]
mov ecx, esi
inc eax
mov dword [esp + 0x28], eax
add eax, 2
mov dword [edi + 0x48], eax
call fcn.0049bed0
inc dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x6c], eax
call fcn.0049bed0
mov edx, dword [edi + 0x48]
mov dword [esp + 0x78], eax
lea eax, [edx + 1]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
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 + 0x28]
mov ecx, esi
inc eax
mov dword [esp + 0x54], edx
push eax
push 0
mov edx, 0x19
call fcn.0049bcd0
push dword [esp + 0x30]
mov edx, 0x19
mov ecx, esi
push 0
call fcn.0049bcd0
mov eax, dword [esp + 0x4c]
mov edx, 0x1c
mov ecx, dword [esp + 0x98]
mov eax, dword [eax]
dec eax
add eax, ecx
push eax
push ecx
push 0
mov ecx, esi
call fcn.0049bba0
add esp, 0x1c
mov edx, 0x11
mov ecx, esi
push dword [esp + 0x78]
push dword [esp + 0x70]
call fcn.0049bcd0
mov eax, dword [esp + 0x9c]
mov ecx, 0x100
neg eax
push 0
sbb eax, eax
and eax, 0x800
mov edx, dword [esp + 0x40]
or ax, cx
movzx eax, ax
mov ecx, edi
push eax
push 0
push dword [esp + 0x50]
push dword [esp + 0xa4]
call fcn.004e7ed0
mov edx, eax
add esp, 0x1c
mov dword [esp + 0x8c], edx
test edx, edx
je 0x4d74f7
mov eax, dword [esp + 0x3c]
movsx ecx, byte [edx + 0x24]
cmp ecx, dword [eax]
jne 0x4d7ee6
xor ecx, ecx
mov dword [esp + 0x60], ecx
jmp 0x4d82e9
cmp byte [esp + 0x17], 0
je 0x4d7efc
mov eax, dword [esp + 0x20]
mov edx, str.DISTINCT
test byte [eax + 6], 1
je 0x4d7f01
mov edx, str.GROUP_BY
mov ecx, edi
call fcn.004d0910
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], 1
mov ecx, dword [eax]
mov edx, ecx
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x4d7f53
mov eax, dword [esp + 0xcc]
add eax, 0xc
lea esp, [esp]
cmp dword [eax], ecx
jl 0x4d7f46
inc edx
inc ecx
add eax, 0x18
dec dword [esp + 0x38]
jne 0x4d7f40
mov dword [esp + 0x70], edx
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x40], eax
cmp edx, ecx
jg 0x4d7f6d
add eax, edx
sub ecx, edx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x38], ecx
jmp 0x4d7f7c
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x40], ecx
mov dword [edi + 0x48], eax
mov ecx, edi
call fcn.004b15f0
mov edx, dword [esp + 0x3c]
push 0
push dword [esp + 0x44]
call fcn.004b2b60
add esp, 8
mov dword [esp + 0x98], 0
cmp dword [esp + 0xd0], 0
jle 0x4d809f
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
add edx, ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x38], 0
jmp 0x4d7fd0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0xcc]
cmp dword [eax + esi + 0xc], ecx
mov esi, dword [esp + 0x74]
jl 0x4d807e
mov ecx, dword [esp + 0x38]
push 0
push edx
push dword [eax + ecx + 4]
mov edx, dword [eax + ecx]
push dword [eax + ecx + 8]
mov ecx, edi
call fcn.004b1540
mov edx, dword [esp + 0x90]
add esp, 0x10
mov dword [esp + 0x10], eax
cmp edx, eax
je 0x4d806d
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x54], eax
jg 0x4d8039
mov ecx, esi
call fcn.0049bb20
mov edx, dword [esp + 0x80]
test eax, eax
jne 0x4d806d
mov eax, dword [esp + 0x2c]
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 + 0x18]
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 + 0x68]
inc ecx
inc edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x98]
add dword [esp + 0x38], 0x18
inc eax
mov dword [esp + 0x98], eax
cmp eax, dword [esp + 0xd0]
jl 0x4d7fd0
mov al, byte [edi + 0x13]
test al, al
jne 0x4d80b2
inc dword [edi + 0x48]
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x38], ecx
jmp 0x4d80c2
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d80e0
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8114
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 0x31
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 + 0xb4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d813d
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8173
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 0x6d
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 0x4d8177
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d81b0
mov al, byte [edi + 0x13]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x4d81b0
xor ecx, ecx
lea eax, [edi + 0x74]
jmp 0x4d8190
cmp dword [eax + 0xc], edx
je 0x4d81ac
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x4d8190
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x4d81b0
mov byte [eax + 6], 1
push dword [esp + 0x70]
mov edx, dword [esp + 0x44]
mov ecx, edi
call fcn.004b12f0
mov eax, dword [esp + 0x74]
add esp, 4
cmp eax, dword [edi + 0x38]
jle 0x4d81d5
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x3c], eax
mov ecx, dword [esp + 0x8c]
call fcn.004e88d0
mov eax, dword [edi + 0x44]
mov dword [esp + 0x80], eax
mov dword [esp + 0xb8], eax
inc eax
mov dword [edi + 0x44], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x4d8209
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x38], edx
jmp 0x4d8219
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8237
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d826e
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x70]
mov word [eax + ecx*4], 0x3c
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 + 0xb4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8297
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d82ce
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x90]
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
mov ecx, edi
mov byte [esp + 0xb1], 1
call fcn.004b15f0
mov edx, dword [esp + 0x8c]
mov ecx, 1
cmp dword [esp + 0x94], 0
je 0x4d831f
mov eax, dword [esp + 0x24]
test byte [eax + 0x3c], 4
jne 0x4d831f
test ecx, ecx
jne 0x4d8306
cmp byte [edx + 0x25], cl
je 0x4d831f
mov edx, dword [esp + 0xf4]
mov ecx, esi
mov dword [esp + 0xe0], 0
call fcn.0049c360
mov eax, dword [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x98], eax
call fcn.004b15f0
cmp dword [esp + 0x60], 0
je 0x4d8397
mov eax, dword [esp + 0xb4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8360
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8397
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x80]
mov word [eax + ecx*4], 0x64
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x68], eax
cmp dword [ecx], eax
jle 0x4d8455
xor edx, edx
mov dword [esp + 0x70], edx
nop
cmp dword [esp + 0x60], 0
je 0x4d8414
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d83d9
mov ecx, esi
call fcn.0049bb20
mov edx, dword [esp + 0x70]
test eax, eax
jne 0x4d8439
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x18]
mov word [eax + ecx*4], 0x2f
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x80]
mov byte [ecx + 3], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], eax
add eax, dword [esp + 0x54]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
jmp 0x4d8439
add eax, dword [esp + 0x54]
mov byte [esp + 0xb0], 1
mov edx, dword [ecx + 4]
mov ecx, edi
push eax
mov eax, dword [esp + 0x74]
mov edx, dword [edx + eax]
call fcn.004b2990
mov edx, dword [esp + 0x74]
add esp, 4
mov eax, dword [esp + 0x68]
add edx, 0x18
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
cmp eax, dword [ecx]
jl 0x4d83b0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4d845f
inc dword [eax]
mov eax, dword [ecx]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], edx
cmp dword [eax + 0x54], edx
jg 0x4d848a
mov ecx, esi
call fcn.0049bb20
test eax, eax
je 0x4d8486
mov edx, 1
jmp 0x4d84c5
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x88]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x54]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x18]
mov word [eax + ecx*4], 0x2a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x5c]
mov ecx, esi
push 0xfffffffffffffffa
push eax
call fcn.0049c3b0
mov eax, dword [esi + 0x18]
add esp, 8
mov edx, dword [esi + 0x20]
mov dword [esp + 0x94], edx
cmp dword [eax + 0x54], edx
jg 0x4d84fa
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8528
mov edx, dword [esp + 0x94]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x2b
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 + 0x3c]
mov edx, dword [edi + 8]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x2c], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d855b
mov ecx, edx
call fcn.0049bb20
test eax, eax
jne 0x4d8594
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
lea ecx, [ecx + ecx*4]
inc dword [edx + 0x20]
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x5c]
mov word [eax + ecx*4], 0x20
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d8598
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x58]
mov ecx, edi
call fcn.004b12f0
mov eax, dword [esi + 0x18]
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d85c5
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8607
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x74]
add edx, 2
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x84]
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 0x4d8625
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8661
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x89
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 0x4d867f
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d86b3
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x78]
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 + 0x94]
cmp edx, eax
jbe 0x4d86cb
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 + 0xb0]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
mov ecx, edi
call fcn.004d6e80
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8701
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8735
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
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
cmp dword [esp + 0x60], 0
je 0x4d87a2
mov eax, dword [esp + 0xb4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8769
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d87f5
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x98]
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 0x4d87f5
mov ecx, dword [esp + 0x8c]
call fcn.004e88d0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x20]
jge 0x4d87f5
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea edi, [eax + ecx*4]
mov ecx, dword [esi]
call fcn.0049c1b0
xorps xmm0, xmm0
add esp, 4
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9a
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x18]
dec eax
cmp dword [esp + 0x1c], eax
jne 0x4d87f5
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 0x4d8813
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8855
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x74]
add edx, 2
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x84]
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 0x4d8873
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d88aa
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 + 0x5c], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d88c8
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8901
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
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 0x4d891f
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d895e
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x74]
add edx, 2
mov edi, dword [esp + 0x18]
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 + 0x84]
mov dword [esp + 0x10], eax
js 0x4d897e
mov edx, dword [eax + 0x70]
test edx, edx
je 0x4d897e
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 0x4d89a7
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d89d9
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x89
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x28]
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 0x4d89f7
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8a36
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x74]
add edx, 2
mov edi, dword [esp + 0x18]
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 + 0xb0]
mov ecx, edi
call fcn.004d6db0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
inc edi
mov ecx, dword [esp + 0x18]
push 0x10
push edi
call fcn.004b31e0
push dword [esp + 0x64]
lea eax, [esp + 0xb0]
push edi
push dword [esp + 0x8c]
mov edi, dword [esp + 0x2c]
mov ecx, edi
push eax
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x3c]
mov edx, eax
push 0xffffffffffffffff
push dword [eax]
call fcn.004cfcb0
mov eax, dword [esi + 0x18]
add esp, 0x24
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8aab
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8ae6
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x74]
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 + 0x78]
mov dword [esp + 0x10], eax
js 0x4d8b03
mov edx, dword [eax + 0x70]
test edx, edx
je 0x4d8b03
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xb0]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [ecx + 0x58], eax
mov ecx, edi
call fcn.004d6cc0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4d8b3e
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8edf
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
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 0x4d8edf
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xb0]
mov dword [esp + 0x88], 0
call fcn.004d5760
mov dword [esp + 0x60], eax
test eax, eax
je 0x4d8d71
mov ecx, dword [edi]
mov edx, dword [eax + 0x44]
call fcn.004ce3d0
mov edx, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x78], eax
lea ecx, [eax + 1]
xor eax, eax
mov dword [edi + 0x44], ecx
mov ecx, edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x84], eax
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call fcn.004bd480
mov eax, dword [esp + 0x60]
mov ecx, edi
mov edx, dword [esp + 0x6c]
push dword [eax]
push 0
push dword [eax + 0x20]
call fcn.004b7680
mov edx, dword [esp + 0x6c]
add esp, 0xc
test byte [edx + 0x2c], 0x20
je 0x4d8c11
mov ecx, edx
call fcn.004b8a70
mov ecx, eax
mov dword [esp + 0x84], ecx
jmp 0x4d8c13
xor ecx, ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x4d8c54
lea ebx, [ebx]
test byte [eax + 0x34], 4
jne 0x4d8c42
movzx edi, word [eax + 0x2c]
cmp di, word [edx + 0x2a]
jge 0x4d8c42
cmp dword [eax + 0x24], 0
jne 0x4d8c42
test ecx, ecx
je 0x4d8c40
cmp di, word [ecx + 0x2c]
jge 0x4d8c42
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4d8c20
mov edi, dword [esp + 0x18]
mov dword [esp + 0x84], ecx
test ecx, ecx
je 0x4d8c6c
mov eax, dword [ecx + 0x28]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.004bddc0
mov dword [esp + 0x5c], eax
push 1
push dword [esp + 0x70]
mov edx, 0x36
mov ecx, esi
push dword [esp + 0x24]
push dword [esp + 0x84]
call fcn.0049be60
mov eax, dword [esp + 0x6c]
add esp, 0x10
test eax, eax
je 0x4d8ca4
push 0xfffffffffffffffa
push eax
or edx, 0xffffffff
mov ecx, esi
call fcn.0049c3b0
add esp, 8
mov eax, dword [esp + 0xd8]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], ecx
jg 0x4d8cd0
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8d04
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 word [eax + ecx*4], 0x32
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 0x4d8d22
mov ecx, esi
call fcn.0049bb20
test eax, eax
jne 0x4d8d56
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 word [eax + ecx*4], 0x3d
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 + 0x84]
mov ecx, edi
mov edx, dword [esp + 0x60]
push eax
call fcn.004d7300
add esp, 4
jmp 0x4d8e88
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x2c], 0
jne 0x4d8dee
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xb0]
call fcn.004d56f0
mov byte [esp + 0x17], al
test al, al
je 0x4d8de6
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
push 0
call fcn.004af070
mov edx, eax
add esp, 4
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
test edx, edx
je 0x4d8dee
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x41], 0
jne 0x4d8dee
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 0x4d8dee
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
lea edx, [esp + 0xb0]
mov ecx, edi
call fcn.004d6cc0
mov al, byte [esp + 0x17]
mov ecx, edi
mov edx, dword [esp + 0x34]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0x84]
push dword [esp + 0x9c]
call fcn.004e7ed0
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4d8e43
mov esi, dword [esp + 0x24]
mov ecx, esi
mov edx, dword [esp + 0x88]
call fcn.004af950
jmp 0x4d74fb
lea edx, [esp + 0xb0]
mov ecx, edi
call fcn.004d6e80
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x24], 0
jle 0x4d8e73
push dword [eax + 0x34]
mov edx, 0x10
mov ecx, esi
push 0
call fcn.0049bcd0
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, eax
call fcn.004e88d0
lea edx, [esp + 0xb0]
mov ecx, edi
call fcn.004d6db0
mov edx, dword [esp + 0x58]
mov ecx, edi
push 0x10
push dword [esp + 0x94]
mov dword [esp + 0xe8], 0
call fcn.004b31e0
mov eax, dword [esp + 0x98]
mov ecx, edi
push eax
push eax
push dword [esp + 0x8c]
mov eax, dword [esp + 0x34]
mov edx, eax
push 0
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.004cfcb0
mov edx, dword [esp + 0xac]
add esp, 0x24
mov ecx, dword [esp + 0x24]
call fcn.004af950
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x90]
mov dword [esp + 0x10], eax
js 0x4d8eff
mov edx, dword [eax + 0x70]
test edx, edx
je 0x4d8eff
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 + 0x64]
cmp al, 3
jne 0x4d8fc3
cmp byte [edi + 0x1c2], 2
jne 0x4d8fc3
mov ecx, dword [edi + 8]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push dword [edi]
mov dword [esp + 0x64], ecx
call fcn.0047ed30
mov dword [esp + 0x28], eax
add esp, 0xc
mov eax, dword [edi + 0x1d0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x10], edx
cmp dword [ecx + 0x54], edx
jg 0x4d8f79
mov ecx, eax
call fcn.0049bb20
test eax, eax
je 0x4d8f71
mov edx, 1
jmp 0x4d8fb1
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
inc dword [eax + 0x20]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x74]
mov word [eax + ecx*4], 0x9b
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x58]
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.0049c3b0
add esp, 8
cmp dword [esp + 0xe0], 0
je 0x4d90af
cmp byte [edi + 0x1c2], 2
jne 0x4d908f
mov ecx, dword [edi + 8]
mov eax, str.RIGHT_PART_OF_ORDER_BY
cmp dword [esp + 0xe4], 0
mov dword [esp + 0x58], ecx
mov ecx, str.ORDER_BY
cmovle eax, ecx
push eax
push str.USE_TEMP_B_TREE_FOR__s
push dword [edi]
call fcn.0047ed30
mov dword [esp + 0x28], eax
add esp, 0xc
mov eax, dword [edi + 0x1d0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x10], edx
cmp dword [ecx + 0x54], edx
jg 0x4d9045
mov ecx, eax
call fcn.0049bb20
test eax, eax
je 0x4d903d
mov edx, 1
jmp 0x4d907d
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
inc dword [eax + 0x20]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x74]
mov word [eax + ecx*4], 0x9b
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x58]
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.0049c3b0
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, edi
push dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
push dword [eax]
lea eax, [esp + 0xe8]
push eax
call fcn.004d09e0
add esp, 0xc
mov edx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x9c]
mov dword [esp + 0x9c], eax
js 0x4d90dd
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x4d90dd
mov edi, dword [esp + 0x9c]
mov eax, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
dec eax
mov dword [esp + 0x68], 0
mov dword [edx + 0x58], eax
jmp 0x4d74f7
mov esi, eax
jmp 0x4d74fb
mov esi, dword [esp + 0x24]
jmp 0x4d7503
mov esi, eax
jmp 0x4d74ff
cmp ecx, dword [esi + 0x114]
jb 0x4d912e
cmp ecx, dword [esi + 0x118]
jae 0x4d912e
mov eax, dword [esi + 0x110]
mov dword [ecx], eax
dec dword [esi + 0xfc]
mov dword [esi + 0x110], ecx
jmp 0x4d9137
push ecx
call fcn.0047cef0
add esp, 4
mov edx, dword [esp + 0xd8]
test edx, edx
je 0x4d91af
cmp dword [esi + 0x208], 0
je 0x4d916a
mov ecx, esi
call fcn.0047cf90
mov eax, dword [esp + 0x68]
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
cmp edx, dword [esi + 0x114]
jb 0x4d91a6
cmp edx, dword [esi + 0x118]
jae 0x4d91a6
mov eax, dword [esi + 0x110]
mov dword [edx], eax
dec dword [esi + 0xfc]
mov eax, dword [esp + 0x68]
mov dword [esi + 0x110], edx
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
push edx
call fcn.0047cef0
add esp, 4
mov eax, dword [esp + 0x68]
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x13c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret