Function at 0x4473b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x62bdb8]
push ebx
cdq
and edx, 7
push ebp
add eax, edx
push esi
mov ebx, eax
mov eax, dword [0x62bdbc]
cdq
and edx, 7
push edi
add eax, edx
sar ebx, 3
sar eax, 3
imul ebx, eax
mov eax, ebx
mov dword [esp + 0x10], ebx
shl eax, 4
push eax
call fcn.00496b60
mov ecx, dword [0x62bdb8]
mov edx, dword [0x62bd84]
mov dword [esp + 0x18], eax
mov eax, ecx
mov dword [esp + 0x38], edx
mov edi, dword [0x62bdbc]
cdq
and edx, 7
add esp, 4
add eax, edx
xor ebp, ebp
sar eax, 3
test eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ebp
jle 0x4474d9
mov eax, edi
xor esi, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jle 0x4474bd
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebp
shl ecx, 4
lea ebx, [eax*8]
lea ecx, [ecx + edx + 8]
lea eax, [esi*8]
mov dword [ecx - 8], eax
mov dword [ecx - 4], ebx
mov eax, dword [0x62bdd0]
add ecx, 0x10
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
mov eax, dword [eax + 0x62c040]
mov dword [0x62bdd0], edx
mov edi, dword [edx + 0x62c040]
xor edi, eax
and eax, 0x1f
add eax, 0x20
mov dword [edx + 0x62c040], edi
mov dword [ecx - 0x10], eax
mov edi, dword [0x62bdbc]
mov eax, edi
inc ebp
cdq
and edx, 7
inc esi
add eax, edx
sar eax, 3
cmp esi, eax
jl 0x447452
mov ecx, dword [0x62bdb8]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, ecx
cdq
and edx, 7
inc esi
add eax, edx
mov dword [esp + 0x18], esi
sar eax, 3
cmp esi, eax
jl 0x447425
call fcn.0045fcf0
mov dword [esp + 0x28], 0
call fcn.0048de10
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x62bdbc]
cmp ecx, eax
jne 0x44778e
mov ecx, dword [esp + 0x30]
mov eax, dword [0x62bdb8]
cmp eax, ecx
jne 0x44778e
mov edx, dword [esp + 0x34]
mov eax, dword [0x62bd84]
cmp eax, edx
jne 0x44778e
push 0
call fcn.00461110
add esp, 4
test al, al
je 0x44774a
xor esi, esi
test ebx, ebx
mov dword [esp + 0x18], esi
jle 0x447739
mov eax, dword [esp + 0x14]
mov ecx, dword [0x62bdbc]
lea ebx, [eax + 8]
mov dword [esp + 0x24], ebx
jmp 0x447556
mov esi, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
jbe 0x447565
dec eax
mov dword [ebx], eax
mov ecx, dword [0x62bdbc]
mov eax, dword [ebx]
cmp eax, 0x20
jae 0x44757c
cmp eax, 1
jbe 0x44757c
add eax, 0xfffffffe
mov dword [ebx], eax
mov ecx, dword [0x62bdbc]
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 3
sub edx, eax
cmp esi, edx
jge 0x4475ef
mov edx, dword [esp + 0x14]
add eax, esi
shl eax, 4
lea eax, [eax + edx + 8]
cmp dword [eax], 0
jne 0x4475ef
mov ecx, dword [ebx]
inc ecx
mov dword [eax], ecx
mov dword [ebx], 0
mov eax, dword [ebx - 4]
mov ecx, dword [0x62bdbc]
imul eax, ecx
mov esi, dword [ebx - 8]
mov edx, dword [0x580064]
add eax, esi
mov esi, 8
add eax, edx
lea edx, [eax + ecx*8]
mov ecx, dword [eax]
mov edi, eax
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov ecx, dword [0x62bdbc]
add eax, ecx
add edx, ecx
dec esi
jne 0x4475cf
mov edx, dword [ebx - 4]
mov esi, dword [ebx - 8]
mov eax, edx
imul edx, dword [0x62bdc0]
imul eax, ecx
mov ecx, dword [0x580064]
add eax, esi
add eax, ecx
mov ecx, dword [0x62bd80]
shl esi, cl
mov ecx, dword [0x62bdc4]
add ecx, esi
add edx, ecx
mov ecx, dword [ebx]
test ecx, ecx
mov ebp, edx
jne 0x447658
mov edx, 8
mov ecx, dword [0x62bd84]
xor eax, eax
mov esi, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x62bdc0]
add ebp, ecx
dec edx
jne 0x44762a
mov ecx, dword [0x62bdbc]
jmp 0x44771b
cmp ecx, 0x20
jle 0x447662
mov ecx, 0x20
cmp dword [0x62bd84], 0x10
jne 0x4476e0
shl ecx, 8
mov esi, ecx
mov dword [esp + 0x20], 8
mov ecx, ebp
mov dword [esp + 0x1c], 4
xor edx, edx
xor edi, edi
mov dl, byte [eax + 1]
xor ebx, ebx
add edx, esi
add ecx, 4
add eax, 2
mov di, word [edx*2 + 0x60ee80]
xor edx, edx
mov dl, byte [eax - 2]
add edx, esi
shl edi, 0x10
mov bx, word [edx*2 + 0x60ee80]
mov edx, dword [esp + 0x1c]
add edi, ebx
dec edx
mov dword [ecx - 4], edi
mov dword [esp + 0x1c], edx
jne 0x447682
mov edi, dword [0x62bdc0]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x62bdbc]
add ebp, edi
dec edx
lea eax, [eax + ecx - 8]
mov dword [esp + 0x20], edx
jne 0x447678
mov ebx, dword [esp + 0x24]
jmp 0x44771b
mov dword [esp + 0x20], 8
mov ecx, dword [0x62bd84]
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x62bdc0]
mov ecx, dword [0x62bdbc]
add ebp, edi
add eax, ecx
dec edx
mov dword [esp + 0x20], edx
jne 0x4476e8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
add ebx, 0x10
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
jl 0x447552
mov ebx, edx
push 0
call fcn.004611b0
push 0
call fcn.00461230
add esp, 8
call fcn.0048db60
cmp dword [0x5d3d80], eax
jne 0x447769
call fcn.0048de10
call fcn.0048db60
cmp dword [0x5d3d80], eax
je 0x447757
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0x40
mov dword [esp + 0x28], eax
jge 0x44778e
call fcn.0048de10
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x62bdbc]
cmp ecx, eax
je 0x4474fd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00496b70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret