Function at 0x41c7b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push 0x1002e6b8
call dword [0x100281e0]
xor ebx, ebx
mov esi, 0x1002e6d8
cmp dword [0x1002e70c], ebx
jne 0x41c8b0
push 0x1002d430
push ebx
push ebx
mov byte [0x1002e6d8], bl
call dword [0x10028240]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41c8a4
push 0xffffffffffffffff
push eax
call dword [0x1002822c]
push 0x32
mov edi, 0x10029ab4
push esi
push edi
push 0x10029a74
call fcn.004191a6
add esp, 0x10
test eax, eax
je 0x41ca6d
cmp byte [0x1002e6d8], bl
je 0x41ca6d
cmp dword [0x1002e6d0], ebx
push 1
pop edi
mov dword [0x1002e70c], edi
jne 0x41c892
lea eax, [ebp - 0x20c]
push 0x12c
push eax
push 0x10029ab8
push 0x10029a74
call fcn.004191a6
add esp, 0x10
test eax, eax
je 0x41c892
lea eax, [ebp - 0x20c]
push eax
call dword [0x10028234]
cmp eax, 4
jle 0x41c892
lea eax, [ebp - 0x208]
push eax
call fcn.00414047
not eax
pop ecx
mov word [0x1002e6d4], ax
mov dword [0x1002e6d0], edi
push dword [ebp - 4]
call dword [0x10028230]
push dword [ebp - 4]
call dword [0x10028244]
cmp dword [0x1002e70c], ebx
je 0x41cc38
cmp dword [0x1002e6d0], ebx
jne 0x41cc38
mov dword [ebp - 8], ebx
lea edi, [ebp - 0xdf]
mov dword [ebp - 4], 0x1002d2d0
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x1002d2d4]
mov byte [edi - 1], al
mov eax, dword [ebp - 4]
push dword [eax]
push edi
call dword [0x10028210]
inc dword [ebp - 8]
sub dword [ebp - 4], 4
add edi, 3
cmp dword [ebp - 8], 8
jb 0x41c8cc
lea eax, [ebp - 0xe0]
push 0x1002d42c
push eax
call dword [0x1002823c]
push 1
lea eax, [ebp - 0x20c]
pop edi
push 0x12c
push eax
lea eax, [ebp - 0xe0]
push 0x1002dc30
push eax
push 0x80000000
mov dword [ebp - 4], edi
call fcn.00419239
add esp, 0x14
test eax, eax
je 0x41c960
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.00414168
pop ecx
cmp eax, ebx
pop ecx
je 0x41c960
inc eax
push eax
call fcn.00414047
pop ecx
mov word [0x1002e6d4], ax
mov dword [0x1002e6d0], edi
mov dword [ebp - 4], ebx
cmp dword [0x1002e6d0], ebx
jne 0x41c9c2
push esi
xor edi, edi
mov dword [ebp - 8], esi
call dword [0x10028234]
add eax, esi
cmp eax, esi
jbe 0x41c995
mov ecx, esi
movzx edx, byte [ecx]
xor edi, edx
mov edx, edi
mov esi, edi
shr edx, 0x1e
shl esi, 2
or edx, esi
inc ecx
inc ecx
mov edi, edx
cmp ecx, eax
jb 0x41c97c
mov ecx, 0x1002e6d9
cmp eax, ecx
jbe 0x41c9b5
movzx edx, byte [ecx]
xor edi, edx
mov edx, edi
shr edx, 0x1f
lea esi, [edi + edi]
or edx, esi
inc ecx
inc ecx
mov edi, edx
cmp ecx, eax
jb 0x41c99e
mov eax, edi
shr eax, 0x10
xor eax, edi
mov word [0x1002e6d4], ax
mov eax, dword [0x1002e6d4]
not eax
movzx eax, ax
push eax
call dword [0x10028224]
push 0x64
xor edx, edx
pop ecx
div ecx
xor edx, edx
div ecx
lea eax, [ebp - 0x20c]
push edx
push 0x1002d420
push eax
call dword [0x10028330]
lea eax, [ebp - 0x20c]
push ebx
mov esi, 0x10029ab8
push eax
mov edi, 0x10029a74
push esi
push edi
call fcn.004192be
add esp, 0x20
test eax, eax
je 0x41cb24
lea eax, [ebp - 0x20c]
push 0x12c
push eax
push esi
push edi
call fcn.004191a6
add esp, 0x10
test eax, eax
je 0x41cb24
lea eax, [ebp - 0x20c]
push eax
call dword [0x10028234]
cmp eax, 4
jle 0x41cb24
lea eax, [ebp - 0x208]
push eax
call fcn.00414047
not eax
cmp word [0x1002e6d4], ax
pop ecx
jne 0x41cb24
push 1
pop eax
jmp 0x41cb26
lea eax, [ebp - 0x18]
mov dword [0x1002e70c], ebx
push eax
call dword [0x10028458]
lea eax, [ebp - 0x7c]
push 0x31
push eax
lea eax, [ebp - 0x18]
push eax
call dword [0x10028484]
lea eax, [ebp - 0x7c]
push eax
call dword [0x100281f0]
cmp eax, 2
mov dword [ebp - 8], eax
jle 0x41c892
push ebx
push ebx
push 0x32
add eax, 0xfffffffe
push esi
push eax
lea eax, [ebp - 0x7a]
push eax
push ebx
push ebx
call dword [0x100280f4]
mov eax, dword [ebp - 8]
push 1
push esi
push edi
push 0x10029a74
mov byte [eax + 0x1002e6d6], bl
call fcn.004192be
add esp, 0x10
test eax, eax
je 0x41c892
lea eax, [ebp - 0x20c]
push 0x12c
push eax
push edi
push 0x10029a74
call fcn.004191a6
add esp, 0x10
test eax, eax
je 0x41cb19
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [0x10028220]
test eax, eax
jne 0x41cb19
mov dword [0x1002e70c], 1
jmp 0x41c892
mov dword [0x1002e70c], ebx
jmp 0x41c892
xor eax, eax
cmp eax, ebx
mov dword [0x1002e70c], eax
mov dword [0x1002e6d0], eax
je 0x41cc38
cmp dword [ebp - 4], ebx
je 0x41cc38
xor edi, edi
lea esi, [ebp - 0x20b]
mov dword [ebp - 4], 0x1002d2fc
mov al, byte [edi + 0x1002d300]
mov byte [esi - 1], al
mov eax, dword [ebp - 4]
push dword [eax]
push esi
call dword [0x10028210]
sub dword [ebp - 4], 4
inc edi
add esi, 3
cmp edi, 8
jb 0x41cb50
movzx eax, word [0x1002e6d4]
push eax
lea eax, [ebp - 0x20c]
push 0x1002d41c
push eax
call dword [0x10028234]
lea eax, [ebp + eax - 0x20c]
push eax
call dword [0x10028330]
lea eax, [ebp - 0x20c]
push ebx
push eax
lea eax, [ebp - 0xe0]
push 0x1002dc30
push eax
push 0x80000000
call fcn.00419347
add esp, 0x20
lea eax, [ebp - 0xe0]
push 0x1002d414
push eax
call dword [0x1002823c]
lea eax, [ebp - 0x7c]
push 0x31
push eax
push 0x10029740
call dword [0x10028484]
test eax, eax
je 0x41cc38
lea eax, [ebp - 0x7c]
test eax, eax
jne 0x41cbed
xor esi, esi
jmp 0x41cc1d
lea eax, [ebp - 0x7c]
push eax
call dword [0x100281f0]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0042fef0
mov esi, esp
push ebx
push ebx
push edi
push esi
lea eax, [ebp - 0x7c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov byte [esi], bl
call dword [0x100280f4]
push ebx
push esi
lea eax, [ebp - 0xe0]
push 0x1002dc30
push eax
push 0x80000000
call fcn.00419347
add esp, 0x14
push 0x1002e6b8
call dword [0x100281e8]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
leave
ret