Function at 0x53217d
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa0
mov eax, dword [0x39985000]
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 + 0x820]
mov ebx, dword [eax + 0x810]
push edi
xor edi, edi
inc edi
cmp word [ecx + 2], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jbe 0x532a63
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.00531e0b
test eax, eax
je 0x532a4c
mov eax, dword [ebp - 0x1c]
mov ax, word [esi + eax*2 - 2]
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
and eax, 3
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.005310ba
movzx esi, ax
mov eax, dword [ebp + 0x74]
imul esi, dword [eax + 0x81c]
push edi
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x24], esi
call fcn.0053118e
test eax, eax
je 0x53244e
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531d5f
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.00531d5f
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.00531d5f
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.00531d5f
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.00531d5f
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.00531d5f
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.00531d5f
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.00531d5f
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
mov cx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0x53243a
movzx esi, ax
add esi, dword [ebp - 0x24]
movzx eax, cx
shr eax, 0xa
cmp eax, 4
je 0x53241a
push edi
cmp eax, 8
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
je 0x532404
call fcn.005310ba
test ax, ax
mov dword [ebp - 0x10], eax
jne 0x5323de
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.00531d5f
mov word [esi + 2], ax
mov eax, dword [ebp - 0x10]
and ah, 7
mov word [esi], ax
jmp 0x53243a
call fcn.005310ba
test ax, ax
mov dword [ebp - 0x10], eax
jne 0x5323de
mov dword [ebp - 0x10], 5
jmp 0x5323de
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.00531d5f
mov word [esi + 2], ax
mov word [esi], 5
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x700
jb 0x53237c
jmp 0x532a4c
cmp dword [ebp - 0x1c], 0
je 0x53279c
movzx eax, word [ebp + 0x38]
test byte [eax + 0x39812fb8], 4
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
je 0x532495
push 0
push eax
call fcn.00531a49
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.00531d5f
mov word [ebx + esi*4], 2
jmp 0x5324be
push 3
push eax
call fcn.00531a49
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.00531d5f
mov word [ebx + esi*4], di
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x38]
inc esi
test byte [eax + 0x39812fb8], 4
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.00531a49
mov ecx, dword [ebp + 0x74]
movzx eax, word [ebp + 0x38]
push 0
lea edx, [ebp + 0x58]
push edx
push edi
lea eax, [ecx + eax*2]
push edi
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00531d5f
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.00531d5f
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.00531d5f
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 + 0x39812fb8], 4
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
je 0x53257d
push 0
push eax
call fcn.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
jmp 0x53259d
push 3
push eax
call fcn.00531a49
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.00531d5f
mov word [ebx + esi*4 + 2], ax
movzx eax, word [ebp + 0x38]
mov word [ebx + esi*4], 4
inc esi
test byte [eax + 0x39812fb8], 4
lea eax, [ebp + 0x58]
je 0x5325e5
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00531d5f
mov word [ebx + esi*4], 4
jmp 0x532605
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.00531d5f
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.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531d5f
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
mov cx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0x532788
movzx esi, ax
add esi, dword [ebp - 0x24]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0x532738
dec eax
dec eax
je 0x532708
sub eax, 4
je 0x5326f6
push 0
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.005310ba
test ax, ax
mov dword [ebp - 0x10], eax
jne 0x5326c4
mov dword [ebp - 0x10], edi
movzx edx, word [ebp + 0x38]
test byte [edx + 0x39812fb8], 4
jne 0x532738
lea eax, [ebp + 0x58]
push eax
push 3
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
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 0x532773
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0x532788
lea eax, [ebp + 0x58]
push eax
push 0
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
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.00531d5f
mov word [esi + 2], ax
mov word [esi], 5
jmp 0x532788
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.005310ba
test ax, ax
mov dword [ebp - 0x10], eax
jne 0x532756
mov dword [ebp - 0x10], 2
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.00531a49
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.00531d5f
mov word [esi + 2], ax
mov eax, dword [ebp - 0x10]
and ah, 7
mov word [esi], ax
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x700
jb 0x53265e
jmp 0x532a4c
lea eax, [ebp + 0x58]
push eax
push 2
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
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.00531d5f
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.00531a49
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.00531d5f
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.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x74]
call fcn.00531d5f
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.00531a49
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.00531d5f
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
mov cx, word [esi + ecx*2]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jb 0x532a3d
movzx esi, ax
add esi, dword [ebp - 0x24]
movzx eax, cx
shr eax, 0xa
dec eax
dec eax
je 0x5329ee
dec eax
dec eax
je 0x5329bf
sub eax, 4
je 0x5329b0
push 0
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.005310ba
test ax, ax
mov dword [ebp - 0x10], eax
jne 0x532994
mov dword [ebp - 0x10], edi
lea eax, [ebp + 0x58]
push eax
push 2
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
push 0
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push dword [ebp - 0x1c]
jmp 0x532a25
lea esi, [ebx + esi*4]
and word [esi + 2], 0
mov word [esi], 0x6003
jmp 0x532a3d
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
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.00531d5f
mov word [esi + 2], ax
mov word [esi], 5
jmp 0x532a3d
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.005310ba
test ax, ax
mov dword [ebp - 0x10], eax
jne 0x532a0c
mov dword [ebp - 0x10], 2
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x38]
push eax
call fcn.00531a49
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.00531d5f
mov word [esi + 2], ax
mov eax, dword [ebp - 0x10]
and ah, 7
mov word [esi], ax
inc dword [ebp - 0x20]
cmp word [ebp - 0x20], 0x700
jb 0x532932
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 0x5321c8
mov eax, dword [ebp - 0x2c]
and dword [ebp - 0x28], 0
cmp word [eax + 2], 0
jbe 0x532ff1
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.00531e0b
test eax, eax
je 0x532fda
push 2
pop eax
cmp si, ax
mov dword [ebp - 0x10], eax
jb 0x532fda
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.005310ba
movzx esi, ax
mov eax, dword [ebp + 0x74]
imul esi, dword [eax + 0x81c]
push edi
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x18], esi
call fcn.0053118e
test eax, eax
je 0x532bf3
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 0x532b85
push 1
push edi
push eax
call fcn.00531a6e
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.00531d5f
mov word [esi + 2], ax
mov eax, dword [ebp - 0x14]
lea eax, [eax + 0x398131b4]
mov cx, word [eax]
xor cx, word [esi]
add dword [ebp - 0x14], 4
and ch, 7
xor word [esi], cx
mov cx, word [esi]
mov dx, word [eax]
xor dx, cx
and dh, 7
xor dx, word [eax]
mov word [esi], dx
add esi, 4
cmp dword [ebp - 0x14], 0x24
jb 0x532b34
jmp 0x532fc7
push 0
push edi
push eax
call fcn.00531a6e
lea esi, [ebx + esi*4]
xor edi, edi
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00531986
test eax, eax
jne 0x532be3
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.00531d5f
mov word [esi + 2], ax
lea eax, [edi + 0x398131b4]
mov cx, word [eax]
xor cx, word [esi]
and ch, 7
xor word [esi], cx
mov cx, word [esi]
mov dx, word [eax]
xor dx, cx
and dh, 7
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
jb 0x532b93
jmp 0x532fc7
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
lea eax, [edi + edi]
mov si, word [ebp + eax + 0x36]
mov dword [ebp - 0x1c], eax
movzx eax, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x20]
sub eax, edi
mov ax, word [ecx + eax*2]
push eax
push esi
push dword [ebp + 0x74]
call fcn.005319b2
movzx edx, si
test byte [edx + 0x39812fb8], 6
mov dword [ebp - 0x24], eax
je 0x532c3d
mov ax, word [ebp - 0x14]
cmp word [ebp - 0x10], ax
jne 0x532c3d
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 0x532e96
cmp word [ebp - 0x24], 1
jne 0x532d4c
movzx eax, word [edi + 0x398131fe]
sub eax, 0
je 0x532d0f
dec eax
je 0x532cd7
dec eax
jne 0x532d38
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.00531a6e
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00531986
test eax, eax
jne 0x532d38
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp + 0x18]
jmp 0x532d00
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.00531a6e
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.00531d5f
mov word [esi + 2], ax
jmp 0x532d14
and word [esi + 2], 0
lea eax, [edi + 0x398131fc]
mov cx, word [eax]
xor cx, word [esi]
and ch, 7
xor word [esi], cx
mov dx, word [eax]
mov cx, word [esi]
xor dx, cx
and dh, 7
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
jb 0x532c8a
jmp 0x532fc7
mov dword [ebp - 0x18], edi
movzx eax, word [edi + 0x398131da]
sub eax, 0
je 0x532e56
dec eax
je 0x532e16
dec eax
jne 0x532e7f
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.00531a49
xor edx, edx
inc edx
cmp dword [ebp - 0x14], 2
jbe 0x532db7
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.00531a49
add dword [ebp - 0x18], 2
inc edx
dec dword [ebp - 0x1c]
jne 0x532d9b
cmp dword [ebp - 0x14], 1
jbe 0x532de4
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.00531a49
inc dword [ebp - 0x18]
inc edx
inc edx
dec dword [ebp - 0x1c]
jne 0x532dcf
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00531986
test eax, eax
jne 0x532e7f
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.00531d5f
mov word [esi + 2], ax
jmp 0x532e5b
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.00531a6e
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.00531d5f
mov edi, dword [ebp - 0x18]
mov word [esi + 2], ax
mov eax, dword [ebp - 0x18]
lea eax, [eax + 0x398131d8]
jmp 0x532e61
and word [esi + 2], 0
lea eax, [edi + 0x398131d8]
mov cx, word [eax]
xor cx, word [esi]
and ch, 7
xor word [esi], cx
mov dx, word [eax]
mov cx, word [esi]
xor dx, cx
and dh, 7
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
mov dword [ebp - 0x18], edi
jb 0x532d4f
jmp 0x532fc7
movzx eax, word [edi + 0x398131fe]
sub eax, 0
je 0x532f8f
dec eax
je 0x532f4b
dec eax
jne 0x532fb8
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.00531a49
xor edx, edx
inc edx
cmp dword [ebp - 0x14], 2
jbe 0x532efe
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.00531a49
add dword [ebp - 0x18], 2
inc edx
dec dword [ebp - 0x1c]
jne 0x532ee2
mov eax, dword [ebp - 0x14]
cmp eax, 1
jbe 0x532f2a
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.00531a49
inc dword [ebp - 0x18]
inc edx
inc edx
dec dword [ebp - 0x1c]
jne 0x532f15
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00531986
test eax, eax
jne 0x532fb8
push eax
lea eax, [ebp + 0x58]
push eax
movzx eax, word [ebp - 0x10]
push eax
push eax
lea eax, [ebp + 0x18]
jmp 0x532f80
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.00531a6e
mov ax, word [esi + 2]
push eax
push dword [ebp + 0x74]
call fcn.00531986
test eax, eax
jne 0x532fb8
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.00531d5f
mov word [esi + 2], ax
jmp 0x532f94
and word [esi + 2], 0
lea eax, [edi + 0x398131fc]
mov cx, word [eax]
xor cx, word [esi]
and ch, 7
xor word [esi], cx
mov dx, word [eax]
mov cx, word [esi]
xor dx, cx
and dh, 7
xor dx, word [eax]
mov word [esi], dx
add edi, 4
add esi, 4
cmp edi, 0x24
jb 0x532e96
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 0x10]
cmp cx, word [eax]
jbe 0x532acf
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 0x532a7b
mov ecx, dword [ebp + 0x68]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0061a438
add ebp, 0x6c
leave
ret 0xc