Function at 0x446dd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.004e2da0
mov eax, dword [0x563374]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], esi
cmp edi, esi
jne 0x446e11
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004e6abd
add esp, 0x34
ret
push ebp
call fcn.0045dfd0
mov ebp, eax
cmp ebp, esi
je 0x447140
push 0x446d80
push 0x57f990
call fcn.00434b00
add esp, 8
neg eax
sbb eax, eax
test dword [0x57f998], eax
je 0x447140
push ebx
cmp dword [0x57f994], esi
je 0x446f1e
call fcn.0048d870
mov ecx, dword [0x57f98c]
push ecx
mov esi, eax
call fcn.00434a50
mov edx, dword [0x57f540]
push esi
push edx
call fcn.00434bb0
mov ebx, eax
mov eax, dword [0x57f98c]
push eax
mov dword [esp + 0x28], ebx
call fcn.00434ab0
add esp, 0x10
test ebx, ebx
jne 0x446e97
mov ecx, dword [0x57f988]
push ecx
call fcn.00434a80
add esp, 4
mov edx, dword [0x57f974]
mov eax, dword [0x57f978]
mov ecx, dword [0x57f970]
mov dword [esp + 0x24], edx
mov edx, dword [0x57f544]
mov dword [esp + 0x28], eax
mov eax, dword [0x57f548]
mov dword [esp + 0x2c], edx
mov edx, dword [0x57f54c]
mov esi, ecx
add ecx, edi
mov dword [esp + 0x30], eax
mov eax, dword [0x57f550]
mov dword [esp + 0x34], edx
mov edx, dword [0x57f554]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [0x57f970], ecx
cmp ecx, 0x3ff
jb 0x446f29
mov eax, 0x401005
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0xfffffc01
add ecx, eax
mov dword [0x57f970], ecx
mov dword [0x57f96c], 0x3ff
jmp 0x446f3f
mov dword [esp + 0x18], esi
mov ebx, esi
jmp 0x446e88
mov eax, dword [0x57f96c]
cmp eax, 0x3ff
jae 0x446f3f
cmp ecx, eax
jbe 0x446f3f
mov dword [0x57f96c], ecx
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
mov edx, edi
sub edx, ecx
xor ecx, ecx
test edx, edx
setg cl
add ecx, eax
add dword [0x57f978], ecx
test ebx, ebx
jne 0x446f7d
mov edx, dword [0x57f988]
push edx
call fcn.00434ab0
add esp, 4
mov dword [esp + 0x1c], 0
test edi, edi
jle 0x4470a8
mov dword [esp + 0x10], edi
jmp 0x446f97
mov edi, dword [esp + 0x10]
cmp edi, 0x14
jle 0x446fa1
mov edi, 0x14
push 0
call fcn.00451a20
push eax
push ebp
call fcn.0045e020
add esp, 0xc
test eax, eax
je 0x44713f
push 0x14
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.0045e1d0
add esp, 0xc
test eax, eax
je 0x44713f
lea ebx, [edi + esi - 0x3ff]
test ebx, ebx
jle 0x447002
mov ecx, edi
sub ecx, ebx
push ecx
lea edx, [esi + 0x57f558]
push edx
push ebp
call fcn.0045e1d0
add esp, 0xc
test eax, eax
je 0x44713f
push ebx
push 0x57f558
jmp 0x44700a
push edi
lea eax, [esi + 0x57f558]
push eax
push ebp
call fcn.0045e1d0
add esp, 0xc
test eax, eax
je 0x44713f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push ebp
call fcn.0045e1d0
add esp, 0xc
test eax, eax
je 0x44713f
push 8
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.0045e1d0
add esp, 0xc
test eax, eax
je 0x44713f
push 0
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.0045e1e0
add esp, 0xc
test eax, eax
je 0x44713f
inc dword [esp + 0x28]
add dword [esp + 0x14], edi
xor eax, eax
test edi, edi
jle 0x44708a
mov cl, byte [esp + eax + 0x2c]
xor byte [esi + 0x57f558], cl
inc esi
cmp esi, 0x3ff
jl 0x447085
xor esi, esi
inc eax
cmp eax, edi
jl 0x447070
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x10], 0x14
add eax, 0x14
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x4c]
jl 0x446f93
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4470bb
mov edx, dword [0x57f988]
push edx
call fcn.00434a80
add esp, 4
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [esp + eax + 0x2c]
xor byte [eax + 0x57f544], cl
movzx edx, byte [esp + eax + 0x2d]
movzx ecx, byte [esp + eax + 0x2e]
xor byte [eax + 0x57f545], dl
xor byte [eax + 0x57f546], cl
movzx edx, byte [esp + eax + 0x2f]
movzx ecx, byte [esp + eax + 0x30]
xor byte [eax + 0x57f547], dl
xor byte [eax + 0x57f548], cl
add eax, 5
cmp eax, 0x14
jl 0x4470c0
fld qword [0x50aba0]
fld qword [0x57f980]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x447122
fadd qword [esp + 0x50]
fstp qword [0x57f980]
jmp 0x447124
fstp st(0)
test ebx, ebx
jne 0x447137
mov edx, dword [0x57f988]
push edx
call fcn.00434ab0
add esp, 4
mov dword [esp + 0x20], 1
pop ebx
push ebp
call fcn.0045e000
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
add esp, 4
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.004e6abd
add esp, 0x34
ret