Function at 0x4948f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ec
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x5dc], ebx
mov dword [ebp - 0x5c8], eax
cmp edi, 0x100
jbe 0x494933
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x5d4], eax
jmp 0x49493d
mov dword [ebp - 0x5d4], 0x10
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004b67a0
add esp, 0xc
mov ecx, esi
mov edx, edi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x50]
dec edx
jne 0x494951
cmp dword [ebp - 0x50], edi
jne 0x49497f
mov ecx, dword [ebp - 0x5c8]
mov dword [ebx], edx
mov dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp dword [ebp + ecx*4 - 0x50], 0
jne 0x494991
inc ecx
cmp ecx, 0x10
jbe 0x494984
mov eax, dword [ebp - 0x5c8]
mov dword [ebp - 0x5a4], ecx
cmp dword [eax], ecx
jae 0x4949a3
mov dword [eax], ecx
mov edx, 0x10
cmp dword [ebp + edx*4 - 0x50], 0
jne 0x4949b2
dec edx
jne 0x4949a8
mov dword [ebp - 0x5c4], edx
cmp dword [eax], edx
jbe 0x4949be
mov dword [eax], edx
mov eax, 1
shl eax, cl
mov dword [ebp - 0x5bc], eax
cmp ecx, edx
jae 0x4949e7
nop
sub eax, dword [ebp + ecx*4 - 0x50]
js 0x494cd2
inc ecx
add eax, eax
mov dword [ebp - 0x5bc], eax
cmp ecx, edx
jb 0x4949d0
mov ecx, dword [ebp - 0x5bc]
lea ebx, [edx*4]
mov eax, dword [ebp + ebx - 0x50]
sub ecx, eax
mov dword [ebp - 0x5bc], ecx
js 0x494cd2
add eax, ecx
xor ecx, ecx
mov dword [ebp + ebx - 0x50], eax
mov dword [ebp - 0x94], ecx
dec edx
je 0x494a31
xor eax, eax
lea esp, [esp]
add ecx, dword [ebp + eax - 0x4c]
lea eax, [eax + 4]
mov dword [ebp + eax - 0x94], ecx
dec edx
jne 0x494a20
push 0x480
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.004b67a0
add esp, 0xc
xor ecx, ecx
lea esp, [esp]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x494a6f
mov eax, dword [ebp + edx*4 - 0x98]
mov dword [ebp + eax*4 - 0x5a0], ecx
inc eax
mov dword [ebp + edx*4 - 0x98], eax
inc ecx
cmp ecx, edi
jb 0x494a50
mov eax, dword [ebp + ebx - 0x98]
xor edx, edx
mov esi, dword [ebp - 0x5c4]
or ecx, 0xffffffff
mov dword [ebp - 0x5e4], eax
xor ebx, ebx
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x5b8], 0
mov dword [ebp - 0x5cc], eax
xor edi, edi
mov eax, dword [ebp - 0x5a4]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x5a8], ecx
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x5ac], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x5c0], ebx
cmp eax, esi
jg 0x494e41
lea esi, [ebp - 0x50]
mov ebx, edx
lea esi, [esi + eax*4]
mov dword [ebp - 0x5d0], esi
mov edi, edi
mov esi, dword [esi]
test esi, esi
je 0x494e19
lea eax, [esi + 1]
lea ecx, [ecx]
dec esi
dec eax
mov dword [ebp - 0x5e0], esi
lea esi, [ecx*4]
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp + esi - 0xdc]
add eax, edx
cmp dword [ebp - 0x5a4], eax
jle 0x494ca2
lea ebx, [ebx]
mov ebx, dword [ebp - 0x5a4]
lea eax, [ebp - 0xdc]
add edx, dword [esi + eax]
inc ecx
mov eax, dword [ebp - 0x5c8]
mov esi, dword [ebp - 0x5c4]
sub esi, edx
mov dword [ebp - 0x5a8], ecx
mov dword [ebp - 0x5ac], edx
mov eax, dword [eax]
cmp esi, eax
cmova esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x5d8]
jbe 0x494ba9
mov edx, dword [ebp - 0x5d0]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x5e0]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x494ba3
lea ebx, [ebx]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x494ba3
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x494b90
mov edx, dword [ebp - 0x5ac]
mov ecx, dword [ebp - 0x5d4]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x494bbe
cmp edx, ecx
jae 0x494bbe
mov ebx, ecx
sub ebx, edx
mov esi, dword [ebp - 0x5a8]
lea eax, [ebp - 0xdc]
mov ecx, ebx
shl esi, 2
mov edi, 1
shl edi, cl
mov dword [esi + eax], ebx
lea eax, [edi*8 + 8]
push eax
call fcn.004ae57a
add esp, 4
test eax, eax
je 0x494e7b
mov edx, dword [ebp - 0x5dc]
lea ecx, [eax + 8]
add eax, 4
mov dword [ebp - 0x5c0], ecx
cmp dword [ebp - 0x5a8], 0
mov dword [ebp - 0x5dc], eax
mov dword [edx], ecx
mov dword [eax], 0
mov dword [ebp + esi - 0x120], ecx
je 0x494c81
mov eax, dword [ebp - 0x5b8]
mov edx, 1
mov dword [ebp - 0x5b0], ecx
mov ecx, dword [ebp - 0x5ac]
shl edx, cl
sub ecx, dword [ebp + esi - 0xe0]
dec edx
and edx, dword [ebp - 0x5b8]
mov dword [ebp + esi - 0x98], eax
mov al, byte [ebp + esi - 0xe0]
shr edx, cl
mov ecx, dword [ebp + esi - 0x124]
mov byte [ebp - 0x5b3], al
lea eax, [ebx + 0x20]
mov byte [ebp - 0x5b4], al
mov eax, dword [ebp - 0x5b4]
mov dword [ecx + edx*8], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ecx + edx*8 + 4], eax
mov edx, dword [ebp - 0x5ac]
mov ecx, dword [ebp - 0x5a8]
lea eax, [edx + ebx]
cmp dword [ebp - 0x5a4], eax
jg 0x494b30
mov ebx, dword [ebp - 0x5c0]
mov al, byte [ebp - 0x5a4]
lea esi, [ebp - 0x5a0]
sub al, dl
mov byte [ebp - 0x5b3], al
mov eax, dword [ebp - 0x5e4]
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x5cc]
cmp esi, eax
jb 0x494ce8
mov byte [ebp - 0x5b4], 0x63
jmp 0x494d2c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jae 0x494d07
cmp ecx, 0x100
setb al
add al, 0x1f
mov byte [ebp - 0x5b4], al
mov ax, cx
jmp 0x494d1c
sub ecx, eax
mov eax, dword [ebp + 0x14]
mov al, byte [ecx + eax]
mov byte [ebp - 0x5b4], al
mov eax, dword [ebp + 0x10]
mov ax, word [eax + ecx*2]
add esi, 4
mov word [ebp - 0x5b0], ax
mov dword [ebp - 0x5cc], esi
mov ecx, dword [ebp - 0x5a4]
mov esi, 1
mov eax, dword [ebp - 0x5b8]
sub ecx, edx
shl esi, cl
mov ecx, edx
shr eax, cl
cmp eax, edi
jae 0x494d82
mov edx, dword [ebp - 0x5b0]
lea ecx, [esi*8]
mov dword [ebp - 0x5e8], ecx
lea ecx, [ebx + eax*8]
mov ebx, dword [ebp - 0x5b4]
mov dword [ecx], ebx
add eax, esi
mov dword [ecx + 4], edx
add ecx, dword [ebp - 0x5e8]
cmp eax, edi
jb 0x494d65
mov edx, dword [ebp - 0x5ac]
mov ebx, dword [ebp - 0x5c0]
mov ecx, dword [ebp - 0x5a4]
mov eax, 1
mov esi, dword [ebp - 0x5b8]
lea ecx, [ecx - 1]
shl eax, cl
test esi, eax
je 0x494da8
lea esp, [esp]
xor esi, eax
shr eax, 1
test esi, eax
jne 0x494da0
xor esi, eax
mov ecx, edx
mov eax, 1
mov dword [ebp - 0x5b8], esi
shl eax, cl
mov ecx, dword [ebp - 0x5a8]
dec eax
and eax, esi
cmp eax, dword [ebp + ecx*4 - 0x98]
je 0x494dff
jmp 0x494dd0
sub edx, dword [ebp + ecx*4 - 0xe0]
dec ecx
mov dword [ebp - 0x5a8], ecx
mov eax, 1
mov ecx, edx
shl eax, cl
mov ecx, dword [ebp - 0x5a8]
dec eax
and eax, esi
cmp eax, dword [ebp + ecx*4 - 0x98]
jne 0x494dd0
mov dword [ebp - 0x5ac], edx
mov esi, dword [ebp - 0x5e0]
mov eax, dword [ebp - 0x5d8]
test esi, esi
jne 0x494b00
mov eax, dword [ebp - 0x5a4]
mov esi, dword [ebp - 0x5d0]
inc eax
add esi, 4
mov dword [ebp - 0x5a4], eax
mov dword [ebp - 0x5d0], esi
cmp eax, dword [ebp - 0x5c4]
jle 0x494af0
mov esi, dword [ebp - 0x5c4]
cmp dword [ebp - 0x5bc], 0
mov ecx, dword [ebp - 0x5c8]
mov eax, dword [ebp - 0xdc]
mov dword [ecx], eax
je 0x49496c
cmp esi, 1
je 0x49496c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x5a8], 0
je 0x494ea5
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x494ea5
mov edi, edi
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.004ae337
add esp, 4
mov eax, esi
test esi, esi
jne 0x494e90
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret