Function at 0x140046a90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rbp + 0xf], rax
movsd xmm0, qword [str.yPRVTvLNQ_F_]
movsd qword [rbp - 0x51], xmm0
mov ecx, dword [0x140052d78]
mov dword [rbp - 0x49], ecx
movzx eax, byte [0x140052d7c]
mov byte [rbp - 0x45], al
xor esi, esi
mov r8d, esi
movdqa xmm7, xmmword [0x140053280]
movdqa xmm2, xmmword [0x140053230]
movdqa xmm3, xmmword [0x140053220]
movdqa xmm4, xmmword [0x140053210]
movdqa xmm9, xmmword [0x1400532c0]
movdqa xmm8, xmmword [str.9999]
movdqa xmm5, xmmword [0x1400535c0]
mov r10d, dword [0x14005b090]
cmp r10d, 2
jl 0x140046c60
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
pmuldq xmm1, xmm5
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm4
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm9
movd xmm0, dword [str.yPRVTvLNQ_F_]
xorps xmm1, xmm0
movd dword [rbp - 0x51], xmm1
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
movdqa xmm1, xmm3
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm9
movd xmm0, dword [rbp - 0x4d]
xorps xmm1, xmm0
movd dword [rbp - 0x4d], xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
movdqa xmm1, xmm2
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm9
movd xmm0, ecx
xorps xmm1, xmm0
movd dword [rbp - 0x49], xmm1
mov r8d, 0xc
mov eax, r8d
lea r9, [rbp - 0x51]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x140046c70
movups xmm6, xmmword [str.yPRVTvLNQ_F]
movups xmmword [rbp - 0x41], xmm6
movzx eax, word [0x140052e28]
mov word [rbp - 0x31], ax
cmp byte [0x140052e29], sil
je 0x140046e9e
mov ecx, esi
cmp r10d, 2
jl 0x140046e5f
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
pmuldq xmm1, xmm5
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm4
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
movd ecx, xmm9
movd xmm0, ecx
paddb xmm4, xmm0
movd eax, xmm6
movd xmm0, eax
xorps xmm4, xmm0
movd dword [rbp - 0x41], xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm1, dword [rbp - 0x3d]
xorps xmm3, xmm1
movd dword [rbp - 0x3d], xmm3
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x39]
xorps xmm2, xmm1
movd dword [rbp - 0x39], xmm2
movdqa xmm2, xmmword [0x140053240]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x35]
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
mov ecx, 0x10
mov eax, ecx
lea r8, [rbp - 0x41]
add r8, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x12
jl 0x140046e70
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
lea rdi, [rbp + 0x5f]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rdi
mov rbx, qword [rdi]
mov rax, rbx
xor rax, rcx
mov qword [rbp - 0x19], rax
mov qword [rdi], rsi
mov rax, qword [0x14005b9b8]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x41]
call rax
nop
mov qword [rdi], rbx
mov qword [0x14005bac8], rax
test rax, rax
jne 0x140046f0f
mov r9d, 0x40
lea r8, str.Desire
lea rdx, str.Make_sure_Medal_is_open
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14004712b
movdqa xmm0, xmmword [0x1400531b0]
movdqu xmmword [rbp - 1], xmm0
lea rdx, [rbp - 1]
mov rcx, rax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov dword [rsp + 0x30], esi
mov eax, dword [0x14005bac0]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14005baac]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14005bac8]
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [0x14005b850]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x140047035
mov qword [0x14005b8ec], rsi
mov dword [0x14005b8f4], esi
mov qword [0x14005b8f8], 1
mov qword [0x14005b914], rsi
mov dword [0x14005b908], 1
mov r9, qword [0x14005bac8]
mov qword [0x14005b900], r9
mov dword [0x14005b8e8], 0x15
mov eax, dword [0x14005baac]
mov dword [0x14005b8e0], eax
mov eax, dword [0x14005bac0]
mov dword [0x14005b8e4], eax
mov dword [0x14005b90c], 1
mov dword [0x14005b910], 0x50
mov dword [0x14005b91c], 0x80000000
mov rcx, qword [0x14005b850]
mov rax, qword [rcx]
lea rdx, [0x14005b858]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rsi
lea rdx, [0x14005b8e0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x14004703f
mov rcx, qword [0x14005b850]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x14004712b
mov rbx, qword [0x14005b840]
test rbx, rbx
je 0x140047051
inc dword [rbx + 0xec]
mov ecx, 0x5e68
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x21], rcx
mov qword [rbp - 0x51], rax
test rax, rax
je 0x14004707d
xor edx, edx
mov rcx, rax
call fcn.140001380
jmp 0x140047080
mov rax, rsi
mov qword [0x14005b840], rax
call fcn.1400053a0
test rbx, rbx
je 0x140047098
mov qword [0x14005b840], rbx
mov rcx, qword [0x14005bac8]
call fcn.14002bad0
mov rdi, qword [0x14005b858]
mov rbx, qword [0x14005b840]
test rbx, rbx
je 0x1400470bd
inc dword [rbx + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400470ec
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x1400470ef
mov rax, rsi
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
call fcn.140045920
mov rcx, qword [0x14005b850]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, 1
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140049b40
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rbp
ret