Function at 0xa15fd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa0
mov eax, dword [0x3998e9f8]
and dword [ebp - 0x28], 0
push ebx
push esi
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + 0x800]
mov edx, dword [eax + 0x81c]
mov ebx, dword [eax + 0x80c]
push edi
xor edi, edi
inc edi
cmp word [ecx + 2], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jbe 0xa168bb
mov eax, ecx
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx esi, word [eax + 4]
movzx eax, word [eax]
add esi, dword [ebp - 0x2c]
push 0x10
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0x38]
push ecx
push eax
push esi
push dword [ebp + 0x74]
mov dword [ebp - 0x1c], eax
call fcn.00a15c4a
test eax, eax
je 0xa168a4
mov eax, dword [ebp - 0x1c]
movzx eax, word [esi + eax*2 - 2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
and eax, 3
push 0
mov dword [ebp - 0x1c], eax
pop eax
setne al
push eax
push edi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00a14df2
movzx esi, ax
mov eax, dword [ebp + 0x74]
imul esi, dword [eax + 0x818]
push edi
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x24], esi
call fcn.00a14ec6
test eax, eax
je 0xa162a4
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 2
inc esi
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 2
inc esi
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 5
inc esi
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 6
inc esi
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 5
inc esi
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
push 0
lea eax, [ebp + 0x58]
mov word [ebx + esi*4], 4
inc esi
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 0x9804
inc esi
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
mov word [ebx + esi*4], 0xa000
lea esi, [ebx + esi*4 + 4]
call fcn.00a15b9e
and word [esi], 0
mov word [esi + 2], ax
mov dword [ebp - 0x20], 0x600
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
movzx eax, dh
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, dl
add edx, 0xfffffa00
mov dword [ebp - 0x14], edx
movzx ecx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0xa16290
movzx esi, ax
add esi, dword [ebp - 0x24]
movzx eax, cx
shr eax, 0xa
cmp eax, 4
je 0xa16270
push edi
cmp eax, 8
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
je 0xa1625a
call fcn.00a14df2
test ax, ax
mov dword [ebp - 0x10], eax
jne 0xa16233
mov dword [ebp - 0x10], 2
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.00a15b9e
mov word [esi + 2], ax
mov eax, dword [ebp - 0x10]
and ax, 0x7ff
mov word [esi], ax
jmp 0xa16290
call fcn.00a14df2
test ax, ax
mov dword [ebp - 0x10], eax
jne 0xa16233
mov dword [ebp - 0x10], 5
jmp 0xa16233
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.00a15b9e
mov word [esi + 2], ax
mov word [esi], 5
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x700
jb 0xa161d1
jmp 0xa168a4
cmp dword [ebp - 0x1c], 0
je 0xa165f3
movzx eax, word [ebp + 0x38]
test byte [eax + 0x398cf4a0], 4
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
je 0xa162eb
push 0
push eax
call fcn.00a1589f
mov ecx, dword [ebp + 0x74]
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp + 0x38]
push edi
push edi
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.00a15b9e
mov word [ebx + esi*4], 2
jmp 0xa16314
push 3
push eax
call fcn.00a1589f
mov ecx, dword [ebp + 0x74]
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp + 0x38]
push edi
push edi
lea eax, [ecx + eax*2 + 0x600]
push eax
push ecx
call fcn.00a15b9e
mov word [ebx + esi*4], di
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x38]
inc esi
test byte [eax + 0x398cf4a0], 4
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
movzx eax, word [ebp + 0x38]
mov ecx, dword [ebp + 0x74]
push 0
lea edx, [ebp + 0x58]
push edx
push edi
push edi
lea eax, [ecx + eax*2]
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
mov word [ebx + esi*4], 2
push dword [ebp + 0x74]
inc esi
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
mov word [ebx + esi*4], 5
push dword [ebp + 0x74]
inc esi
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x38]
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 + 0x398cf4a0], 4
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
je 0xa163d3
push 0
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
jmp 0xa163f3
push 3
push eax
call fcn.00a1589f
mov ecx, dword [ebp + 0x74]
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp + 0x38]
push edi
push edi
lea eax, [ecx + eax*2 + 0x600]
push eax
push ecx
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x38]
mov word [ebx + esi*4], 4
inc esi
test byte [eax + 0x398cf4a0], 4
lea eax, [ebp + 0x58]
je 0xa1643b
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [ebx + esi*4], 4
jmp 0xa1645b
mov ecx, dword [ebp + 0x74]
push 0
push eax
movzx eax, word [ebp + 0x38]
push edi
push edi
lea eax, [ecx + eax*2 + 0x600]
push eax
push ecx
call fcn.00a15b9e
mov word [ebx + esi*4], 0x9804
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
inc esi
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00a15b9e
push 0
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
mov word [ebx + esi*4], 0xa000
push dword [ebp + 0x74]
lea esi, [ebx + esi*4 + 4]
call fcn.00a15b9e
and word [esi], 0
mov word [esi + 2], ax
mov dword [ebp - 0x20], 0x600
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
movzx eax, dh
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, dl
add edx, 0xfffffa00
mov dword [ebp - 0x14], edx
movzx ecx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0xa165df
movzx esi, ax
add esi, dword [ebp - 0x24]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0xa1658e
dec eax
dec eax
je 0xa1655e
sub eax, 4
je 0xa1654c
push 0
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00a14df2
test ax, ax
mov dword [ebp - 0x10], eax
jne 0xa1651a
mov dword [ebp - 0x10], edi
movzx edx, word [ebp + 0x38]
test byte [edx + 0x398cf4a0], 4
jne 0xa1658e
lea eax, [ebp + 0x58]
push eax
push 3
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
mov eax, dword [ebp + 0x74]
push edi
push edi
lea ecx, [eax + edx*2 + 0x600]
push ecx
push eax
jmp 0xa165c9
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0xa165df
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
lea esi, [ebx + esi*4]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [esi + 2], ax
mov word [esi], 5
jmp 0xa165df
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00a14df2
test ax, ax
mov dword [ebp - 0x10], eax
jne 0xa165ac
mov dword [ebp - 0x10], 2
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.00a15b9e
mov word [esi + 2], ax
mov eax, dword [ebp - 0x10]
and ax, 0x7ff
mov word [esi], ax
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x700
jb 0xa164b4
jmp 0xa168a4
lea eax, [ebp + 0x58]
push eax
push 2
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
movzx eax, word [ebp + 0x38]
mov ecx, dword [ebp + 0x74]
push 0
lea edx, [ebp + 0x58]
push edx
push edi
lea eax, [ecx + eax*2 + 0x400]
push edi
push eax
push ecx
mov dword [ebp - 0x1c], eax
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
mov word [ebx + esi*4], di
push eax
inc esi
call fcn.00a1589f
movzx eax, word [ebp + 0x38]
mov ecx, dword [ebp + 0x74]
push 0
lea edx, [ebp + 0x58]
push edx
push edi
lea eax, [ecx + eax*2 + 0x200]
push edi
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
mov word [ebx + esi*4], 2
push eax
inc esi
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
mov word [ebx + esi*4], 5
push eax
inc esi
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00a15b9e
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 + 0x58]
mov word [ebx + esi*4], 0x6003
inc esi
push eax
push 2
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push 2
lea eax, [ebp + 0x38]
mov word [ebx + esi*4], 4
push eax
inc esi
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
mov word [ebx + esi*4], 0x9804
push eax
inc esi
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [ebx + esi*4 + 2], ax
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
mov word [ebx + esi*4], 0xa000
push eax
inc esi
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
lea esi, [ebx + esi*4]
push dword [ebp + 0x74]
call fcn.00a15b9e
and word [esi], 0
mov word [esi + 2], ax
mov dword [ebp - 0x20], 0x600
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
movzx eax, dh
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, dl
add edx, 0xfffffa00
mov dword [ebp - 0x14], edx
movzx ecx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0xa16895
movzx esi, ax
add esi, dword [ebp - 0x24]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0xa16845
dec eax
dec eax
je 0xa16816
sub eax, 4
je 0xa16807
push 0
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00a14df2
test ax, ax
mov dword [ebp - 0x10], eax
jne 0xa167eb
mov dword [ebp - 0x10], edi
lea eax, [ebp + 0x58]
push eax
push 2
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0x1c]
jmp 0xa1687c
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0xa16895
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
lea esi, [ebx + esi*4]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [esi + 2], ax
mov word [esi], 5
jmp 0xa16895
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00a14df2
test ax, ax
mov dword [ebp - 0x10], eax
jne 0xa16863
mov dword [ebp - 0x10], 2
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
lea esi, [ebx + esi*4]
call fcn.00a15b9e
mov word [esi + 2], ax
mov eax, dword [ebp - 0x10]
and ax, 0x7ff
mov word [esi], ax
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x700
jb 0xa16789
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 2]
inc dword [ebp - 0x28]
add dword [ebp - 0x18], 6
cmp dword [ebp - 0x28], eax
jl 0xa1601d
mov eax, dword [ebp - 0x2c]
and dword [ebp - 0x28], 0
cmp word [eax + 2], 0
jbe 0xa16e6f
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 4]
mov si, word [ecx]
add eax, dword [ebp - 0x2c]
push 0x10
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0x38]
push ecx
movzx ecx, si
push ecx
push eax
push dword [ebp + 0x74]
mov dword [ebp - 0x20], eax
call fcn.00a15c4a
test eax, eax
je 0xa16e58
push 2
pop eax
cmp si, ax
mov dword [ebp - 0x10], eax
jb 0xa16e58
mov eax, dword [ebp - 0x34]
and al, 3
neg al
sbb eax, eax
neg eax
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
movzx edi, word [ebp - 0x10]
push edi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00a14df2
movzx esi, ax
mov eax, dword [ebp + 0x74]
imul esi, dword [eax + 0x818]
push edi
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x18], esi
call fcn.00a14ec6
test eax, eax
je 0xa16a55
mov ax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp ax, word [ecx]
lea eax, [ebp + 0x58]
push 0
push eax
lea eax, [ebp + 0x38]
jne 0xa169e1
push 1
push edi
push eax
call fcn.00a158c4
mov eax, dword [ebp - 0xc]
add eax, 2
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea esi, [ebx + esi*4]
push 1
lea eax, [ebp + 0x58]
push eax
push edi
push 1
push dword [ebp - 0x18]
push dword [ebp + 0x74]
call fcn.00a15b9e
mov cx, word [esi]
mov word [esi + 2], ax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x14], 4
lea eax, [eax + 0x399190c8]
xor cx, word [eax]
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 - 0x14], 0x24
jb 0xa1698c
jmp 0xa16e45
push 0
push edi
push eax
call fcn.00a158c4
lea esi, [ebx + esi*4]
xor edi, edi
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00a157dc
test eax, eax
jne 0xa16a45
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [esi + 2], ax
lea eax, [edi + 0x399190c8]
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 0xa169ef
jmp 0xa16e45
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax]
lea eax, [edi + edi]
mov dword [ebp - 0x1c], eax
xor esi, esi
mov si, word [ebp + eax + 0x36]
movzx eax, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x20]
sub eax, edi
movzx eax, word [ecx + eax*2]
push eax
push esi
push dword [ebp + 0x74]
call fcn.00a15808
movzx edx, si
test byte [edx + 0x398cf4a0], 6
mov dword [ebp - 0x24], eax
je 0xa16aa3
mov ax, word [ebp - 0x14]
cmp word [ebp - 0x10], ax
jne 0xa16aa3
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
shr ecx, 2
lea esi, [ebp + 0x18]
lea edi, [ebp - 8]
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 - 0x1c]
mov word [ebp + ecx - 0xa], ax
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
xor edi, edi
cmp word [ebp - 0x10], ax
mov eax, dword [ebp - 0x18]
lea esi, [ebx + eax*4]
jne 0xa16d08
cmp word [ebp - 0x24], 1
jne 0xa16bb8
movzx eax, word [edi + 0x39919116]
sub eax, 0
je 0xa16b77
dec eax
je 0xa16b3f
dec eax
jne 0xa16ba4
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push 0
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.00a158c4
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00a157dc
test eax, eax
jne 0xa16ba4
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp + 0x18]
jmp 0xa16b68
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push 1
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.00a158c4
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push 1
add eax, 2
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [esi + 2], ax
jmp 0xa16b7c
and word [esi + 2], 0
mov cx, word [esi]
lea eax, [edi + 0x39919114]
xor cx, word [eax]
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 0xa16af0
jmp 0xa16e45
mov dword [ebp - 0x18], edi
movzx eax, word [edi + 0x399190f2]
sub eax, 0
je 0xa16cc4
dec eax
je 0xa16c84
dec eax
jne 0xa16cf1
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x58]
push eax
push 3
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
xor edx, edx
inc edx
cmp dword [ebp - 0x14], 2
jbe 0xa16c23
lea eax, [ebp + 0x3a]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
dec dword [ebp - 0x14]
lea eax, [ebp + edx + 0x58]
push eax
push 2
push dword [ebp - 0x18]
call fcn.00a1589f
add dword [ebp - 0x18], 2
inc edx
dec dword [ebp - 0x1c]
jne 0xa16c07
cmp dword [ebp - 0x14], 1
jbe 0xa16c50
lea eax, [ebp + edx + 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
dec eax
lea edx, [ebp + edx*2 + 0x38]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push 1
push edx
call fcn.00a1589f
inc dword [ebp - 0x18]
inc edx
inc edx
dec dword [ebp - 0x1c]
jne 0xa16c3b
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00a157dc
test eax, eax
jne 0xa16cf1
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [esi + 2], ax
jmp 0xa16cc9
movzx edi, word [ebp - 0x10]
push 1
lea eax, [ebp + 0x58]
push eax
push 1
push edi
lea eax, [ebp + 0x38]
push eax
call fcn.00a158c4
push 0
lea eax, [ebp + 0x58]
push eax
mov eax, dword [ebp - 0xc]
push edi
push 1
add eax, 2
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
mov edi, dword [ebp - 0x18]
mov word [esi + 2], ax
mov eax, dword [ebp - 0x18]
lea eax, [eax + 0x399190f0]
jmp 0xa16ccf
and word [esi + 2], 0
lea eax, [edi + 0x399190f0]
mov cx, word [esi]
xor cx, word [eax]
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
mov dword [ebp - 0x18], edi
jb 0xa16bbb
jmp 0xa16e45
movzx eax, word [edi + 0x39919116]
sub eax, 0
je 0xa16e09
dec eax
je 0xa16dc3
dec eax
jne 0xa16e36
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x58]
push eax
push 3
lea eax, [ebp + 0x38]
push eax
call fcn.00a1589f
xor edx, edx
inc edx
cmp dword [ebp - 0x14], 2
jbe 0xa16d70
lea eax, [ebp + 0x3a]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
dec dword [ebp - 0x14]
lea eax, [ebp + edx + 0x58]
push eax
push 2
push dword [ebp - 0x18]
call fcn.00a1589f
add dword [ebp - 0x18], 2
inc edx
dec dword [ebp - 0x1c]
jne 0xa16d54
mov eax, dword [ebp - 0x14]
cmp eax, 1
jbe 0xa16d9c
lea ecx, [ebp + edx + 0x58]
dec eax
mov dword [ebp - 0x18], ecx
lea edx, [ebp + edx*2 + 0x38]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push 1
push edx
call fcn.00a1589f
inc dword [ebp - 0x18]
inc edx
inc edx
dec dword [ebp - 0x1c]
jne 0xa16d87
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00a157dc
test eax, eax
jne 0xa16e36
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp + 0x18]
jmp 0xa16dfa
push 0
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push 0
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.00a158c4
xor eax, eax
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00a157dc
test eax, eax
jne 0xa16e36
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x74]
call fcn.00a15b9e
mov word [esi + 2], ax
jmp 0xa16e0e
and word [esi + 2], 0
mov cx, word [esi]
lea eax, [edi + 0x39919114]
xor cx, word [eax]
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 0xa16d08
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 0x10]
cmp cx, word [eax]
jbe 0xa16927
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 2]
inc dword [ebp - 0x28]
add dword [ebp - 0xc], 6
cmp dword [ebp - 0x28], eax
jl 0xa168d3
mov ecx, dword [ebp + 0x68]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0097b675
add ebp, 0x6c
leave
ret 0xc