Function at 0x41c2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fde0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [0x610024]
xor eax, eax
mov esi, vtable.CFileStream.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ecx
push 0x5a6dd8
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x5a6dd8
push eax
lea ecx, [ebp - 0x1c]
call fcn.004057d0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.0041b5b0
cmp eax, 0x80004005
jne 0x41c3c0
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 4
call fcn.0041d9d0
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x610020]
je 0x41c3a7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c3a7
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00551d56
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x24]
call fcn.0041e7d0
mov ebx, eax
push ebx
call fcn.0054e1ec
add esp, 4
mov byte [ebp + 8], 0
mov ecx, dword [ebp + 8]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0040b160
mov eax, dword [edi]
lea edx, [ebx - 1]
push edx
mov edx, dword [eax + 0x14]
mov ecx, edi
mov byte [ebp - 4], 5
call edx
mov ecx, eax
call fcn.0040d7a0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.0041e720
cmp eax, 0x80004005
jne 0x41c474
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test edi, edi
je 0x41c44c
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c44c
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41c44c
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0041acc0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov cl, byte [esi]
dec ebx
xor esi, esi
mov byte [ebp + 0xb], cl
test ebx, ebx
jle 0x41c49d
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + esi + 1]
xor dl, byte [ebp + 0xb]
mov eax, dword [eax]
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x41c480
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test esi, esi
je 0x41c4d2
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c4d2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41c4d2
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [ebp - 0x24], vtable.CFileStream.0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 7
call fcn.0041d9d0
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x610020]
je 0x41c513
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c513
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00551d56
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4