Function at 0x41f0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x468
cmp byte [esp + 0x480], 0
jne 0x41f1d8
mov edi, dword [esp + 0x488]
mov ebp, dword [esp + 0x47c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xde41dc44
mov dword [esp + 0x14], 0xd282d0ba
mov dword [esp + 0x18], 0xd68bd481
mov dword [esp + 0x1c], 0xca55c8b3
mov dword [esp + 0x20], 0xcecdcc57
mov eax, 0xc3
mov ecx, 0x3c
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xb3]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0xe8
mov byte [esp + eax - 0xb3], dl
inc eax
dec ecx
cmp eax, 0xd7
jne 0x41f110
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.004377f0
push 0xebc73df8
push dword [esp + 0xc]
call fcn.004394c0
add esp, 8
mov ecx, esp
push ecx
push 0x43c598
push 1
push 0
push 0x43c5a8
call eax
test eax, eax
js 0x41f1d8
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x43c5b8
push eax
call dword [ecx]
test eax, eax
js 0x41f1df
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x41f190
mov edi, dword [edi + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41f1b0
sar ebx, 1
sar eax, 1
add eax, ebx
inc eax
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
test eax, eax
jns 0x41f1e6
mov eax, 0xffffffff
jmp 0x41f1e8
xor ebx, ebx
jmp 0x41f389
xor ebx, ebx
jmp 0x41f380
add eax, eax
push eax
call fcn.004082f0
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41f211
add edi, 2
mov eax, esi
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41f200
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41f241
lea edx, [ebp + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41f230
mov word [eax], 0
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x41f2be
mov eax, dword [esp]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x41f2be
mov eax, dword [esp]
mov ecx, dword [eax]
lea edi, [esp + 0x260]
push 1
lea edx, [esp + 0x14]
push edx
push 0x104
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x41f2be
mov eax, dword [esp + 0x488]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41f2a0
sar eax, 1
lea ecx, [ebx + eax]
add ecx, 2
test ecx, ecx
jns 0x41f2c5
mov eax, 0xffffffff
jmp 0x41f2ce
xor ebx, ebx
jmp 0x41f36d
add ebx, eax
lea eax, [ebx*2 + 4]
push eax
call fcn.004082f0
add esp, 4
mov ebx, eax
movzx ecx, word [edi]
test cx, cx
je 0x41f301
add edi, 2
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41f2f0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41f334
add ebp, 2
mov edx, dword [esp + 0x488]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41f320
jmp 0x41f33b
mov edx, dword [esp + 0x488]
mov word [eax], 0
mov eax, dword [edx + 0x14]
dec eax
push 1
push eax
push dword [edx + 0x10]
push dword [edx + 0xc]
lea eax, [esp + 0x270]
push eax
push ebx
push dword [edx]
call fcn.0041e6b0
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.00408300
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.00408300
add esp, 4
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
add esp, 0x468
pop esi
pop edi
pop ebx
pop ebp
ret 0x10