Function at 0x70ddcbaa
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 0x70ddd48b
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.70ddc822
test eax, eax
je 0x70ddd474
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.70ddb9b4
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.70ddba88
test eax, eax
je 0x70ddce74
lea eax, [ebp + 0x4c]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc776
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.70ddc776
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.70ddc776
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.70ddc776
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.70ddc776
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.70ddc776
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.70ddc776
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.70ddc776
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 0x70ddce60
movzx esi, ax
add esi, dword [ebp + 0x48]
movzx eax, cx
shr eax, 0xa
cmp eax, 4
je 0x70ddce40
push edi
cmp eax, 8
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
je 0x70ddce2a
call fcn.70ddb9b4
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddce03
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.70ddc776
mov word [esi + 2], ax
mov eax, dword [ebp + 0x64]
and ax, 0x7ff
mov word [esi], ax
jmp 0x70ddce60
call fcn.70ddb9b4
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddce03
mov dword [ebp + 0x64], 5
jmp 0x70ddce03
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.70ddc776
mov word [esi + 2], ax
mov word [esi], 5
inc dword [ebp + 0x44]
cmp word [ebp + 0x44], 0x700
jb 0x70ddcda1
jmp 0x70ddd474
cmp dword [ebp + 0x60], 0
je 0x70ddd1c3
movzx eax, word [ebp + 0x14]
test byte [eax + 0x70d8d368], 4
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
je 0x70ddcebb
push 0
push eax
call fcn.70ddc45b
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.70ddc776
mov word [ebx + esi*4], 2
jmp 0x70ddcee4
push 3
push eax
call fcn.70ddc45b
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.70ddc776
mov word [ebx + esi*4], di
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x14]
inc esi
test byte [eax + 0x70d8d368], 4
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.70ddc45b
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.70ddc776
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.70ddc776
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.70ddc776
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 + 0x70d8d368], 4
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
je 0x70ddcfa3
push 0
push eax
call fcn.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
jmp 0x70ddcfc3
push 3
push eax
call fcn.70ddc45b
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.70ddc776
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x14]
mov word [ebx + esi*4], 4
inc esi
test byte [eax + 0x70d8d368], 4
lea eax, [ebp + 0x4c]
je 0x70ddd00b
push eax
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc776
mov word [ebx + esi*4], 4
jmp 0x70ddd02b
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.70ddc776
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.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc776
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 0x70ddd1af
movzx esi, ax
add esi, dword [ebp + 0x48]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0x70ddd15e
dec eax
dec eax
je 0x70ddd12e
sub eax, 4
je 0x70ddd11c
push 0
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddb9b4
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd0ea
mov dword [ebp + 0x64], edi
movzx edx, word [ebp + 0x14]
test byte [edx + 0x70d8d368], 4
jne 0x70ddd15e
lea eax, [ebp + 0x4c]
push eax
push 3
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
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 0x70ddd199
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0x70ddd1af
lea eax, [ebp + 0x4c]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
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.70ddc776
mov word [esi + 2], ax
mov word [esi], 5
jmp 0x70ddd1af
push edi
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddb9b4
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd17c
mov dword [ebp + 0x64], 2
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.70ddc45b
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.70ddc776
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 0x70ddd084
jmp 0x70ddd474
lea eax, [ebp + 0x4c]
push eax
push 2
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
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.70ddc776
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.70ddc45b
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.70ddc776
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.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x60]
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x60]
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x74]
call fcn.70ddc776
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.70ddc45b
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.70ddc776
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 0x70ddd465
movzx esi, ax
add esi, dword [ebp + 0x48]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0x70ddd415
dec eax
dec eax
je 0x70ddd3e6
sub eax, 4
je 0x70ddd3d7
push 0
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddb9b4
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd3bb
mov dword [ebp + 0x64], edi
lea eax, [ebp + 0x4c]
push eax
push 2
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
push 0
lea eax, [ebp + 0x4c]
push eax
push edi
push edi
push dword [ebp + 0x60]
jmp 0x70ddd44c
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0x70ddd465
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
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.70ddc776
mov word [esi + 2], ax
mov word [esi], 5
jmp 0x70ddd465
push edi
push edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.70ddb9b4
test ax, ax
mov dword [ebp + 0x64], eax
jne 0x70ddd433
mov dword [ebp + 0x64], 2
lea eax, [ebp + 0x4c]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
call fcn.70ddc45b
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.70ddc776
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 0x70ddd359
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 0x70ddcbed
mov eax, dword [ebp + 0x3c]
and dword [ebp + 0x38], 0
cmp word [eax + 2], 0
jbe 0x70ddda3f
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.70ddc822
test eax, eax
je 0x70ddda28
mov ecx, dword [ebp + 0x68]
push 2
pop eax
cmp word [ecx], ax
mov dword [ebp + 0x64], eax
jb 0x70ddda28
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.70ddb9b4
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.70ddba88
test eax, eax
je 0x70ddd625
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 0x70ddd5b1
push 1
push edi
push eax
call fcn.70ddc480
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.70ddc776
mov word [esi + 2], ax
mov eax, dword [ebp + 0x40]
add dword [ebp + 0x40], 4
lea eax, [eax + 0x70ddda4c]
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 0x70ddd55c
jmp 0x70ddda15
push 0
push edi
push eax
call fcn.70ddc480
lea esi, [ebx + esi*4]
xor edi, edi
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc398
test eax, eax
jne 0x70ddd615
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.70ddc776
mov word [esi + 2], ax
lea eax, [edi + 0x70ddda4c]
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 0x70ddd5bf
jmp 0x70ddda15
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.70ddc3c4
movzx edx, si
test byte [edx + 0x70d8d368], 6
mov dword [ebp + 0x34], eax
je 0x70ddd673
mov ax, word [ebp + 0x40]
cmp word [ebp + 0x64], ax
jne 0x70ddd673
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 0x70ddd8d8
cmp word [ebp + 0x34], 1
jne 0x70ddd788
movzx eax, word [edi + 0x70ddda96]
sub eax, 0
je 0x70ddd747
dec eax
je 0x70ddd70f
dec eax
jne 0x70ddd774
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.70ddc480
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc398
test eax, eax
jne 0x70ddd774
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x14]
jmp 0x70ddd738
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.70ddc480
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.70ddc776
mov word [esi + 2], ax
jmp 0x70ddd74c
and word [esi + 2], 0
lea eax, [edi + 0x70ddda94]
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 0x70ddd6c0
jmp 0x70ddda15
mov dword [ebp + 0x60], edi
movzx eax, word [edi + 0x70ddda72]
sub eax, 0
je 0x70ddd894
dec eax
je 0x70ddd854
dec eax
jne 0x70ddd8c1
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.70ddc45b
xor edx, edx
inc edx
cmp dword [ebp + 0x5c], 2
jbe 0x70ddd7f3
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.70ddc45b
add dword [ebp + 0x60], 2
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd7d7
cmp dword [ebp + 0x5c], 1
jbe 0x70ddd820
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.70ddc45b
inc dword [ebp + 0x60]
inc edx
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd80b
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc398
test eax, eax
jne 0x70ddd8c1
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.70ddc776
mov word [esi + 2], ax
jmp 0x70ddd899
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.70ddc480
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.70ddc776
mov edi, dword [ebp + 0x60]
mov word [esi + 2], ax
mov eax, dword [ebp + 0x60]
lea eax, [eax + 0x70ddda70]
jmp 0x70ddd89f
and word [esi + 2], 0
lea eax, [edi + 0x70ddda70]
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 0x70ddd78b
jmp 0x70ddda15
movzx eax, word [edi + 0x70ddda96]
sub eax, 0
je 0x70ddd9d9
dec eax
je 0x70ddd993
dec eax
jne 0x70ddda06
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.70ddc45b
xor edx, edx
inc edx
cmp dword [ebp + 0x5c], 2
jbe 0x70ddd940
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.70ddc45b
add dword [ebp + 0x60], 2
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd924
mov eax, dword [ebp + 0x5c]
cmp eax, 1
jbe 0x70ddd96c
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.70ddc45b
inc dword [ebp + 0x60]
inc edx
inc edx
dec dword [ebp + 0x48]
jne 0x70ddd957
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc398
test eax, eax
jne 0x70ddda06
push eax
lea eax, [ebp + 0x4c]
push eax
movzx eax, word [ebp + 0x64]
push eax
push eax
lea eax, [ebp - 0x14]
jmp 0x70ddd9ca
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.70ddc480
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.70ddc398
test eax, eax
jne 0x70ddda06
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.70ddc776
mov word [esi + 2], ax
jmp 0x70ddd9de
and word [esi + 2], 0
lea eax, [edi + 0x70ddda94]
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 0x70ddd8d8
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x68]
mov cx, word [ebp + 0x64]
cmp cx, word [eax]
jbe 0x70ddd4f7
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 0x70ddd4a3
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x6c
leave
ret 0xc