Function at 0x4307b4
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.0046ecb8
fld qword [0x570450]
fadd st(1), st(0)
fxch st(1)
fmul qword [0x570458]
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 [0x570460]
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.00460900
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00460900
add esp, 8
mov dword [esp + 0x6c], eax
test edi, edi
jle 0x430922
xor edx, edx
fld qword [0x570468]
fld qword [0x570470]
mov dword [esp + 0x58], esi
mov ecx, eax
mov esi, dword [esp + 0x70]
fld qword [esp + 0x28]
fld qword [esp + 0x48]
jmp 0x4308cb
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 0x4308c9
fadd st(1)
fstp st(2)
fstp st(2)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x58]
cmp esi, dword [0x5b6480]
jne 0x43093a
mov eax, dword [esp + 0x30]
cmp eax, dword [0x5b6484]
je 0x430a1b
mov dword [0x5b6480], esi
mov eax, dword [esp + 0x30]
mov dword [0x5b6484], eax
mov edx, esi
imul edx, eax
add edx, edx
push edx
push dword [0x5b6488]
call fcn.0045f9f8
add esp, 8
mov edi, eax
mov dword [0x5b6488], edi
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x430a1b
xor ecx, ecx
mov eax, ecx
sub eax, ebx
test esi, esi
jle 0x430b48
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.0046ecb8
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 0x4309b2
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 0x430975
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x430b27
xor edi, edi
mov edx, edi
sub edx, ebx
test esi, esi
jle 0x430b5a
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 [0x5b6488]
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 0x430ad5
mov ebx, dword [esp + 0x50]
cmp edx, ebx
jle 0x430ad7
mov edx, ebx
jmp 0x430ad7
xor edx, edx
test eax, eax
jl 0x430ae7
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jle 0x430ae9
mov eax, ebx
jmp 0x430ae9
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 0x430a72
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 0x430a29
mov eax, dword [esp + 0x70]
push eax
call fcn.0046090e
mov eax, dword [esp + 0x70]
push eax
call fcn.0046090e
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 0x430975
jmp 0x430a1b
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x430a29
jmp 0x430b27