Function at 0x433864
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.0047fc48
fld qword [0x596b30]
fadd st(1), st(0)
fxch st(1)
fmul qword [0x596b38]
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 [0x596b40]
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.0047206f
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
call fcn.0047206f
add esp, 8
mov dword [esp + 0x6c], eax
test edi, edi
jle 0x4339d2
xor edx, edx
fld qword [0x596b48]
fld qword [0x596b50]
mov dword [esp + 0x58], esi
mov ecx, eax
mov esi, dword [esp + 0x70]
fld qword [esp + 0x28]
fld qword [esp + 0x48]
jmp 0x43397b
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 0x433979
fadd st(1)
fstp st(2)
fstp st(2)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x58]
cmp esi, dword [0x5dfce0]
jne 0x4339ea
mov eax, dword [esp + 0x30]
cmp eax, dword [0x5dfce4]
je 0x433acb
mov dword [0x5dfce0], esi
mov eax, dword [esp + 0x30]
mov dword [0x5dfce4], eax
mov edx, esi
imul edx, eax
add edx, edx
push edx
push dword [0x5dfce8]
call fcn.0047071f
add esp, 8
mov edi, eax
mov dword [0x5dfce8], edi
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x433acb
xor ecx, ecx
mov eax, ecx
sub eax, ebx
test esi, esi
jle 0x433bf8
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.0047fc48
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 0x433a62
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 0x433a25
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x433bd7
xor edi, edi
mov edx, edi
sub edx, ebx
test esi, esi
jle 0x433c0a
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 [0x5dfce8]
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 0x433b85
mov ebx, dword [esp + 0x50]
cmp edx, ebx
jle 0x433b87
mov edx, ebx
jmp 0x433b87
xor edx, edx
test eax, eax
jl 0x433b97
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jle 0x433b99
mov eax, ebx
jmp 0x433b99
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 0x433b22
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 0x433ad9
mov eax, dword [esp + 0x70]
push eax
call fcn.0047207d
mov eax, dword [esp + 0x70]
push eax
call fcn.0047207d
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 0x433a25
jmp 0x433acb
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x433ad9
jmp 0x433bd7