Function at 0x41c1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
add ecx, 0xfffffff5
mov edx, dword [0x44eb5c]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
cmp eax, ecx
mov dword [ebp - 4], esi
push edi
cmova eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
xor edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [0x44eb5c]
xor ecx, eax
mov eax, dword [0x44eb5c]
xor eax, ecx
mov ecx, dword [0x44eb5c]
mov edi, dword [0x44eb5c]
xor eax, 2
xor ecx, eax
mov eax, edx
shr eax, 1
mov ebx, ecx
shr ebx, 1
neg eax
neg ebx
neg ecx
or ebx, ecx
neg edx
or eax, edx
shr ebx, 0x1f
shr eax, 0x1f
neg ebx
neg eax
or ebx, eax
mov eax, 2
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0xc], eax
jbe 0x41c295
mov ebx, dword [ebp + 8]
movzx ecx, byte [eax + ebx]
inc eax
mov edx, dword [0x44eb5c]
xor edx, ecx
mov ecx, dword [0x44eb5c]
xor ecx, edx
mov edx, dword [0x44eb5c]
xor edx, ecx
mov ecx, edx
neg edx
shr ecx, 1
neg ecx
or ecx, edx
shr ecx, 0x1f
dec ecx
or edi, ecx
mov ecx, edi
not ecx
and ecx, 1
add esi, ecx
cmp eax, dword [ebp + 0xc]
jb 0x41c254
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov esi, dword [0x44eb5c]
not edi
xor esi, dword [ebp - 4]
mov edx, dword [0x44eb5c]
xor edx, 8
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
mov esi, dword [0x44eb5c]
xor esi, dword [ebp - 8]
mov edx, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
or ecx, edi
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 4]
or ebx, ecx
xor eax, ebx
sub edi, 3
not eax
and edi, eax
mov eax, ebx
and eax, dword [ebp - 8]
or edi, eax
xor edx, edi
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
mov ecx, dword [0x44eb5c]
shr esi, 0x1f
xor ecx, ebx
xor eax, esi
not ecx
mov esi, eax
neg eax
shr esi, 1
neg esi
or esi, eax
shr esi, 0x1f
neg esi
and ecx, esi
push dword [ebp - 0x10]
and ecx, 0x4400
mov eax, ebx
and eax, 0x4100
or ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xb
neg ecx
push eax
mov eax, esi
mov dword [ebp - 4], ecx
or eax, ebx
push eax
call fcn.00416600
mov edx, dword [0x44eb5c]
mov ebx, dword [ebp - 8]
xor edx, esi
not edx
and esi, ebx
and edx, edi
mov eax, ebx
or edx, esi
mov esi, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 8], edx
push eax
sub esi, ebx
add esi, dword [ebp + 0xc]
push ebx
push esi
call fcn.00416520
add esp, 0x18
cmp dword [ebp + 0x14], 0
je 0x41c3eb
push ebx
push esi
push dword [ebp + 0x10]
call fcn.00428a80
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], edx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret