Function at 0x452a20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
movzx eax, byte [edi + 0x1b6]
push ebx
mov ebx, dword [edi]
test dword [ebx + 0xc], 0x400000
push ebp
push esi
mov dword [esp + 0x24], eax
je 0x452f17
cmp dword [edi + 0xc], 0
jne 0x452a61
mov eax, ebx
call fcn.00429be0
test eax, eax
mov dword [edi + 0xc], eax
je 0x452a61
push 0x84
call fcn.00429e10
add esp, 4
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x44]
test edx, edx
mov dword [esp + 0x10], 0xfff0bdc0
je 0x452a9f
cmp dword [ebx + 4], 0
mov dword [esp + 0x10], 0
jle 0x452a9f
mov eax, dword [ebx + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x452a9f
mov ecx, dword [esp + 0x10]
add ecx, 1
add eax, 0x10
cmp ecx, dword [ebx + 4]
mov dword [esp + 0x10], ecx
jl 0x452a88
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
mov ebp, dword [esi + 0x24]
shl ecx, 4
mov eax, dword [ecx + edx]
xor edx, edx
cmp ebp, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], ebp
je 0x452ca5
jmp 0x452ad8
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
cmp byte [edi + 0x1b6], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
push eax
je 0x452afd
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.00424d60
add esp, 0xc
jmp 0x452b0b
mov ecx, dword [ebp + 8]
push ecx
push edx
push edi
call fcn.00424e70
add esp, 0x10
mov esi, eax
test esi, esi
je 0x452c7b
lea edx, [esp + 0x18]
push edx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
call fcn.004516c0
add esp, 0x10
test eax, eax
jne 0x452c7b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x452b3f
mov dword [esp + 0x14], eax
jmp 0x452b50
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov eax, ecx
mov edx, dword [esp + 0xc]
xor ebp, ebp
cmp dword [edx + 0x14], ebp
jle 0x452bc8
jmp 0x452b60
mov ecx, dword [eax + ebp*4]
mov edx, dword [esp + 0x34]
cmp ecx, dword [edx + 8]
jne 0x452b73
mov dword [eax + ebp*4], 0xffffffff
cmp dword [ebx + 0xf8], 0
je 0x452bbc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x452b8c
mov eax, dword [eax + 8]
mov eax, dword [eax + ebp*4]
jmp 0x452b8f
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
push ecx
push eax
push edx
mov eax, edi
call fcn.004414f0
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [esp + 0x14]
sete cl
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xc]
add ebp, 1
cmp ebp, dword [edx + 0x14]
jl 0x452b60
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov ebp, dword [esp + 0x10]
push eax
push 0
push ecx
push ebp
mov eax, edi
call fcn.00424740
mov eax, dword [esp + 0x48]
add dword [edi + 0x44], 1
add esp, 0x10
test eax, eax
je 0x452c0f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
push esi
push ebp
push edi
call fcn.00451940
add esp, 0x24
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x452c39
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
push ebp
push edi
call fcn.00451940
add esp, 0x24
mov eax, dword [esp + 0x20]
test eax, eax
je 0x452c6c
cmp eax, dword [ebx + 0xf0]
jb 0x452c6c
cmp eax, dword [ebx + 0xf4]
jae 0x452c6c
mov edx, dword [ebx + 0xec]
mov ebp, dword [esp + 0xc]
mov dword [eax], edx
add dword [ebx + 0xe4], 0xffffffff
mov dword [ebx + 0xec], eax
jmp 0x452c90
push eax
call fcn.0040f3f0
mov ebp, dword [esp + 0x10]
add esp, 4
jmp 0x452c90
cmp dword [esp + 0x24], 0
je 0x452f17
cmp byte [ebx + 0x1e], 0
jne 0x452f17
mov ebp, dword [ebp + 4]
xor edx, edx
test ebp, ebp
mov dword [esp + 0xc], ebp
jne 0x452ad0
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 4]
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov eax, ecx
jne 0x452cb6
xor eax, eax
jmp 0x452ccf
cmp byte [ecx], 0
je 0x452cc8
jmp 0x452cc0
add eax, 1
cmp byte [eax], 0
jne 0x452cc0
sub eax, ecx
and eax, 0x3fffffff
mov esi, dword [esi + 0x44]
add esi, 0x34
cmp dword [esi + 0xc], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
je 0x452d21
mov ebp, eax
xor eax, eax
test ebp, ebp
mov edx, ecx
jle 0x452d17
lea ecx, [ecx]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x4c7848]
lea esi, [eax*8]
xor ecx, esi
sub ebp, 1
xor eax, ecx
add edx, 1
test ebp, ebp
jg 0x452cf0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
xor edx, edx
div dword [esi]
mov eax, dword [esp + 0x20]
jmp 0x452d23
xor edx, edx
push eax
push ecx
mov ecx, esi
call fcn.00412ae0
add esp, 8
test eax, eax
je 0x452f17
mov ebp, dword [eax + 8]
xor esi, esi
cmp ebp, esi
je 0x452f17
cmp byte [ebp + 0x18], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
jne 0x452d67
cmp dword [edi + 0x1a8], esi
jne 0x452d67
cmp byte [edi + 0x158], 0
je 0x452f0c
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
push ebp
push eax
push edi
lea eax, [esp + 0x28]
call fcn.004516c0
add esp, 0x10
test eax, eax
je 0x452d9c
cmp dword [esp + 0x24], esi
je 0x452f17
cmp byte [ebx + 0x1e], 0
jne 0x452f17
jmp 0x452f0c
cmp byte [ebx + 0x1e], 0
jne 0x452ed2
cmp byte [ebx + 0xe2], 0
je 0x452de8
cmp word [ebx + 0xe0], 0x40
jb 0x452de8
mov esi, dword [ebx + 0xec]
test esi, esi
je 0x452de8
mov ecx, dword [esi]
add dword [ebx + 0xe4], 1
mov eax, dword [ebx + 0xe4]
cmp eax, dword [ebx + 0xe8]
mov dword [ebx + 0xec], ecx
jle 0x452dfc
mov dword [ebx + 0xe8], eax
jmp 0x452dfc
push 0x40
call fcn.0040f120
add esp, 4
test eax, eax
jne 0x452dfa
mov byte [ebx + 0x1e], 1
mov esi, eax
test esi, esi
je 0x452ed2
push 0x40
push 0
push esi
call fcn.004858f0
mov word [esi + 2], 1
movsx edx, word [esi]
add esp, 0xc
push edx
push 1
push esi
push ebx
call fcn.00428ca0
add esp, 0x10
cmp byte [ebx + 0x1e], 0
mov esi, eax
jne 0x452ec7
movsx eax, word [esi]
lea ecx, [eax*8]
sub ecx, eax
mov dword [esi + ecx*8 - 0x2c], 0
mov dword [esi + ecx*8 - 0x30], 0
mov edx, dword [ebp]
lea eax, [esi + ecx*8 - 0x30]
mov dword [esi + 0x14], edx
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov eax, edx
mov ecx, 1
add word [eax + 0x20], cx
mov edx, dword [edi + 0x44]
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], edx
add dword [edi + 0x44], ecx
test eax, eax
je 0x452e9b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x20]
push eax
push ebp
push ecx
push edx
push esi
push edi
call fcn.004520d0
add esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x452ec0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ebp
push ecx
push edx
push esi
push edi
call fcn.004520d0
add esp, 0x20
mov dword [esi + 0xc], 0
push esi
mov eax, ebx
call fcn.00428ee0
add esp, 4
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x452f03
cmp eax, dword [ebx + 0xf0]
jb 0x452f03
cmp eax, dword [ebx + 0xf4]
jae 0x452f03
mov ecx, dword [ebx + 0xec]
mov dword [eax], ecx
add dword [ebx + 0xe4], 0xffffffff
mov dword [ebx + 0xec], eax
jmp 0x452f0c
push eax
call fcn.0040f3f0
add esp, 4
mov ebp, dword [ebp + 0xc]
cmp ebp, esi
jne 0x452d44
pop esi
pop ebp
pop ebx
add esp, 0x24
ret