Function at 0x453540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5000c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x20
mov esi, ecx
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov edx, eax
mov dword [0x510510], edx
test edx, edx
je 0x45365c
push 0x51052c
push 0x51053c
push 0x40
xorps xmm0, xmm0
mov dword [0x510550], 0
push esi
push 1
movlpd qword [0x51053c], xmm0
movlpd qword [0x510548], xmm0
mov dword [0x510558], 0
movlpd qword [0x510560], xmm0
movlpd qword [0x510568], xmm0
mov dword [0x51055c], 1
mov dword [0x510554], 1
mov dword [0x510544], 0x15
mov dword [0x510570], 0
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x40]
mov ebx, eax
test ebx, ebx
je 0x453830
cmp ebx, 0x8876086a
jg 0x4536e1
je 0x4536a6
cmp ebx, 0x8876017c
je 0x45366e
cmp ebx, 0x88760868
jne 0x4536ed
movaps xmm0, xmmword [0x4fb110]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x20], 0x3872
movaps xmm0, xmmword [0x4fb4f0]
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x1e], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x21
jb 0x453634
push 0x30
push str.D3DERR_DEVICELOST
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x3f]
push eax
push dword [0x50f978]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4773
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x4fae90]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x20], 0x64c
movaps xmm0, xmmword [0x4fb240]
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x1e], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x21
jb 0x453690
push 0x30
push str.D3DERR_OUTOFVIDEOMEMORY
jmp 0x453648
movaps xmm0, xmmword [0x4fb310]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x20], 0x5319
movaps xmm0, xmmword [0x4faf70]
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x1e], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x21
jb 0x4536c8
push 0x30
push str.D3DERR_NOTAVAILABLE
jmp 0x453648
cmp ebx, 0x8876086c
je 0x4537ea
lea esi, [ebp - 7]
test ebx, ebx
jns 0x453720
neg ebx
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 0x4536f6
dec esi
mov byte [esi], 0x2d
jmp 0x453742
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 0x453720
push ecx
lea eax, [ebp - 7]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.004544d0
movaps xmm0, xmmword [str.8QJ__L_]
lea edx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
movups xmmword [ebp - 0x64], xmm0
cmova edx, dword [ebp - 0x38]
xor ecx, ecx
movaps xmm0, xmmword [0x4fb330]
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x44], 0x165c
mov byte [ebp - 0x42], 0
nop dword [eax]
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x21
jb 0x453780
push 0x30
push edx
lea eax, [ebp - 0x63]
mov byte [ebp - 0x42], 0
push eax
push dword [0x50f978]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x45365c
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4537ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x453842
push ecx
push edx
call fcn.004a47b6
add esp, 8
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4773
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x4fb0f0]
xor ecx, ecx
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x44], 0x3a70
movaps xmm0, xmmword [0x4fb4c0]
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x42], 0
nop dword [eax]
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x21
jb 0x453810
push 0x30
mov byte [ebp - 0x42], 0
lea eax, [ebp - 0x63]
push str.D3DERR_INVALIDCALL
jmp 0x45364f
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4773
mov esp, ebp
pop ebp
ret
call fcn.004ac920
int3