Function at 0x41e160
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, edx
push ecx
call fcn.004560ea
add esp, 4
lea ecx, [ebp + 4]
mov edi, eax
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
jmp 0x41e229
mov dh, byte [edi]
test dh, dh
sete cl
cmp dh, 0x2c
setne dl
inc edi
xor dl, cl
test dl, dl
jne 0x41e193
lea ecx, [edi - 1]
test dh, dh
je 0x41e1b3
mov byte [ecx], 0
jmp 0x41e1b5
mov edi, ecx
cmp dword [esp + 0x2c], 0
jle 0x41e229
mov esi, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 4], eax
push ebx
push dword [esi - 4]
call fcn.0047eec0
add esp, 8
test eax, eax
je 0x41e1ea
inc ebp
add esi, 0x10
cmp ebp, dword [esp + 0x2c]
jl 0x41e1c6
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 4]
jmp 0x41e229
mov ecx, dword [esi]
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x41e229
mov edx, dword [esp + 8]
xor esi, esi
inc esi
shl esi, cl
bt edx, ecx
jb 0x41e229
or dword [esp + 8], esi
push ecx
mov esi, dword [esp + 4]
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0040373c
add esp, 0x10
mov eax, dword [esp + 4]
inc esi
mov dword [esp], esi
mov ebx, edi
inc edi
jmp 0x41e230
inc ebx
inc edi
mov cl, byte [ebx]
cmp cl, 0x2c
je 0x41e22e
test cl, cl
jne 0x41e193
push eax
call fcn.00410c0e
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp dword [esp], edi
jge 0x41e3b0
test edi, edi
jle 0x41e3a7
xor esi, esi
mov dword [esp + 0x14], esi
shl esi, 4
lea eax, [ebp + esi + 4]
mov dword [esp + 4], eax
mov eax, dword [eax]
test eax, eax
jns 0x41e295
push 0x17c
push str..._settings.c
push str.mapping_i_.v___0
call fcn.0047bdbf
add esp, 0xc
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 0x20
jl 0x41e2b7
push 0x17d
push str..._settings.c
push str.mapping_i_.v___32
call fcn.0047bdbf
add esp, 0xc
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 8]
bt ecx, eax
jb 0x41e39a
mov eax, dword [ebp + esi + 8]
cmp eax, 0xffffffff
je 0x41e300
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x41e39a
cmp dword [esp], 0
jle 0x41e30e
lea edi, [ebp + esi + 8]
xor ebp, ebp
push ebp
push dword [esp + 0x38]
push ebx
call fcn.0040312b
add esp, 0xc
cmp eax, dword [edi]
je 0x41e327
inc ebp
cmp ebp, dword [esp]
jl 0x41e2e6
jmp 0x41e310
mov edx, dword [ebp + esi + 0xc]
mov eax, dword [esp]
sar edx, 0x1f
and edx, eax
jmp 0x41e33a
xor ebp, ebp
push 0x191
push str..._settings.c
push str.j___n
call fcn.0047bdbf
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi + 0xc]
mov eax, dword [esp]
shr edx, 0x1f
xor edx, 1
add edx, ebp
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
cmp eax, edx
jle 0x41e371
mov edi, dword [esp]
mov dword [esp + 0x10], edx
lea ebp, [edi - 1]
push ebp
push esi
push ebx
call fcn.0040312b
add esp, 0xc
push eax
push edi
push esi
push ebx
call fcn.0040373c
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp ebp, edx
mov edi, ebp
jg 0x41e34d
mov edi, dword [esp + 4]
push dword [edi]
push edx
push esi
push ebx
call fcn.0040373c
add esp, 0x10
mov al, byte [edi]
mov ecx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x2c]
inc dword [esp]
bts ecx, eax
mov dword [esp + 8], ecx
mov esi, dword [esp + 0x14]
inc esi
cmp esi, edi
jne 0x41e263
cmp dword [esp], edi
jl 0x41e259
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret