Function at 0x4529a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x4cb614]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jne 0x452a08
push 0x380
mov dword [0x4cb614], 1
call fcn.00451500
mov edi, eax
mov ecx, 0xe0
xor eax, eax
mov dword [0x4cccdc], edi
rep stosd dword es:[edi], eax
push 0x410
call fcn.00451500
mov edi, eax
mov ecx, 0x104
xor eax, eax
mov dword [0x4cce2c], edi
rep stosd dword es:[edi], eax
push 0x8000
call fcn.00451500
add esp, 0xc
mov dword [0x4cb61c], eax
call fcn.00452340
mov ebp, eax
cmp ebp, 0xffffffff
je 0x452c9e
mov ebx, dword [esp + 0x38]
test ebx, 0x80000000
je 0x452a36
and ebx, 0x7fffffff
mov dword [esp + 0x14], 1
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x34]
push ebx
push eax
call fcn.00451030
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x452a55
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x12]
push 2
push ecx
push edi
call fcn.00451080
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x452a88
mov ax, word [esp + 0x12]
cmp al, 0x4d
jne 0x452a88
cmp ah, 0x5a
jne 0x452a88
test ebx, ebx
mov esi, 1
jne 0x452c27
push esi
push edi
call fcn.004521c0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x452c27
mov edx, dword [0x4cce28]
push 0
add edx, esi
push edx
push edi
call fcn.00451230
mov ecx, dword [0x4cce28]
add esp, 0xc
add ecx, esi
cmp eax, ecx
jne 0x452c27
lea edx, [esp + 0x18]
push 0x16
push edx
push edi
call fcn.00451080
add esp, 0xc
cmp eax, 0x16
jne 0x452c27
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, 0x605444f
mov eax, dword [esp + 0x1c]
jne 0x452b2d
test ax, ax
je 0x452b2d
mov ecx, dword [0x4cccdc]
lea eax, [ebp*8]
sub eax, ebp
lea eax, [ecx + eax*8 + 8]
mov ecx, dword [eax]
or ecx, 1
mov dword [eax], ecx
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov bl, byte [esp + ecx + 0x18]
sub al, 0x5b
xor bl, al
mov byte [esp + ecx + 0x18], bl
inc ecx
cmp ecx, 0x16
jb 0x452b0f
mov ebx, dword [esp + 0x1c]
jmp 0x452b52
mov cx, word [esp + 0x22]
cmp cx, word [esp + 0x20]
jne 0x452c27
cmp word [esp + 0x1e], 0
jne 0x452c27
test ax, ax
jne 0x452c27
mov eax, dword [esp + 0x14]
test eax, eax
je 0x452b73
mov eax, dword [0x4cccdc]
lea edx, [ebp*8]
sub edx, ebp
test byte [eax + edx*8 + 8], 1
je 0x452c27
lea esi, [ebp*8]
sub esi, ebp
shl esi, 3
call fcn.00455640
mov ecx, dword [0x4cccdc]
push ebx
mov dword [esi + ecx], eax
mov edx, dword [0x4cccdc]
mov dword [esi + edx + 4], edi
mov eax, dword [0x4cccdc]
mov byte [esi + eax + 0x20], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x4cce28]
mov eax, dword [0x4cccdc]
add edx, ecx
mov dword [esi + eax + 0xc], edx
mov ecx, dword [0x4cccdc]
mov edx, dword [esp + 0x28]
mov dword [esi + ecx + 0x10], edx
mov eax, dword [0x4cccdc]
mov ecx, dword [esi + eax + 0xc]
mov dword [esi + eax + 0x18], ecx
mov edx, dword [0x4cccdc]
mov eax, dword [esp + 0x24]
mov dword [esi + edx + 0x1c], eax
mov ecx, dword [0x4cccdc]
mov eax, dword [esp + 0x28]
mov edx, dword [esi + ecx]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [0x4cce28]
add edx, ecx
push eax
push edx
push edi
call fcn.004523b0
add esp, 0x14
test eax, eax
jne 0x452c3a
mov eax, dword [0x4cccdc]
mov ecx, dword [esi + eax]
push ecx
call fcn.004556d0
mov edx, dword [0x4cccdc]
add esp, 4
mov dword [esi + edx], 0
push edi
call fcn.004510e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x38]
cmp ecx, 1
je 0x452c66
cmp ecx, 2
je 0x452c66
mov ecx, dword [0x4cccdc]
cmp eax, 0xffffffff
mov dword [esi + ecx + 0x14], 0
je 0x452c82
push eax
call fcn.00451530
add esp, 4
jmp 0x452c82
mov edx, dword [0x4cccdc]
cmp eax, 0xffffffff
mov dword [esi + edx + 0x14], eax
jne 0x452c82
mov eax, dword [0x4cccdc]
mov dword [esi + eax + 0x14], 0xffffffff
mov ecx, dword [0x4cccdc]
push 0
mov edx, dword [esi + ecx]
push edx
call fcn.00455230
add esp, 8
or ebp, 0x4f440000
mov esi, ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret