Function at 0x1004e270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019637d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x101f6e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 0x1c
mov ecx, esp
push str.btn_view_perks
call fcn.10046c60
push dword [edi + 0x184]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0xc8], eax
mov ecx, esp
push str.base_perks_view
call fcn.10046c60
push dword [edi + 0x184]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x168], eax
mov ecx, esp
push str.base_bonus
call fcn.10046c60
push dword [edi + 0x168]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x17c], eax
mov ecx, esp
push str.btn_back_view
call fcn.10046c60
push dword [edi + 0x168]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x16c], eax
mov ecx, esp
push str.btn_left
call fcn.10046c60
push dword [edi + 0x168]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x174], eax
mov ecx, esp
push str.btn_right
call fcn.10046c60
push dword [edi + 0x168]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x178], eax
mov ecx, esp
push str.str_page
call fcn.10046c60
push dword [edi + 0x168]
call fcn.100e1620
movaps xmm0, xmmword [0x101de430]
xor ecx, ecx
mov dword [edi + 0x170], eax
lea eax, [edi + 0xcc]
mov dword [ebp - 0x3c], eax
nop
sub esp, 0x1c
mov word [ebp - 0x14], 0x2160
lea eax, [ecx + 1]
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x34], eax
xor esi, esi
movups xmmword [ebp - 0x24], xmm0
push eax
mov byte [ebp - 0x12], 0
nop dword [eax]
push esi
lea ecx, [ebp - 0x23]
call fcn.1004ecd0
mov cl, byte [ebp - 0x24]
push esi
xor cl, byte [eax]
mov byte [ebp - 0x35], cl
lea ecx, [ebp - 0x23]
call fcn.1004ecd0
mov cl, byte [ebp - 0x35]
inc esi
mov byte [eax], cl
cmp esi, 0x11
jb 0x1004e3b0
push 0x11
lea ecx, [ebp - 0x23]
call fcn.1004ecd0
sub esp, 0x1c
lea ecx, [ebp - 0x23]
mov edx, esp
lea esi, [ecx + 1]
xorps xmm0, xmm0
mov byte [eax], 0
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e408
sub ecx, esi
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
push dword [ebp - 0x40]
call fcn.10049410
add esp, 0x24
push dword [edi + 0x17c]
call fcn.100e1620
mov esi, dword [ebp - 0x3c]
sub esp, 0x1c
mov ecx, esp
push str.view_bonus_descp
mov dword [esi], eax
call fcn.10046c60
push dword [esi]
call fcn.100e1620
sub esp, 0x1c
mov dword [esi + 8], eax
mov ecx, esp
push str.view_bonus_perk
call fcn.10046c60
push dword [esi]
call fcn.100e1620
mov ecx, dword [ebp - 0x34]
movaps xmm0, xmmword [0x101de430]
mov dword [esi + 4], eax
add esi, 0xc
mov dword [ebp - 0x3c], esi
cmp ecx, 0xd
jl 0x1004e390
push 0
push dword [edi + 0x168]
call fcn.100e1860
sub esp, 0x1c
mov ecx, esp
push str.base_skill_view
call fcn.10046c60
push dword [edi + 0x184]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x188], eax
mov ecx, esp
push str.70_quest_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x18c], eax
mov ecx, esp
push str.m_70_quest_reset_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x190], eax
mov ecx, esp
push str.warrior_70_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x194], eax
mov ecx, esp
push str.warrior_75_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x198], eax
mov esi, esp
xorps xmm0, xmm0
push 8
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.1013ca30
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [esi + 0x14], 0xe
mov dword [esi + 0x18], 0xf
movq xmm0, qword [str.warrior_80_off]
movq qword [esi + 4], xmm0
mov eax, dword [0x101d505c]
mov dword [esi + 0xc], eax
mov ax, word [0x101d5060]
mov word [esi + 0x10], ax
mov byte [esi + 0x12], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x19c], eax
mov ecx, esp
push str.warrior_berserk_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1a0], eax
mov ecx, esp
push str.Rogue_70_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1a4], eax
mov ecx, esp
push str.Rogue_72_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1a8], eax
mov ecx, esp
push str.Rogue_75_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1ac], eax
mov ecx, esp
push str.Rogue_80_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1b0], eax
mov ecx, esp
push str.Mage_70_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1b4], eax
mov ecx, esp
push str.Mage_72_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1b8], eax
mov ecx, esp
push str.Mage_75_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
sub esp, 0x1c
mov dword [edi + 0x1bc], eax
mov ecx, esp
push str.Mage_80_off
call fcn.10046c60
push dword [edi + 0x188]
call fcn.100e1620
xorps xmm0, xmm0
mov dword [edi + 0x1c0], eax
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x101d50f0]
movq xmm0, qword [str.Priest_70_off]
mov esi, dword [edi + 0x188]
mov dword [ebp - 0x20], eax
mov al, byte [0x101d50f4]
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 2
test esi, esi
je 0x1004e783
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e783
mov eax, dword [esi]
test eax, eax
je 0x1004e783
add eax, 0xff400000
cmp eax, 0x3fffff
ja 0x1004e783
push 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call dword [0x101d64b0]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.100477d0
jmp 0x1004e794
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100477d0
xor esi, esi
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
xorps xmm0, xmm0
mov dword [edi + 0x1c4], esi
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
add esp, 0xc
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x101d5100]
movq xmm0, qword [str.Priest_72_off]
mov esi, dword [edi + 0x188]
mov dword [ebp - 0x20], eax
mov al, byte [0x101d5104]
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 4
test esi, esi
je 0x1004e861
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e861
mov eax, dword [esi]
test eax, eax
je 0x1004e861
add eax, 0xff400000
cmp eax, 0x3fffff
ja 0x1004e861
push 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call dword [0x101d64b0]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.100477d0
jmp 0x1004e872
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100477d0
xor esi, esi
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
mov dword [edi + 0x1c8], esi
sub esp, 0x14
mov esi, esp
xorps xmm0, xmm0
push 8
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.1013ca30
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [esi + 0x14], 0xd
mov dword [esi + 0x18], 0xf
movq xmm0, qword [str.Priest_74_off]
movq qword [esi + 4], xmm0
mov eax, dword [0x101d5110]
mov dword [esi + 0xc], eax
movzx eax, byte [0x101d5114]
mov byte [esi + 0x10], al
mov byte [esi + 0x11], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 0x188]
call fcn.100e1620
xorps xmm0, xmm0
mov dword [edi + 0x1cc], eax
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x101d5120]
movq xmm0, qword [str.Priest_75_off]
mov esi, dword [edi + 0x188]
mov dword [ebp - 0x20], eax
movzx eax, byte [0x101d5124]
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 7
test esi, esi
je 0x1004e9bf
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e9bf
mov eax, dword [esi]
test eax, eax
je 0x1004e9bf
add eax, 0xff400000
cmp eax, 0x3fffff
ja 0x1004e9bf
push 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call dword [0x101d64b0]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.100477d0
jmp 0x1004e9d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100477d0
xor esi, esi
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
xorps xmm0, xmm0
mov dword [edi + 0x1d0], esi
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
add esp, 0xc
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x101d5130]
movq xmm0, qword [str.Priest_76_off]
mov esi, dword [edi + 0x188]
mov dword [ebp - 0x20], eax
mov al, byte [0x101d5134]
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 9
test esi, esi
je 0x1004ea9d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004ea9d
mov eax, dword [esi]
test eax, eax
je 0x1004ea9d
add eax, 0xff400000
cmp eax, 0x3fffff
ja 0x1004ea9d
push 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call dword [0x101d64b0]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.100477d0
jmp 0x1004eaae
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100477d0
xor esi, esi
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
xorps xmm0, xmm0
mov dword [edi + 0x1d4], esi
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
add esp, 0xc
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x101d5140]
movq xmm0, qword [str.Priest_78_off]
mov esi, dword [edi + 0x188]
mov dword [ebp - 0x20], eax
mov al, byte [0x101d5144]
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 0xb
test esi, esi
je 0x1004eb7b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004eb7b
mov eax, dword [esi]
test eax, eax
je 0x1004eb7b
add eax, 0xff400000
cmp eax, 0x3fffff
ja 0x1004eb7b
push 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call dword [0x101d64b0]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.100477d0
jmp 0x1004eb8c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100477d0
xor esi, esi
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
mov dword [edi + 0x1d8], esi
sub esp, 0x14
mov esi, esp
xorps xmm0, xmm0
push 8
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.1013ca30
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [esi + 0x14], 0xd
mov dword [esi + 0x18], 0xf
movq xmm0, qword [str.Priest_80_off]
movq qword [esi + 4], xmm0
mov eax, dword [0x101d5150]
mov dword [esi + 0xc], eax
mov al, byte [0x101d5154]
mov byte [esi + 0x10], al
mov byte [esi + 0x11], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 0x188]
call fcn.100e1620
mov dword [edi + 0x1dc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret