Function at 0x473100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [ebx + 0x28]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4733db
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4733db
mov dword [ebx + 0x414], ecx
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 0xc]
cmp edx, edi
jne 0x47314a
cmp esi, eax
je 0x4733db
cmp eax, esi
jb 0x47317c
ja 0x473154
cmp edi, edx
jbe 0x47317c
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x18]
cdq
sub edi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
sbb ecx, edx
sub edi, dword [eax + 0x10]
mov edx, ecx
mov ecx, dword [ebp + 8]
sbb edx, dword [eax + 0x14]
add edi, dword [eax + 8]
adc edx, esi
jmp 0x47318d
mov ebx, dword [esp + 0x14]
mov edi, edx
mov edx, esi
sub edi, dword [ebx + 0x10]
mov ebx, dword [esp + 0x1c]
sbb edx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], edi
test edx, edx
jl 0x4733db
jg 0x4731a7
test edi, edi
je 0x4733db
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 0x14]
push edi
call fcn.00560596
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4733db
push edi
push 0
push eax
call fcn.00588800
mov edx, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x20], eax
cmp dword [edx + 0x14], esi
jb 0x47322b
ja 0x4731eb
cmp ecx, eax
jbe 0x47322b
mov esi, dword [edx + 0x18]
mov eax, dword [edx + 0x28]
sub esi, ecx
mov edi, dword [esp + 0x20]
cdq
sub edi, eax
mov eax, dword [ebx + 0x28]
push esi
add eax, ecx
push eax
push dword [esp + 0x18]
call fcn.00589190
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0x28]
add eax, dword [ebx + 0x28]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
call fcn.00589190
mov esi, dword [esp + 0x1c]
jmp 0x47323c
mov eax, dword [ebx + 0x28]
mov esi, dword [esp + 0x10]
add eax, ecx
push edi
push eax
push esi
call fcn.00589190
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x18]
xor edi, edi
mov eax, edx
sub eax, 0x200
mov dword [esp + 0x28], eax
sbb ecx, edi
mov dword [esp + 0x20], ecx
js 0x4733bb
jg 0x473270
test eax, eax
je 0x4733bb
nop word [eax + eax]
mov ecx, dword [ebx + 0x414]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x414]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
jne 0x4733db
add esi, edi
mov eax, 0x17ff
cmp word [esi], ax
je 0x4732a6
add edi, 0x200
jmp 0x47339a
mov eax, dword [esi + 8]
lea edx, [esi + 2]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esi + 8], 0
lea ebx, [ecx + 8]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
add eax, ecx
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx - 5]
add ecx, eax
shl eax, 8
xor ecx, eax
movzx eax, byte [edx - 4]
add eax, ecx
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx - 3]
add ecx, eax
shl eax, 8
xor ecx, eax
sub ebx, 1
jne 0x4732c0
mov eax, dword [esp + 0x24]
not ecx
mov dword [esi + 8], eax
cmp eax, ecx
je 0x473310
mov ebx, dword [esp + 0x1c]
add edi, 0x200
jmp 0x47339a
mov ecx, dword [esi + 4]
lea eax, [ecx + edi]
cdq
cmp edx, dword [esp + 0x18]
jg 0x4733b7
jl 0x47332d
cmp eax, dword [esp + 0xc]
ja 0x4733b7
movzx eax, word [esi + 2]
push edi
push ecx
push eax
push 0x17ff
push str.Expired_block_list_head:_block_max_d_count_d_bytes_d_offset_lld_n
call fcn.0040f930
mov eax, dword [esp + 0x28]
add esp, 0x14
movzx edx, word [esi + 2]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
cmp edx, 1
jbe 0x47336a
lea eax, [esi + 0x28]
dec edx
nop dword [eax]
add ecx, dword [eax]
lea eax, [eax + 0x10]
sub edx, 1
jne 0x473360
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x473384
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
push eax
push esi
call fcn.00473730
mov eax, dword [esi + 4]
jmp 0x473388
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x414]
add edi, eax
mov eax, edi
cdq
push edx
mov esi, dword [ecx]
push eax
call dword [esi + 8]
mov esi, dword [esp + 0x10]
mov eax, edi
cdq
cmp edx, dword [esp + 0x20]
jl 0x473270
jg 0x4733b7
cmp eax, dword [esp + 0x28]
jb 0x473270
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x18]
push edx
mov ecx, dword [ecx + 0x414]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esp + 0x10]
call fcn.00560591
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4