Function at 0x43641c
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.00476568
fld qword [0x58ccb8]
fadd st(1), st(0)
fxch st(1)
fmul qword [0x58ccc0]
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 [0x58ccc8]
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.00468660
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00468660
add esp, 8
mov dword [esp + 0x6c], eax
test edi, edi
jle 0x43658a
xor edx, edx
fld qword [0x58ccd0]
fld qword [0x58ccd8]
mov dword [esp + 0x58], esi
mov ecx, eax
mov esi, dword [esp + 0x70]
fld qword [esp + 0x28]
fld qword [esp + 0x48]
jmp 0x436533
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 0x436531
fadd st(1)
fstp st(2)
fstp st(2)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x58]
cmp esi, dword [0x5d3ec0]
jne 0x4365a2
mov eax, dword [esp + 0x30]
cmp eax, dword [0x5d3ec4]
je 0x436683
mov dword [0x5d3ec0], esi
mov eax, dword [esp + 0x30]
mov dword [0x5d3ec4], eax
mov edx, esi
imul edx, eax
add edx, edx
push edx
push dword [0x5d3ec8]
call fcn.00467278
add esp, 8
mov edi, eax
mov dword [0x5d3ec8], edi
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x436683
xor ecx, ecx
mov eax, ecx
sub eax, ebx
test esi, esi
jle 0x4367b0
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.00476568
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 0x43661a
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 0x4365dd
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x43678f
xor edi, edi
mov edx, edi
sub edx, ebx
test esi, esi
jle 0x4367c2
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 [0x5d3ec8]
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 0x43673d
mov ebx, dword [esp + 0x50]
cmp edx, ebx
jle 0x43673f
mov edx, ebx
jmp 0x43673f
xor edx, edx
test eax, eax
jl 0x43674f
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jle 0x436751
mov eax, ebx
jmp 0x436751
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 0x4366da
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 0x436691
mov eax, dword [esp + 0x70]
push eax
call fcn.0046866e
mov eax, dword [esp + 0x70]
push eax
call fcn.0046866e
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 0x4365dd
jmp 0x436683
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x436691
jmp 0x43678f