Function at 0x433d60
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.0047e500
fld qword [0x579b68]
fadd st(1), st(0)
fxch st(1)
fmul qword [0x579b70]
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 [0x579b78]
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.0047058f
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
call fcn.0047058f
add esp, 8
mov dword [esp + 0x6c], eax
test edi, edi
jle 0x433ece
xor edx, edx
fld qword [0x579b80]
fld qword [0x579b88]
mov dword [esp + 0x58], esi
mov ecx, eax
mov esi, dword [esp + 0x70]
fld qword [esp + 0x28]
fld qword [esp + 0x48]
jmp 0x433e77
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 0x433e75
fadd st(1)
fstp st(2)
fstp st(2)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x58]
cmp esi, dword [0x5be6a0]
jne 0x433ee6
mov eax, dword [esp + 0x30]
cmp eax, dword [0x5be6a4]
je 0x433fc7
mov dword [0x5be6a0], esi
mov eax, dword [esp + 0x30]
mov dword [0x5be6a4], eax
mov edx, esi
imul edx, eax
add edx, edx
push edx
push dword [0x5be6a8]
call fcn.0046efdf
add esp, 8
mov edi, eax
mov dword [0x5be6a8], edi
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x433fc7
xor ecx, ecx
mov eax, ecx
sub eax, ebx
test esi, esi
jle 0x4340f4
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.0047e500
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 0x433f5e
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 0x433f21
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4340d3
xor edi, edi
mov edx, edi
sub edx, ebx
test esi, esi
jle 0x434106
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 [0x5be6a8]
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 0x434081
mov ebx, dword [esp + 0x50]
cmp edx, ebx
jle 0x434083
mov edx, ebx
jmp 0x434083
xor edx, edx
test eax, eax
jl 0x434093
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jle 0x434095
mov eax, ebx
jmp 0x434095
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 0x43401e
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 0x433fd5
mov eax, dword [esp + 0x70]
push eax
call fcn.0047059d
mov eax, dword [esp + 0x70]
push eax
call fcn.0047059d
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 0x433f21
jmp 0x433fc7
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x433fd5
jmp 0x4340d3