Function at 0x495158
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x154
push ebx
push esi
mov esi, ecx
and dword [esi + 0x6c], 0
push edi
lea ecx, [esi + 0xa4]
call fcn.004a0cb3
lea ecx, [ebp + 0x6c]
call fcn.004a0e93
lea ebx, [esi + 0xb0]
mov ecx, dword [ebx]
call fcn.004a0e99
push eax
lea eax, [ebp + 0x74]
push 0x51d5c4
push eax
call fcn.004a15fa
add esp, 0xc
push dword [eax]
lea ecx, [ebp + 0x6c]
call fcn.004a0eb9
lea ecx, [ebp + 0x74]
call fcn.004a0c7d
xor edi, edi
inc edi
cmp dword [esi + 0xb8], edi
jbe 0x495208
mov dword [ebp + 0x74], 0x1c
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x74]
add ecx, eax
call fcn.004a0e99
push eax
lea ecx, [ebp + 0x6c]
call fcn.004a0e99
push eax
lea eax, [ebp + 0x70]
push 0x528cc0
push eax
call fcn.004a15fa
add esp, 0x10
push dword [eax]
lea ecx, [ebp + 0x6c]
call fcn.004a0eb9
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
add dword [ebp + 0x74], 0x1c
inc edi
cmp edi, dword [esi + 0xb8]
jb 0x4951c2
xor cl, cl
call fcn.0042db1e
mov edi, eax
push edi
lea ecx, [ebp + 0x6c]
call fcn.004a0e99
push eax
lea eax, [ebp + 0x70]
push 0x528cb8
push eax
call fcn.004a15fa
add esp, 0x10
push dword [eax]
lea ecx, [ebp + 0x6c]
call fcn.004a0eb9
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
mov dl, 1
mov ecx, edi
call fcn.00479b79
lea ecx, [esi + 0x78]
mov edi, dword [ecx]
test edi, edi
je 0x49528d
xor eax, eax
cmp byte [edi], al
sete al
test al, al
jne 0x49528d
call fcn.004a0e99
push eax
lea ecx, [ebp + 0x6c]
call fcn.004a0e99
push eax
lea eax, [ebp + 0x70]
push 0x528ca8
push eax
call fcn.004a15fa
add esp, 0x10
push dword [eax]
lea ecx, [ebp + 0x6c]
call fcn.004a0eb9
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
lea ecx, [ebp + 0x6c]
call fcn.004a0e99
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495298
sub eax, edx
lea ecx, [eax + 0x26]
call fcn.00479b81
mov edi, eax
mov ecx, 0x556e50
sub ecx, edi
mov dword [ebp + 0x74], 0x25
mov dl, byte [ecx + eax]
xor dl, 0x74
mov byte [eax], dl
inc eax
dec dword [ebp + 0x74]
jne 0x4952b9
lea ecx, [ebp + 0x6c]
call fcn.004a0e99
lea edx, [edi + 0x25]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4952d2
push edi
lea ecx, [esi + 0xa4]
call fcn.004a0c86
mov eax, dword [ebx]
add eax, 8
push eax
lea ecx, [ebp + 0x68]
call fcn.004a1664
lea ecx, [ebp - 0x10]
call fcn.00501c46
lea ecx, [ebp + 0x68]
call fcn.004a0ea5
push eax
lea ecx, [ebp + 0x68]
call fcn.004a0e99
push eax
lea ecx, [ebp - 0x10]
call fcn.00502f43
lea ecx, [esi + 0xa4]
mov edi, eax
call fcn.004a0e99
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [edi + 2]
push eax
movzx eax, byte [edi + 1]
push eax
movzx eax, byte [edi]
push eax
lea eax, [ebp + 0x70]
push 0x528c8c
push eax
call fcn.004a15fa
add esp, 0x1c
push dword [eax]
lea ecx, [esi + 0xa4]
call fcn.004a0eb9
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
xor eax, eax
mov dword [ebp + 0x74], eax
cmp dword [0x88d33c], eax
jbe 0x4953c9
mov ecx, dword [0x88d334]
mov edi, dword [ecx + eax*4]
test byte [edi + 0xf5], 2
jne 0x4953af
cmp edi, esi
je 0x4953af
lea ecx, [edi + 0xb0]
call fcn.004905fc
mov ecx, ebx
mov dword [ebp + 0x70], eax
call fcn.004905fc
push dword [ebp + 0x70]
mov ecx, eax
call fcn.0040e0fa
test eax, eax
jne 0x4953af
test byte [edi + 0x2c], 1
jne 0x4953c0
and byte [esi + 0x2c], 0xfc
mov eax, dword [ebp + 0x74]
inc eax
mov dword [ebp + 0x74], eax
cmp eax, dword [0x88d33c]
jb 0x49536c
jmp 0x4953c9
push 3
mov ecx, edi
call fcn.00492552
push 0x14
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, ebx
mov dword [ebp + 0x74], eax
call fcn.004905fc
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.00501c46
mov ecx, edi
call fcn.004a0ea5
mov ecx, edi
mov dword [ebp + 0x70], eax
call fcn.004a0e99
push dword [ebp + 0x70]
lea ecx, [ebp - 0x88]
push eax
call fcn.00502f43
mov ecx, dword [ebp + 0x74]
push eax
call fcn.004ba47e
test byte [esi + 0x2c], 1
push dword [ebp + 0x74]
je 0x495443
push 0x511854
lea eax, [ebp - 0xdc]
push 0x29
push eax
call fcn.0049f973
mov ecx, dword [0x88d2cc]
add esp, 0x10
lea edx, [ebp - 0xdc]
call fcn.004b7a3f
jmp 0x49544f
push 0x528c74
call fcn.0049f9e2
pop ecx
pop ecx
lea edi, [esi + 0xa8]
push eax
mov ecx, edi
call fcn.004a0c86
mov edx, dword [ebp + 0x74]
mov ecx, 0x105
call fcn.004c9f62
mov eax, dword [esi + 0x10]
test eax, eax
je 0x495478
and byte [eax + 0xfc], 0xfe
mov ecx, esi
call fcn.004911da
cmp byte [esi + 0x76], 0
je 0x49551a
mov ecx, edi
call fcn.004a0ff9
mov ecx, eax
call fcn.00482110
test al, al
je 0x4954ae
or dword [esi + 0x13c], 0xffffffff
mov ecx, esi
call fcn.004935f2
jmp 0x495532
xor edi, edi
lea eax, [esi + 0x13c]
cmp dword [eax], 0xffffffff
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
jne 0x4954d9
mov dword [eax], 0xa
push dword [0x56b74c]
lea ecx, [ebp + 0x74]
call fcn.00401966
push edi
push 1
push edi
lea eax, [ebp + 0x74]
push eax
push 0x4949ec
lea ecx, [esi + 0xa4]
call fcn.004a0e99
mov edx, esi
mov ecx, eax
call fcn.00453c64
mov ecx, dword [ebp + 0x74]
mov dword [esi + 0x94], eax
cmp ecx, edi
je 0x49551a
call fcn.00401728
mov ecx, dword [esi + 0xbc]
imul ecx, ecx, 0x1c
add ecx, dword [ebx]
call fcn.004a0e99
push eax
mov ecx, esi
call fcn.00494fb5
lea ecx, [ebp - 0x88]
call fcn.00501c70
lea ecx, [ebp - 0x10]
call fcn.00501c70
lea ecx, [ebp + 0x68]
call fcn.004a0c7d
lea ecx, [ebp + 0x6c]
call fcn.004a0c7d
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret