Function at 0x452740
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov bl, byte [esp + 0x44]
mov al, bl
and al, 0xf
push esi
cmp al, 8
jne 0x452886
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x50]
shrd ecx, eax, 9
shr eax, 9
test edx, edx
je 0x45277e
and bl, 0xf0
cmp bl, 0x10
jne 0x45277e
mov esi, dword [edx]
mov edx, dword [edx + 4]
sub ecx, esi
sbb eax, edx
movzx edx, byte [esp + 0x34]
add edx, 0xfffffff8
cmp edx, 3
ja case.default.0x45278f
jmp dword [edx*4 + 0x452a90]
mov edx, dword [esp + 0x4c]
lea esi, [edx + 0x1e8]
push esi
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
push ecx
push fcn.00451f40
push fcn.00451f40
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x4c]
lea esi, [edx + 0x10b0]
push esi
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
push ecx
push fcn.00459dd0
push fcn.00459dd0
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x4c]
lea esi, [edx + 0x230]
push esi
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
push ecx
push fcn.0045e720
push fcn.0045e720
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x4c]
lea esi, [edx + 0xb0]
push esi
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
push ecx
push fcn.004615d0
push fcn.004615d0
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
push esi
push ecx
mov dword [esp + 0x54], 0
call fcn.00452170
add esp, 0xc
test eax, eax
je case.default.0x45278f
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x4c]
shr esi, 3
mov ecx, esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
xor eax, eax
shr ebp, 3
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
test bl, bl
je 0x4529fd
cmp bl, 4
jne 0x4529f3
cmp ecx, eax
mov dword [esp + 0x50], eax
jle 0x452a82
mov ebx, dword [esp + 0x54]
nop
mov eax, ebp
sub eax, 1
je 0x452983
sub eax, 1
jne 0x4529f3
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00453e0f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add dword [esp + 0x24], 0x10
push ebx
push esi
adc dword [esp + 0x30], 0
xor eax, dword [esp + 0x3c]
xor ecx, dword [esp + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
xor edx, dword [esp + 0x44]
xor eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
push esi
push ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.00452460
mov edx, dword [esp + 0x44]
xor dword [esi], edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
xor dword [esi + 4], eax
xor dword [esi + 8], ecx
xor dword [esi + 0xc], edx
add esp, 0x1c
add edi, 0x10
add esi, 0x10
jmp 0x4529d2
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004541c0
add dword [esp + 0x24], 8
mov edx, dword [edi]
mov eax, dword [edi + 4]
adc dword [esp + 0x28], 0
xor edx, dword [esp + 0x34]
xor eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
push ebx
push esi
push esi
push ecx
mov dword [esi], edx
mov dword [esi + 4], eax
call fcn.00452460
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
xor dword [esi], edx
xor dword [esi + 4], eax
add esp, 0x1c
add edi, 8
add esi, 8
mov eax, dword [esp + 0x50]
add eax, ebp
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
jl 0x452900
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
cmp ecx, eax
mov dword [esp + 0x50], eax
jle 0x452a82
sub edi, esi
mov ebx, esi
mov dword [esp + 0x14], edi
jmp 0x452a12
xor eax, eax
xor ecx, ecx
cmp ebp, eax
jle 0x452a35
lea eax, [edi + ebx]
jmp 0x452a20
mov edx, dword [eax]
xor dword [esp + ecx*8 + 0x18], edx
mov edx, dword [eax + 4]
xor dword [esp + ecx*8 + 0x1c], edx
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x452a20
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
mov edx, ecx
push edx
push eax
call fcn.00452460
add esp, 0x10
test ebp, ebp
jle 0x452a69
mov ecx, ebp
and ecx, 0x1fffffff
add ecx, ecx
lea esi, [esp + 0x18]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
add eax, ebp
lea ecx, [ebp*8]
add ebx, ecx
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
jl 0x452a10
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret