Function at 0x4f45d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
imul ecx, dword [ebx + 0x48], 0x5c
lea edx, [ebx + 0x8fbc]
mov eax, dword [ebx + 0x98bc]
add ecx, 0x53b4e0
xor esi, esi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebx + ecx*4 + 0x9a18], eax
mov ecx, 0x240
nop dword [eax]
mov eax, dword [edx - 4]
lea edx, [edx - 4]
sar eax, 0xa
add esi, eax
sub ecx, 1
jne 0x4f4610
movsd xmm1, qword [0x53b310]
movsd xmm0, qword [0x53b328]
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x1c], xmm0
test esi, esi
je 0x4f465f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_log_precise
divsd xmm0, qword [ebp - 0x1c]
movsd xmm1, qword [ebp - 0x24]
cvttsd2si eax, xmm0
jmp 0x4f4661
xor eax, eax
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edx, 0x15
movsd qword [ebp - 0x2c], xmm0
mov dword [ebx + esi*4 + 0x98c0], eax
lea eax, [esi*2 + 1]
add eax, edi
imul esi, esi, 0x54
imul ecx, eax, 0xa8
add esi, 0x991c
add ecx, dword [ebp + 8]
add esi, ebx
mov eax, dword [ebp - 4]
dec edx
sub ecx, 8
mov dword [ebp - 0xc], edx
add esi, 0xfffffffc
mov dword [ebp - 8], ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov ecx, dword [eax + edx*4 + 4]
xor edi, edi
mov esi, dword [eax + edx*4]
mov dword [ebp - 0x10], ebx
cmp esi, ecx
jge 0x4f4739
mov eax, ecx
sub eax, esi
cmp eax, 2
jl 0x4f4704
mov edx, dword [ebp + 0x14]
sub ecx, esi
sub ecx, 2
add edx, 0x86c0
shr ecx, 1
inc ecx
lea edx, [edx + esi*4]
lea esi, [esi + ecx*2]
nop word [eax + eax]
mov eax, dword [edx - 4]
lea edx, [edx + 8]
sar eax, 0xa
add edi, eax
mov eax, dword [edx - 8]
sar eax, 0xa
add ebx, eax
sub ecx, 1
jne 0x4f46e0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp esi, dword [ecx + eax*4 + 4]
jge 0x4f4713
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + esi*4 + 0x86bc]
sar ecx, 0xa
jmp 0x4f4716
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + edi]
add ecx, eax
je 0x4f4739
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_log_precise
divsd xmm0, qword [ebp - 0x1c]
cvttsd2si eax, xmm0
jmp 0x4f473b
xor eax, eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [esi], eax
movsd xmm0, qword [ecx]
ucomisd xmm0, qword [ebp - 0x2c]
lahf
test ah, 0x44
jnp 0x4f4765
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_log_precise
divsd xmm0, qword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
cvttsd2si eax, xmm0
jmp 0x4f4767
xor eax, eax
mov edx, dword [ebp - 0xc]
movsd xmm1, qword [ebp - 0x24]
mov dword [esi + 0xa8], eax
test edx, edx
jne 0x4f4695
cmp dword [ebp + 0x10], 1
jne 0x4f48d7
mov ebx, dword [ebp + 0x14]
mov eax, 2
xor esi, esi
lea edx, [ebx + 0x9a20]
nop word [eax + eax]
cmp dword [edx - 4], 0
lea edx, [edx - 4]
lea ecx, [esi + 1]
cmove ecx, esi
lea esi, [ecx + 1]
sub eax, 1
jne 0x4f47a0
mov eax, dword [ebx + 0x98c0]
sub eax, dword [ebx + 0x98c4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
cmovge esi, ecx
xor edi, edi
mov dword [ebp + 0x10], esi
lea ecx, [ebx + 0x991c]
lea esi, [edi + 0x15]
nop word [eax + eax]
mov eax, dword [ecx - 4]
lea ecx, [ecx - 4]
sub eax, dword [ecx + 0x54]
cdq
xor eax, edx
sub eax, edx
add edi, eax
sub esi, 1
jne 0x4f47e0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
shl edx, 4
cmp edi, 0x64
lea eax, [ecx + 1]
cmovge eax, ecx
cmp eax, 5
jne 0x4f48ae
lea esi, [ebx + 0x7c]
mov ecx, 0x53b2f0
add esi, edx
mov edx, dword [0x53b2f0]
mov dword [ebp - 0xc], esi
xor ebx, ebx
lea eax, [ecx + 4]
mov dword [esi], ebx
mov ecx, eax
mov esi, dword [eax]
xor edi, edi
mov eax, edx
mov dword [ebp + 0x10], ecx
mov edx, esi
cmp eax, esi
jge 0x4f4886
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx + eax*4]
add ecx, 0x98c8
sub esi, eax
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
sub eax, dword [ecx + 0x50]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [ecx + 0xa4]
sub eax, dword [ecx + 0xf8]
cdq
xor eax, edx
sub eax, edx
add edi, eax
sub esi, 1
jne 0x4f4850
cmp ebx, 0xa
jge 0x4f48a5
cmp edi, 0xa
jge 0x4f48a5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, 1
mov esi, dword [ebp - 0xc]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0xc], esi
cmp ecx, 0x53b300
jl 0x4f4823
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edx, dword [ecx]
jmp 0x4f488b
mov dword [edx + ebx + 0x7c], 0
mov dword [edx + ebx + 0x80], 0
mov dword [edx + ebx + 0x84], 0
mov dword [edx + ebx + 0x88], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret