Function at 0x70ddcc2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa0
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + 0x800]
mov edx, dword [eax + 0x81c]
and dword [ebp + 0x38], 0
push ebx
mov ebx, dword [eax + 0x80c]
push esi
push edi
xor edi, edi
inc edi
cmp word [ecx + 2], 0
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x34], edx
jbe 0x70ddd50b
mov eax, ecx
add eax, 4
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x40]
movzx esi, word [eax + 4]
movzx eax, word [eax]
add esi, dword [ebp + 0x3c]
push 0x10
lea ecx, [ebp + 0x60]
push ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push esi
push dword [ebp + 0x74]
call fcn.70ddc8a2
test eax, eax
je 0x70ddd4f4
mov eax, dword [ebp + 0x40]
movzx eax, word [eax]
movzx eax, word [esi + eax*2 - 2]
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x10]
and eax, 3
push 0
mov dword [ebp + 0x60], eax
pop eax
setne al
push eax
push edi
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddba34
movzx esi, ax
mov eax, dword [ebp + 0x74]
imul esi, dword [eax + 0x818]
push edi
lea eax, [ebp + 0x14]
push eax
mov dword [ebp + 0x48], esi
call fcn.70ddbb08
test eax, eax
je 0x70ddcef4
lea eax, [ebp + 0x4c]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 2
inc esi
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 2
inc esi
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 5
inc esi
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 6
inc esi
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 5
inc esi
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
push 0
lea eax, [ebp + 0x4c]
mov word [ebx + esi*4], 4
inc esi
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 0x9804
inc esi
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 0xa000
lea esi, [ebx + esi*4 + 4]
call fcn.70ddc7f6
and word [esi], 0
mov word [esi + 2], ax
mov dword [ebp + 0x44], 0x600
mov edx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x34]
movzx eax, dh
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, dl
add edx, 0xfffffa00
mov dword [ebp + 0x5c], edx
movzx ecx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0x70ddcee0
movzx esi, ax
add esi, dword [ebp + 0x48]
movzx eax, cx
shr eax, 0xa
cmp eax, 4
je 0x70ddcec0
push edi
cmp eax, 8
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
je 0x70ddceaa
call fcn.70ddba34
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddce83
mov dword [ebp + 0x64], 2
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov eax, dword [ebp + 0x64]
and ax, 0x7ff
mov word [esi], ax
jmp 0x70ddcee0
call fcn.70ddba34
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddce83
mov dword [ebp + 0x64], 5
jmp 0x70ddce83
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov word [esi], 5
inc dword [ebp + 0x44]
cmp word [ebp + 0x44], 0x700
jb 0x70ddce21
jmp 0x70ddd4f4
cmp dword [ebp + 0x60], 0
je 0x70ddd243
movzx eax, word [ebp + 0x14]
test byte [eax + 0x70d8d3e8], 4
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
je 0x70ddcf3b
push 0
push eax
call fcn.70ddc4db
mov ecx, dword [ebp + 0x74]
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x14]
push edi
push edi
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.70ddc7f6
mov word [ebx + esi*4], 2
jmp 0x70ddcf64
push 3
push eax
call fcn.70ddc4db
mov ecx, dword [ebp + 0x74]
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x14]
push edi
push edi
lea eax, [ecx + eax*2 + 0x600]
push eax
push ecx
call fcn.70ddc7f6
mov word [ebx + esi*4], di
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x14]
inc esi
test byte [eax + 0x70d8d3e8], 4
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.70ddc4db
mov ecx, dword [ebp + 0x74]
movzx eax, word [ebp + 0x14]
push 0
lea edx, [ebp + 0x4c]
push edx
push edi
lea eax, [ecx + eax*2]
push edi
push eax
push ecx
mov dword [ebp + 0x68], eax
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
mov word [ebx + esi*4], 2
push dword [ebp + 0x74]
inc esi
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
mov word [ebx + esi*4], 5
push dword [ebp + 0x74]
inc esi
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x14]
mov word [ebx + esi*4], 6
and word [ebx + esi*4 + 6], 0
inc esi
mov word [ebx + esi*4], 0x6003
inc esi
test byte [eax + 0x70d8d3e8], 4
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
je 0x70ddd023
push 0
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
jmp 0x70ddd043
push 3
push eax
call fcn.70ddc4db
mov ecx, dword [ebp + 0x74]
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x14]
push edi
push edi
lea eax, [ecx + eax*2 + 0x600]
push eax
push ecx
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x14]
mov word [ebx + esi*4], 4
inc esi
test byte [eax + 0x70d8d3e8], 4
lea eax, [ebp + 0x4c]
je 0x70ddd08b
push eax
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [ebx + esi*4], 4
jmp 0x70ddd0ab
mov ecx, dword [ebp + 0x74]
push 0
push eax
movzx eax, word [ebp + 0x14]
push edi
push edi
lea eax, [ecx + eax*2 + 0x600]
push eax
push ecx
call fcn.70ddc7f6
mov word [ebx + esi*4], 0x9804
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
inc esi
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc7f6
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
mov word [ebx + esi*4], 0xa000
push dword [ebp + 0x74]
lea esi, [ebx + esi*4 + 4]
call fcn.70ddc7f6
and word [esi], 0
mov word [esi + 2], ax
mov dword [ebp + 0x44], 0x600
mov edx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x34]
movzx eax, dh
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, dl
add edx, 0xfffffa00
mov dword [ebp + 0x5c], edx
movzx ecx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0x70ddd22f
movzx esi, ax
add esi, dword [ebp + 0x48]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0x70ddd1de
dec eax
dec eax
je 0x70ddd1ae
sub eax, 4
je 0x70ddd19c
push 0
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddba34
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd16a
mov dword [ebp + 0x64], edi
movzx edx, word [ebp + 0x14]
test byte [edx + 0x70d8d3e8], 4
jne 0x70ddd1de
lea eax, [ebp + 0x4c]
push eax
push 3
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
mov eax, dword [ebp + 0x74]
push edi
push edi
lea ecx, [eax + edx*2 + 0x600]
push ecx
push eax
jmp 0x70ddd219
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0x70ddd22f
lea eax, [ebp + 0x4c]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
lea esi, [ebx + esi*4]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov word [esi], 5
jmp 0x70ddd22f
push edi
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddba34
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd1fc
mov dword [ebp + 0x64], 2
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov eax, dword [ebp + 0x64]
and ax, 0x7ff
mov word [esi], ax
inc dword [ebp + 0x44]
cmp word [ebp + 0x44], 0x700
jb 0x70ddd104
jmp 0x70ddd4f4
lea eax, [ebp + 0x4c]
push eax
push 2
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
movzx eax, word [ebp + 0x14]
mov ecx, dword [ebp + 0x74]
push 0
lea edx, [ebp + 0x4c]
push edx
push edi
lea eax, [ecx + eax*2 + 0x400]
push edi
push eax
push ecx
mov dword [ebp + 0x60], eax
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
mov word [ebx + esi*4], di
push eax
inc esi
call fcn.70ddc4db
movzx eax, word [ebp + 0x14]
mov ecx, dword [ebp + 0x74]
push 0
lea edx, [ebp + 0x4c]
push edx
push edi
lea eax, [ecx + eax*2 + 0x200]
push edi
push eax
push ecx
mov dword [ebp + 0x68], eax
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
mov word [ebx + esi*4], 2
push eax
inc esi
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
mov word [ebx + esi*4], 5
push eax
inc esi
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
mov word [ebx + esi*4], 6
and word [ebx + esi*4 + 6], 0
inc esi
lea eax, [ebp + 0x4c]
mov word [ebx + esi*4], 0x6003
inc esi
push eax
push 2
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x60]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push 2
lea eax, [ebp + 0x14]
mov word [ebx + esi*4], 4
push eax
inc esi
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x60]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
mov word [ebx + esi*4], 0x9804
push eax
inc esi
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
mov word [ebx + esi*4], 0xa000
push eax
inc esi
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
lea esi, [ebx + esi*4]
push dword [ebp + 0x74]
call fcn.70ddc7f6
and word [esi], 0
mov word [esi + 2], ax
mov dword [ebp + 0x44], 0x600
mov edx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x34]
movzx eax, dh
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, dl
add edx, 0xfffffa00
mov dword [ebp + 0x5c], edx
movzx ecx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0x70ddd4e5
movzx esi, ax
add esi, dword [ebp + 0x48]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0x70ddd495
dec eax
dec eax
je 0x70ddd466
sub eax, 4
je 0x70ddd457
push 0
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddba34
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd43b
mov dword [ebp + 0x64], edi
lea eax, [ebp + 0x4c]
push eax
push 2
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x60]
jmp 0x70ddd4cc
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0x70ddd4e5
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
lea esi, [ebx + esi*4]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov word [esi], 5
jmp 0x70ddd4e5
push edi
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddba34
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd4b3
mov dword [ebp + 0x64], 2
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov eax, dword [ebp + 0x64]
and ax, 0x7ff
mov word [esi], ax
inc dword [ebp + 0x44]
cmp word [ebp + 0x44], 0x700
jb 0x70ddd3d9
mov eax, dword [ebp + 0x3c]
movzx eax, word [eax + 2]
inc dword [ebp + 0x38]
add dword [ebp + 0x40], 6
cmp dword [ebp + 0x38], eax
jl 0x70ddcc6d
mov eax, dword [ebp + 0x3c]
and dword [ebp + 0x38], 0
cmp word [eax + 2], 0
jbe 0x70dddabf
add eax, 4
mov dword [ebp + 0x68], eax
mov ecx, dword [ebp + 0x68]
movzx eax, word [ecx + 4]
movzx ecx, word [ecx]
add eax, dword [ebp + 0x3c]
push 0x10
lea edx, [ebp + 0x60]
push edx
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp + 0x14]
push edx
push ecx
push eax
push dword [ebp + 0x74]
mov dword [ebp + 0xc], eax
call fcn.70ddc8a2
test eax, eax
je 0x70dddaa8
mov ecx, dword [ebp + 0x68]
push 2
pop eax
cmp word [ecx], ax
mov dword [ebp + 0x64], eax
jb 0x70dddaa8
mov eax, dword [ebp + 0x10]
and al, 3
neg al
sbb eax, eax
neg eax
mov dword [ebp + 0x44], eax
push dword [ebp + 0x44]
movzx edi, word [ebp + 0x64]
push edi
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddba34
movzx esi, ax
mov eax, dword [ebp + 0x74]
imul esi, dword [eax + 0x818]
push edi
lea eax, [ebp + 0x14]
push eax
mov dword [ebp + 0x60], esi
call fcn.70ddbb08
test eax, eax
je 0x70ddd6a5
mov ax, word [ebp + 0x64]
mov ecx, dword [ebp + 0x68]
cmp ax, word [ecx]
lea eax, [ebp + 0x4c]
push 0
push eax
lea eax, [ebp + 0x14]
jne 0x70ddd631
push 1
push edi
push eax
call fcn.70ddc500
mov eax, dword [ebp + 0x68]
add eax, 2
and dword [ebp + 0x40], 0
mov dword [ebp + 0x60], eax
lea esi, [ebx + esi*4]
push 1
lea eax, [ebp + 0x4c]
push eax
push edi
push 1
push dword [ebp + 0x60]
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
mov eax, dword [ebp + 0x40]
add dword [ebp + 0x40], 4
lea eax, [eax + 0x70dddacc]
mov cx, word [eax]
xor cx, word [esi]
and cx, 0x7ff
xor word [esi], cx
mov cx, word [esi]
mov dx, word [eax]
xor dx, cx
and dx, 0x7ff
xor dx, word [eax]
mov word [esi], dx
add esi, 4
cmp dword [ebp + 0x40], 0x24
jb 0x70ddd5dc
jmp 0x70ddda95
push 0
push edi
push eax
call fcn.70ddc500
lea esi, [ebx + esi*4]
xor edi, edi
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc418
test eax, eax
jne 0x70ddd695
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
lea eax, [edi + 0x70dddacc]
mov cx, word [eax]
xor cx, word [esi]
and cx, 0x7ff
xor word [esi], cx
mov cx, word [esi]
mov dx, word [eax]
xor dx, cx
and dx, 0x7ff
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
jb 0x70ddd63f
jmp 0x70ddda95
mov eax, dword [ebp + 0x68]
xor ecx, ecx
mov cx, word [eax]
lea eax, [edi + edi]
mov dword [ebp + 0x48], eax
xor esi, esi
mov si, word [ebp + eax + 0x12]
movzx eax, cx
mov dword [ebp + 0x40], ecx
mov ecx, dword [ebp + 0xc]
sub eax, edi
movzx eax, word [ecx + eax*2]
push eax
push esi
push dword [ebp + 0x74]
call fcn.70ddc444
movzx edx, si
test byte [edx + 0x70d8d3e8], 6
mov dword [ebp + 0x34], eax
je 0x70ddd6f3
mov ax, word [ebp + 0x40]
cmp word [ebp + 0x64], ax
jne 0x70ddd6f3
mov dword [ebp + 0x34], 1
mov ecx, dword [ebp + 0x48]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x74]
mov ax, word [eax + edx*2 + 0x200]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x48]
mov word [ebp + ecx - 0x36], ax
mov eax, dword [ebp + 0x68]
mov ax, word [eax]
xor edi, edi
cmp word [ebp + 0x64], ax
mov eax, dword [ebp + 0x60]
lea esi, [ebx + eax*4]
jne 0x70ddd958
cmp word [ebp + 0x34], 1
jne 0x70ddd808
movzx eax, word [edi + 0x70dddb16]
sub eax, 0
je 0x70ddd7c7
dec eax
je 0x70ddd78f
dec eax
jne 0x70ddd7f4
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push 0
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc500
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc418
test eax, eax
jne 0x70ddd7f4
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x14]
jmp 0x70ddd7b8
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push 1
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc500
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
mov eax, dword [ebp + 0x68]
push 1
add eax, 2
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
jmp 0x70ddd7cc
and word [esi + 2], 0
lea eax, [edi + 0x70dddb14]
mov cx, word [eax]
xor cx, word [esi]
and cx, 0x7ff
xor word [esi], cx
mov dx, word [eax]
mov cx, word [esi]
xor dx, cx
and dx, 0x7ff
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
jb 0x70ddd740
jmp 0x70ddda95
mov dword [ebp + 0x60], edi
movzx eax, word [edi + 0x70dddaf2]
sub eax, 0
je 0x70ddd914
dec eax
je 0x70ddd8d4
dec eax
jne 0x70ddd941
movzx eax, word [ebp + 0x64]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x4c]
push eax
push 3
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
xor edx, edx
inc edx
cmp dword [ebp + 0x5c], 2
jbe 0x70ddd873
lea eax, [ebp + 0x16]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffffe
mov dword [ebp + 0x48], eax
dec dword [ebp + 0x5c]
lea eax, [ebp + edx + 0x4c]
push eax
push 2
push dword [ebp + 0x60]
call fcn.70ddc4db
add dword [ebp + 0x60], 2
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd857
cmp dword [ebp + 0x5c], 1
jbe 0x70ddd8a0
lea eax, [ebp + edx + 0x4c]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x5c]
dec eax
lea edx, [ebp + edx*2 + 0x14]
mov dword [ebp + 0x48], eax
push dword [ebp + 0x60]
push 1
push edx
call fcn.70ddc4db
inc dword [ebp + 0x60]
inc edx
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd88b
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc418
test eax, eax
jne 0x70ddd941
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
jmp 0x70ddd919
movzx edi, word [ebp + 0x64]
push 1
lea eax, [ebp + 0x4c]
push eax
push 1
push edi
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc500
push 0
lea eax, [ebp + 0x4c]
push eax
mov eax, dword [ebp + 0x68]
push edi
push 1
add eax, 2
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov edi, dword [ebp + 0x60]
mov word [esi + 2], ax
mov eax, dword [ebp + 0x60]
lea eax, [eax + 0x70dddaf0]
jmp 0x70ddd91f
and word [esi + 2], 0
lea eax, [edi + 0x70dddaf0]
mov cx, word [esi]
xor cx, word [eax]
and cx, 0x7ff
xor word [esi], cx
mov dx, word [eax]
mov cx, word [esi]
xor dx, cx
and dx, 0x7ff
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
mov dword [ebp + 0x60], edi
jb 0x70ddd80b
jmp 0x70ddda95
movzx eax, word [edi + 0x70dddb16]
sub eax, 0
je 0x70ddda59
dec eax
je 0x70ddda13
dec eax
jne 0x70ddda86
movzx eax, word [ebp + 0x64]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x4c]
push eax
push 3
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc4db
xor edx, edx
inc edx
cmp dword [ebp + 0x5c], 2
jbe 0x70ddd9c0
lea eax, [ebp + 0x16]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffffe
mov dword [ebp + 0x48], eax
dec dword [ebp + 0x5c]
lea eax, [ebp + edx + 0x4c]
push eax
push 2
push dword [ebp + 0x60]
call fcn.70ddc4db
add dword [ebp + 0x60], 2
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd9a4
mov eax, dword [ebp + 0x5c]
cmp eax, 1
jbe 0x70ddd9ec
lea ecx, [ebp + edx + 0x4c]
dec eax
mov dword [ebp + 0x60], ecx
lea edx, [ebp + edx*2 + 0x14]
mov dword [ebp + 0x48], eax
push dword [ebp + 0x60]
push 1
push edx
call fcn.70ddc4db
inc dword [ebp + 0x60]
inc edx
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd9d7
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc418
test eax, eax
jne 0x70ddda86
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x14]
jmp 0x70ddda4a
push 0
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push 0
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc500
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc418
test eax, eax
jne 0x70ddda86
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x74]
call fcn.70ddc7f6
mov word [esi + 2], ax
jmp 0x70ddda5e
and word [esi + 2], 0
lea eax, [edi + 0x70dddb14]
mov cx, word [eax]
xor cx, word [esi]
and cx, 0x7ff
xor word [esi], cx
mov dx, word [eax]
mov cx, word [esi]
xor dx, cx
and dx, 0x7ff
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
jb 0x70ddd958
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x68]
mov cx, word [ebp + 0x64]
cmp cx, word [eax]
jbe 0x70ddd577
mov eax, dword [ebp + 0x3c]
movzx eax, word [eax + 2]
inc dword [ebp + 0x38]
add dword [ebp + 0x68], 6
cmp dword [ebp + 0x38], eax
jl 0x70ddd523
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x6c
leave
ret 0xc