Function at 0x461190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dce10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x52d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x20
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov edx, eax
mov dword [0x53d290], edx
test edx, edx
je 0x4612c8
push 0x53d2a8
push 0x53d2b4
push 0x40
xorps xmm0, xmm0
mov dword [0x53d2c8], 0
push esi
push 1
movlpd qword [0x53d2b4], xmm0
movlpd qword [0x53d2c0], xmm0
mov dword [0x53d2d0], 0
movlpd qword [0x53d2d8], xmm0
movlpd qword [0x53d2e0], xmm0
mov dword [0x53d2d4], 1
mov dword [0x53d2cc], 1
mov dword [0x53d2bc], 0x15
mov dword [0x53d2e8], 0
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x40]
mov ebx, eax
test ebx, ebx
je 0x4614c0
cmp ebx, 0x8876086a
jg 0x461359
je 0x46131d
cmp ebx, 0x8876017c
je 0x4612e5
cmp ebx, 0x88760868
jne 0x461369
movaps xmm0, xmmword [0x5275b0]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], 0x5c16
movaps xmm0, xmmword [0x527390]
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x2a], 0
nop dword [eax]
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x21
jb 0x4612a0
push 0x30
push str.D3DERR_DEVICELOST
mov byte [ebp - 0x2a], 0
lea eax, [ebp - 0x4b]
push eax
push dword [0x53ced0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b323e
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x527610]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], 0x5913
movaps xmm0, xmmword [0x527370]
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x2a], 0
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x21
jb 0x461307
push 0x30
push str.D3DERR_OUTOFVIDEOMEMORY
jmp 0x4612b4
movaps xmm0, xmmword [0x5277d0]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], 0x773d
movaps xmm0, xmmword [0x5274d0]
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x2a], 0
nop
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x21
jb 0x461340
push 0x30
push str.D3DERR_NOTAVAILABLE
jmp 0x4612b4
cmp ebx, 0x8876086c
je 0x46147d
test ebx, ebx
jns 0x461398
lea esi, [ebp - 0x13]
neg ebx
nop
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x461370
dec esi
mov byte [esi], 0x2d
jmp 0x4613c2
lea esi, [ebp - 0x13]
nop dword [eax + eax]
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x4613a0
xor eax, eax
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x13]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, 0xf
mov dword [ebp - 0x30], ecx
cmp esi, edx
je 0x4613f4
mov eax, edx
lea ecx, [ebp - 0x44]
sub eax, esi
push eax
push esi
call fcn.004431a0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
movaps xmm0, xmmword [0x527720]
lea edx, [ebp - 0x44]
cmp ecx, 0x10
mov word [ebp - 0x50], 0x602a
movups xmmword [ebp - 0x70], xmm0
cmovae edx, eax
mov byte [ebp - 0x4e], 0
movaps xmm0, xmmword [0x527450]
xor ecx, ecx
movups xmmword [ebp - 0x60], xmm0
nop
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x21
jb 0x461420
push 0x30
push edx
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x4e], 0
push eax
push dword [0x53ced0]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4612c8
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46146e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4614c7
push edx
push ecx
call fcn.004b3286
add esp, 8
jmp 0x4612c8
movaps xmm0, xmmword [str.bOTCER]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x50], 0x842
movaps xmm0, xmmword [0x527570]
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x4e], 0
nop
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x21
jb 0x4614a0
push 0x30
mov byte [ebp - 0x4e], 0
lea eax, [ebp - 0x6f]
push str.D3DERR_INVALIDCALL
jmp 0x4612bb
mov al, 1
jmp 0x4612ca
call fcn.004ba0c2
int3