Function at 0x473460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov edi, dword [esi + 0x28]
mov dword [esp + 0x34], edi
test edi, edi
je 0x473726
mov eax, dword [ebp + 8]
test eax, eax
je 0x473726
mov dword [esi + 0x414], eax
xorps xmm0, xmm0
mov eax, dword [edi + 8]
movlpd qword [esp + 0x28], xmm0
cmp eax, dword [edi + 0x10]
jne 0x4734af
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x14]
je 0x473726
mov eax, dword [esi + 0x418]
mov dword [esi + 0x41c], eax
mov ebx, dword [edi + 8]
mov eax, ebx
cdq
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], ebx
cmp eax, dword [edi + 0x10]
jne 0x4734d8
cmp edx, dword [edi + 0x14]
je 0x473726
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
nop dword [eax + eax]
mov ecx, dword [esi + 0x414]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x414]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
jne 0x473726
mov edi, dword [esi + 0x28]
cmp byte [esi + 8], al
jne 0x473525
mov dword [edi + 0x28], 0
xor eax, eax
mov ecx, dword [esi + 0x28]
jmp 0x47352a
mov eax, dword [edi + 0x28]
mov ecx, edi
add eax, ecx
add ebx, eax
mov eax, dword [ebx + 8]
lea edx, [ebx + 2]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [ebx + 8], 0
lea esi, [eax + 8]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
add ecx, eax
shl eax, 8
xor ecx, eax
movzx eax, byte [edx - 5]
add eax, ecx
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx - 4]
add ecx, eax
shl eax, 8
xor ecx, eax
movzx eax, byte [edx - 3]
add eax, ecx
shl ecx, 8
xor eax, ecx
sub esi, 1
jne 0x473544
mov ecx, dword [esp + 0x28]
not eax
mov esi, dword [esp + 0x20]
mov dword [ebx + 8], ecx
cmp ecx, eax
jne 0x47370e
cmp byte [esp + 0xf], 0
mov ecx, dword [esp + 0x10]
je 0x4735b2
mov eax, dword [ebx + 4]
add eax, ecx
cdq
cmp edx, dword [edi + 0xc]
ja 0x473726
jb 0x4735b2
cmp eax, dword [edi + 8]
ja 0x473726
movzx eax, word [ebx + 2]
push ecx
push dword [ebx + 4]
push eax
movzx eax, word [ebx]
push eax
push str.block_list_head:_block_max_d_count_d_bytes_d_offset_lld_n
call fcn.0040f930
add esp, 0x14
push dword [ebx + 4]
call fcn.005a59ed
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4736c6
mov eax, dword [esp + 0x10]
add eax, dword [ebx + 4]
mov esi, dword [edi + 0x1c]
cdq
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], esi
mov edx, dword [edi + 0x18]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jb 0x473675
ja 0x47360b
cmp eax, edx
jbe 0x473675
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x14]
jb 0x473700
ja 0x473625
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0x10]
jb 0x473700
sub dword [esp + 0x14], edx
mov eax, dword [ebx + 4]
cdq
mov esi, eax
mov byte [esp + 0xf], 1
sub esi, dword [esp + 0x14]
push esi
push ebx
push ecx
call fcn.00589190
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [edi + 0x28]
add eax, dword [ecx + 0x28]
push dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
add eax, esi
push eax
call fcn.00589190
mov eax, dword [edi + 0x28]
add esp, 0xc
add eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
jmp 0x47368a
mov eax, dword [ebx + 4]
push eax
push ebx
push ecx
call fcn.00589190
mov eax, dword [ebx + 4]
add esp, 0xc
add dword [esp + 0x10], eax
push dword [edi + 0x20]
mov edi, dword [esp + 0x2c]
mov ecx, esi
push eax
push edi
call fcn.00473730
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x414]
mov ebx, dword [esp + 0x30]
cdq
add dword [esp + 0x24], eax
mov eax, dword [ecx]
adc ebx, edx
mov edx, dword [esp + 0x24]
push ebx
push edx
mov dword [esp + 0x38], ebx
call dword [eax + 8]
push edi
call fcn.005a51fb
add esp, 4
mov edi, dword [esi + 0x38c]
mov ebx, dword [esp + 0x10]
add edi, 0xffffffe0
mov ecx, dword [esi + 0x390]
mov eax, ebx
cdq
adc ecx, 0xffffffff
cmp edx, ecx
ja 0x473707
jb 0x4736e9
cmp eax, edi
jae 0x473707
mov edi, dword [esp + 0x34]
cmp eax, dword [edi + 0x10]
jne 0x4734f0
cmp edx, dword [edi + 0x14]
je 0x473726
jmp 0x4734f0
push str.start___end._n
jmp 0x473713
push str.block_list_header_is_end._n
jmp 0x473713
push str.block_list_header_checksum_is_error._n
call fcn.0040f930
mov ecx, dword [esi + 0x414]
add esp, 4
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4