Function at 0x452890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef56
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x57b728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00417480
mov al, byte [ebp - 0x20]
xor al, 1
or al, byte [ebp - 0x1f]
or al, byte [ebp - 0x1e]
or al, byte [ebp - 0x1d]
or al, byte [ebp - 0x1c]
or al, byte [ebp - 0x1b]
or al, byte [ebp - 0x1a]
or al, byte [ebp - 0x19]
jne 0x452b60
mov eax, dword [edi]
push 0x70
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00417b40
mov ecx, edi
call fcn.00417650
cmp eax, 4
je 0x452926
push 0x562bf0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0
call fcn.004eff77
lea ecx, [ebp - 0x5c]
call fcn.00417d90
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0
call fcn.00417d90
mov byte [ebp - 4], 1
xor esi, esi
mov ecx, edi
call fcn.00417500
mov ecx, dword [edi]
movzx ebx, al
mov ecx, dword [ecx + 4]
push ebx
mov eax, dword [ecx + edi + 0x10]
add eax, dword [ecx + edi + 8]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00418f00
test esi, esi
jne 0x452972
push 0x524518
jmp 0x452994
cmp esi, 1
jne 0x45297e
push str.skilllevel
jmp 0x452994
cmp esi, 2
jne 0x45298a
push str.name
jmp 0x452994
cmp esi, 3
jne 0x4529a4
push str.text
lea ecx, [ebp - 0x5c]
call fcn.004199c0
test al, al
jne 0x452b3d
lea eax, [ebx + ebx]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00417b40
inc esi
cmp esi, 4
jl 0x452946
mov ecx, edi
call fcn.00417650
mov ebx, eax
xor ecx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ecx
test ebx, ebx
jle 0x452b01
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4529e2
mov eax, dword [edx]
push ebx
push ecx
mov ecx, edx
call dword [eax]
mov ecx, edi
call fcn.004175d0
mov ecx, edi
mov ebx, eax
call fcn.004175d0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov esi, dword [eax - 0x10]
test esi, esi
jle 0x452a17
mov edx, dword [eax - 0x14]
mov eax, dword [edx]
cmp dword [eax + 0xc], ebx
je 0x452b52
inc ecx
add edx, 4
cmp ecx, esi
jl 0x452a04
xor ebx, ebx
mov ecx, edi
call fcn.00417650
mov ecx, dword [edi]
push dword [0x57f89c]
mov edx, dword [ecx + 4]
mov esi, eax
mov ecx, dword [edx + edi + 0x10]
add ecx, dword [edx + edi + 8]
push esi
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00418ea0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00417b40
mov ecx, edi
call fcn.00417650
mov ecx, dword [edi]
push dword [0x57f89c]
mov edx, dword [ecx + 4]
mov esi, eax
mov ecx, dword [edx + edi + 0x10]
add ecx, dword [edx + edi + 8]
push esi
push ecx
lea ecx, [ebp - 0xac]
call fcn.00418ea0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00417b40
test ebx, ebx
je 0x452aef
mov esi, dword [ebp - 0x34]
cmp esi, 1
jne 0x452ac7
cmp dword [ebp - 0x50], 0
je 0x452ac7
sub esp, 0x24
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00417c60
lea eax, [ebp - 0x80]
push eax
call fcn.00452cf0
add esp, 0x28
push eax
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 2
call fcn.00417e10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00417dd0
imul esi, esi, 0xec
lea eax, [ebp - 0x5c]
lea ecx, [esi - 0x84]
push eax
add ecx, ebx
call fcn.00417e10
lea eax, [ebp - 0xac]
lea ecx, [esi - 0x60]
push eax
add ecx, ebx
call fcn.00417e10
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, ebx
jl 0x4529d3
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.00417dd0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eff68
mov esp, ebp
pop ebp
ret 0xc
push 0x562bf0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 1
call fcn.004eff77
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax - 0x14]
mov ebx, dword [ebx + ecx*4]
jmp 0x452a19
xor bl, bl
xor edx, edx
jmp 0x452b70
mov cl, byte [ebp + edx - 0x1d]
xor cl, byte [edx + 0x52893f]
mov al, byte [ebp + edx - 0x1e]
xor al, byte [edx + 0x52893e]
add edx, 4
or cl, al
mov al, byte [ebp + edx - 0x23]
xor al, byte [edx + 0x528939]
or cl, al
mov al, byte [edx + 0x528938]
xor al, byte [ebp + edx - 0x24]
or cl, al
or bl, cl
cmp edx, 0x10
jl 0x452b70
test bl, bl
jne 0x452ccc
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00417a70
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
add eax, edi
push 0
push eax
call fcn.0045db10
test al, al
je 0x452b1f
push 1
lea ecx, [ebp - 0x88]
call fcn.004513f0
push 0x66696c65
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 3
call fcn.004526a0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
cmp dword [eax - 0x10], ecx
jle 0x452cb5
mov edx, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
mov eax, dword [eax - 0x14]
mov ebx, dword [eax + ecx*4]
xor ecx, ecx
test edx, edx
jle 0x452ca2
mov edi, dword [ebx + 0xc]
mov eax, dword [esi + ecx*4]
cmp dword [eax + 0xc], edi
je 0x452c35
inc ecx
cmp ecx, edx
jl 0x452c26
jmp 0x452ca2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x452ca2
add eax, 0x14
push eax
lea ecx, [ebx + 0x14]
call fcn.00417e10
xor edi, edi
cmp dword [ebx + 0x10], edi
jle 0x452c99
lea esi, [ebx + 0x68]
mov eax, dword [ebp - 0x28]
add eax, 0x14
push eax
mov ecx, esi
call fcn.00417e10
cmp dword [0x57604c], 0x528b14
mov ecx, esi
jne 0x452c75
call fcn.00419670
jmp 0x452c83
push 0
push 0xffffffffffffffff
push 0x528b14
call fcn.00418a80
inc edi
push edi
push eax
call fcn.00418370
add esp, 8
add esi, 0xec
cmp edi, dword [ebx + 0x10]
jl 0x452c52
mov esi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [eax - 0x10]
jl 0x452c13
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.00451670
jmp 0x452b1f
push 0x5620e4
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0xd
call fcn.004eff77
int3