Function at 0x4af03c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x421458]
call fcn.00427aec
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.00406388
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406388
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004280b4
mov ecx, dword [ebp - 4]
pop edx
call fcn.00423120
mov dl, 6
mov eax, dword [ebp - 0xc]
call fcn.004291a4
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
sar eax, 1
jns 0x4af0e5
adc eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
test eax, eax
jl 0x4af1ec
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fild dword [ebp - 0x10]
fdivrp st(1)
fmul dword [0x4af210]
call fcn.00402b28
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
call fcn.004ae8c4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jge 0x4af167
fild dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, eax
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdivp st(1)
fmul dword [0x4af210]
call fcn.00402b28
mov ecx, eax
mov edx, 0xffffff
mov eax, dword [ebp - 0x14]
call fcn.004ae8c4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00428224
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
dec esi
test esi, esi
jl 0x4af1e0
inc esi
xor edi, edi
mov eax, dword [ebp - 0x20]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
add eax, eax
add eax, 0x64
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov ecx, 0xff
xor edx, edx
call fcn.004ac9ec
mov ecx, dword [ebp - 0x1c]
mov edx, 0xffffff
mov eax, dword [ebp - 0x14]
call fcn.004ae8c4
mov ebx, eax
mov eax, ebx
call fcn.004070b0
push eax
mov eax, ebx
call fcn.004070ac
push eax
mov eax, ebx
call fcn.004070a8
mov edx, eax
lea eax, [ebp - 0x18]
pop ecx
call fcn.004af214
inc edi
dec esi
jne 0x4af187
inc dword [ebp - 0x10]
dec dword [ebp - 0x24]
jne 0x4af104
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004231a8
lea eax, [ebp - 0xc]
call fcn.0040da1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8