Function at 0x4474c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, edx
push ecx
call fcn.0043f79e
add esp, 4
mov esi, eax
lea ecx, [ebp + 4]
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov edi, esi
mov dword [esp + 0x10], ecx
jmp 0x447590
mov al, byte [edi]
test al, al
sete cl
cmp al, 0x2c
setne dl
inc edi
xor dl, cl
jne 0x4474fd
lea ecx, [edi - 1]
test al, al
je 0x44751a
mov byte [ecx], 0
jmp 0x44751c
mov edi, ecx
cmp dword [esp + 0x2c], 0
jle 0x447590
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
push ebx
push dword [esi - 4]
call fcn.004a7d00
add esp, 8
test eax, eax
je 0x447551
inc ebp
add esi, 0x10
cmp ebp, dword [esp + 0x2c]
jl 0x44752d
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
jmp 0x447590
mov ecx, dword [esi]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x447590
mov edx, dword [esp + 8]
xor eax, eax
inc eax
shl eax, cl
bt edx, ecx
jb 0x447590
or dword [esp + 8], eax
push ecx
mov esi, dword [esp + 4]
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00431fad
add esp, 0x10
inc esi
mov dword [esp], esi
mov esi, dword [esp + 4]
mov ebx, edi
lea edi, [ebx + 1]
jmp 0x447599
inc ebx
inc edi
mov al, byte [ebx]
cmp al, 0x2c
je 0x447597
test al, al
jne 0x4474fd
push esi
call fcn.0043f9d4
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov eax, edi
cmp dword [esp], eax
jge 0x447712
test eax, eax
jle 0x447709
xor edx, edx
mov esi, edx
shl esi, 4
lea edi, [ebp + esi + 4]
mov eax, dword [edi]
cmp eax, 0x20
jl 0x447606
push 0x168
push str..._settings.c
push 0x40b374
mov ebx, edi
mov edi, ebp
mov ebp, edx
call fcn.004a509d
mov edx, ebp
mov ebp, edi
mov edi, ebx
mov ebx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x447618
mov eax, dword [esp + 0x2c]
jmp 0x447700
mov eax, dword [ebp + esi + 8]
mov dword [esp + 4], edx
cmp eax, 0xffffffff
je 0x447658
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x44760f
cmp dword [esp], 0
mov dword [esp + 0x14], edi
jle 0x44766a
lea edi, [ebp + esi + 8]
xor ebp, ebp
push ebp
push dword [esp + 0x38]
push ebx
call fcn.004319e9
add esp, 0xc
cmp eax, dword [edi]
je 0x447683
inc ebp
cmp ebp, dword [esp]
jl 0x44763e
jmp 0x44766c
mov dword [esp + 0x14], edi
mov eax, dword [esp]
mov esi, dword [ebp + esi + 0xc]
sar esi, 0x1f
and esi, eax
jmp 0x447696
xor ebp, ebp
push 0x17c
push str..._settings.c
push str.j___n
call fcn.004a509d
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [eax + esi + 0xc]
mov eax, dword [esp]
shr esi, 0x1f
xor esi, 1
add esi, ebp
mov ebx, dword [esp + 0x34]
cmp eax, esi
mov ecx, ebx
mov ebx, dword [esp + 0x30]
jle 0x4476d3
mov edi, dword [esp]
mov dword [esp + 0x10], esi
lea ebp, [edi - 1]
push ebp
push ecx
push ebx
mov esi, ecx
call fcn.004319e9
add esp, 0xc
push eax
push edi
push esi
push ebx
call fcn.00431fad
mov ecx, esi
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp ebp, esi
mov edi, ebp
jg 0x4476ab
mov edi, dword [esp + 0x14]
push dword [edi]
push esi
push ecx
push ebx
call fcn.00431fad
add esp, 0x10
mov cl, byte [edi]
xor eax, eax
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 4]
inc dword [esp]
inc eax
shl eax, cl
or dword [esp + 8], eax
mov eax, edi
inc edx
cmp edx, eax
jne 0x4475cd
cmp dword [esp], eax
jl 0x4475c3
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret