Function at 0x431da8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
push edi
push esi
push ebx
sub esp, 0x94
mov dword [esp + 0x60], edx
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0x18]
sub edx, ecx
mov dword [esp + 0x50], edx
lea esi, [edx + 1]
mov ebx, dword [ebp + 0x1c]
sub ebx, dword [ebp + 0x14]
mov dword [esp + 0x54], ebx
lea ecx, [ebx + 1]
mov dword [esp + 0x30], ecx
mov eax, esi
shr eax, 0x1f
lea eax, [eax + edx + 1]
sar eax, 1
mov dword [esp + 0x5c], eax
mov eax, ecx
shr eax, 0x1f
lea ebx, [eax + ebx + 1]
sar ebx, 1
mov dword [esp + 0x40], esi
fild dword [esp + 0x40]
fstp qword [esp]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fstp qword [esp + 8]
call fcn.0046f7f4
fld qword [0x570430]
fadd st(1), st(0)
fxch st(1)
fmul qword [0x570438]
faddp st(1)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x38]
fldcw word [esp + 0x18]
mov edi, dword [esp + 0x38]
fld qword [0x570440]
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fdiv st(1)
fstp qword [esp + 0x48]
neg eax
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fild dword [esp + 0x38]
fmulp st(2)
fdivrp st(1)
fstp qword [esp + 0x28]
lea edx, [edi + edi]
add edx, edx
mov dword [esp + 0x6c], edx
push edx
call fcn.004612f0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
call fcn.004612f0
add esp, 8
mov dword [esp + 0x6c], eax
test edi, edi
jle 0x431f16
xor edx, edx
fld qword [0x570448]
fld qword [0x570450]
mov dword [esp + 0x58], esi
mov ecx, eax
mov esi, dword [esp + 0x70]
fld qword [esp + 0x28]
fld qword [esp + 0x48]
jmp 0x431ebf
fadd st(1)
fld st(0)
fmul st(4)
fsincos
fmul st(4)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esi + edx*4]
fldcw word [esp + 0x18]
fmul st(3)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [ecx + edx*4]
fldcw word [esp + 0x18]
inc edx
cmp edx, edi
jl 0x431ebd
fadd st(1)
fstp st(2)
fstp st(2)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x58]
cmp esi, dword [0x5b64a0]
jne 0x431f2e
mov eax, dword [esp + 0x30]
cmp eax, dword [0x5b64a4]
je 0x43200f
mov dword [0x5b64a0], esi
mov eax, dword [esp + 0x30]
mov dword [0x5b64a4], eax
mov edx, esi
imul edx, eax
add edx, edx
push edx
push dword [0x5b64a8]
call fcn.004603e8
add esp, 8
mov edi, eax
mov dword [0x5b64a8], edi
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x43200f
xor ecx, ecx
mov eax, ecx
sub eax, ebx
test esi, esi
jle 0x43213c
xor edx, edx
mov dword [esp + 0x7c], edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
mov edx, esi
imul edx, ecx
lea eax, [edi + edx*2]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x68], ebx
fstp qword [esp + 0x48]
mov ebx, eax
mov edi, dword [esp + 0x7c]
mov eax, edi
sub eax, dword [esp + 0x5c]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fstp qword [esp]
fld qword [esp + 0x48]
fstp qword [esp + 8]
call fcn.0046f7f4
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x38]
fldcw word [esp + 0x18]
mov edx, dword [esp + 0x38]
mov word [ebx], dx
add ebx, 2
inc edi
cmp edi, esi
jl 0x431fa6
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x68]
inc ecx
mov edx, dword [esp + 0x30]
cmp ecx, edx
jl 0x431f69
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x43211b
xor edi, edi
mov edx, edi
sub edx, ebx
test esi, esi
jle 0x43214e
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov eax, edi
imul eax, esi
lea ecx, [eax + eax]
add ecx, ecx
add ecx, dword [esp + 0x34]
mov dword [esp + 0x7c], ecx
mov ecx, edx
neg ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [0x5b64a8]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x64], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x74], esi
mov dword [esp + 0x80], ecx
mov eax, esi
mov esi, dword [esp + 0x5c]
sub eax, esi
movsx ecx, word [ecx]
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + ecx*4]
mov edi, dword [esp + 0x70]
mov ecx, dword [edi + ecx*4]
mov edx, dword [esp + 0x78]
imul edx, ebx
mov edi, eax
imul edi, ecx
add edx, edi
sar edx, 8
add edx, esi
imul eax, ebx
imul ecx, dword [esp + 0x64]
add eax, ecx
sar eax, 8
add eax, dword [esp + 0x68]
test edx, edx
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x74]
jl 0x4320c9
mov ebx, dword [esp + 0x50]
cmp edx, ebx
jle 0x4320cb
mov edx, ebx
jmp 0x4320cb
xor edx, edx
test eax, eax
jl 0x4320db
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jle 0x4320dd
mov eax, ebx
jmp 0x4320dd
xor eax, eax
add edx, edx
add edx, edx
add edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
imul eax, ebx
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x7c]
mov dword [edx + esi*4], eax
add ecx, 2
inc esi
cmp esi, ebx
jl 0x432066
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x58]
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x43201d
mov eax, dword [esp + 0x70]
push eax
call fcn.004612fe
mov eax, dword [esp + 0x70]
push eax
call fcn.004612fe
add esp, 0x9c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
inc ecx
mov edx, dword [esp + 0x30]
cmp ecx, edx
jl 0x431f69
jmp 0x43200f
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x43201d
jmp 0x43211b