Function at 0x4f1322
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4af6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0xc], ebp
lea eax, [esp + 0x14]
mov byte [esp + 0x28], 1
push eax
push 0x525230
push 0x17
push ebp
push 0x525220
call dword [0x4b8348]
mov esi, eax
cmp esi, ebp
jl 0x4f139a
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x4b8328]
mov esi, eax
cmp esi, ebp
jl 0x4f1390
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0x525210
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x4f13d3
cmp esi, ebp
jl 0x4f13b7
mov ecx, dword [eax]
push 0x5251f8
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebp
jne 0x4f13c9
push 0x80004003
call fcn.00516de2
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0xc], ebp
cmp esi, ebp
jge 0x4f14c9
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.004d1522
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x5251e8
push eax
push ecx
mov byte [esp + 0x40], 2
call fcn.00515c9e
call fcn.004d17c2
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.00515c26
cmp esi, ebp
je 0x4f1452
push ebp
push ebp
lea edx, [esp + 0x1c]
push 0x5251c8
push edx
call fcn.004d4d02
add esp, 0x10
mov eax, dword [eax]
push esi
push 0x5251e8
push eax
mov byte [esp + 0x34], 3
call fcn.0051b3a2
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00515c26
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.004d1522
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x5251b8
push eax
push ecx
mov byte [esp + 0x40], 4
call fcn.00515c9e
call fcn.004d17c2
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.00515c26
cmp esi, ebp
je 0x4f14c9
push ebp
push ebp
lea edx, [esp + 0x1c]
push 0x5251c8
push edx
call fcn.004d4d02
add esp, 0x10
mov eax, dword [eax]
push esi
push 0x5251b8
push eax
mov byte [esp + 0x34], 5
call fcn.0051b3a2
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00515c26
lea eax, [esp + 0x18]
push eax
call fcn.004d16e2
add esp, 4
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x34], 6
call fcn.00515cce
push 0x5c
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 7
push eax
call fcn.005163dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0xa
call fcn.00515c26
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 9
call fcn.00515c26
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4b7100]
lea edx, [esp + 0x10]
push 0x5251ac
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00515c9e
mov eax, dword [eax]
push 0x523afc
push eax
call dword [fcn.004b8034]
add esp, 8
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00515c26
cmp edi, ebp
je 0x4f1587
mov ebp, dword [0x4b8044]
xor esi, esi
xor ecx, ecx
push edi
mov cl, byte [esi + 0x4bc188]
xor ecx, 0x7d
push ecx
call ebp
add esp, 8
inc esi
cmp esi, 0xac30
jb 0x4f1560
push edi
call dword [fcn.004b8040]
add esp, 4
xor ebp, ebp
push ebp
push ebp
push ecx
lea eax, [esp + 0x1c]
mov edx, esp
mov dword [esp + 0x28], esp
push 0x5251ac
push eax
push edx
call fcn.00515c9e
call fcn.004d17c2
mov esi, eax
add esp, 0xc
cmp esi, ebp
je 0x4f15e6
push ebp
push ebp
lea ecx, [esp + 0x24]
push 0x5251c8
push ecx
call fcn.004d4d02
add esp, 0x10
mov eax, dword [eax]
push esi
push 0x5251ac
push eax
mov byte [esp + 0x34], 0xb
call fcn.0051b3a2
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 9
call fcn.00515c26
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00515c26
mov eax, dword [esp + 0xc]
mov byte [esp + 0x28], 0
cmp eax, ebp
je 0x4f1607
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00515c26
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x20
ret