Function at 0x420d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bf90
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4da080]
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 [0x4de0b8], edx
test edx, edx
je 0x420e58
push 0x4de0d0
push 0x4de0dc
push 0x40
xorps xmm0, xmm0
mov dword [0x4de0f0], 0
push esi
push 1
movlpd qword [0x4de0dc], xmm0
movlpd qword [0x4de0e8], xmm0
mov dword [0x4de0f8], 0
movlpd qword [0x4de100], xmm0
movlpd qword [0x4de108], xmm0
mov dword [0x4de0fc], 1
mov dword [0x4de0f4], 1
mov dword [0x4de0e4], 0x15
mov dword [0x4de110], 0
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x40]
mov ebx, eax
test ebx, ebx
je 0x421050
cmp ebx, 0x8876086a
jg 0x420ee9
je 0x420ead
cmp ebx, 0x8876017c
je 0x420e75
cmp ebx, 0x88760868
jne 0x420ef9
movaps xmm0, xmmword [0x4d3fe0]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], 0x2268
movaps xmm0, xmmword [0x4d42a0]
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 0x420e30
push 0x30
push str.D3DERR_DEVICELOST
mov byte [ebp - 0x2a], 0
lea eax, [ebp - 0x4b]
push eax
push dword [0x4ddcf8]
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.00472d8e
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [str._aLW_FQ]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], 0xb41
movaps xmm0, xmmword [0x4d40f0]
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 0x420e97
push 0x30
push str.D3DERR_OUTOFVIDEOMEMORY
jmp 0x420e44
movaps xmm0, xmmword [0x4d4040]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], 0x3c76
movaps xmm0, xmmword [0x4d43b0]
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 0x420ed0
push 0x30
push str.D3DERR_NOTAVAILABLE
jmp 0x420e44
cmp ebx, 0x8876086c
je 0x42100d
test ebx, ebx
jns 0x420f28
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 0x420f00
dec esi
mov byte [esi], 0x2d
jmp 0x420f52
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 0x420f30
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 0x420f84
mov eax, edx
lea ecx, [ebp - 0x44]
sub eax, esi
push eax
push esi
call fcn.00402970
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
movaps xmm0, xmmword [0x4d42f0]
lea edx, [ebp - 0x44]
cmp ecx, 0x10
mov word [ebp - 0x50], 0x7e34
movups xmmword [ebp - 0x70], xmm0
cmovae edx, eax
mov byte [ebp - 0x4e], 0
movaps xmm0, xmmword [0x4d4070]
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 0x420fb0
push 0x30
push edx
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x4e], 0
push eax
push dword [0x4ddcf8]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x420e58
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420ffe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421057
push edx
push ecx
call fcn.00472dd6
add esp, 8
jmp 0x420e58
movaps xmm0, xmmword [0x4d4170]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x50], 0x5e14
movaps xmm0, xmmword [0x4d3f30]
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 0x421030
push 0x30
mov byte [ebp - 0x4e], 0
lea eax, [ebp - 0x6f]
push str.D3DERR_INVALIDCALL
jmp 0x420e4b
mov al, 1
jmp 0x420e5a
call fcn.0047a550
int3