Function at 0x424520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4dd094]
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 [0x4e111c], edx
test edx, edx
je 0x42463c
push 0x4e1134
push 0x4e1148
push 0x40
xorps xmm0, xmm0
mov dword [0x4e115c], 0
push esi
push 1
movlpd qword [0x4e1148], xmm0
movlpd qword [0x4e1154], xmm0
mov dword [0x4e1164], 0
movlpd qword [0x4e116c], xmm0
movlpd qword [0x4e1174], xmm0
mov dword [0x4e1168], 1
mov dword [0x4e1160], 1
mov dword [0x4e1150], 0x15
mov dword [0x4e117c], 0
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x40]
mov ebx, eax
test ebx, ebx
je 0x424840
cmp ebx, 0x8876086a
jg 0x4246c1
je 0x424686
cmp ebx, 0x8876017c
je 0x42464e
cmp ebx, 0x88760868
jne 0x4246cd
movaps xmm0, xmmword [0x4d71a0]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x20], 0x3e74
movaps xmm0, xmmword [0x4d74e0]
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 0x424614
push 0x30
push str.D3DERR_DEVICELOST
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x3f]
push eax
push dword [0x4e0c18]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476d2c
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x4d7150]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x20], 0x276d
movaps xmm0, xmmword [0x4d7490]
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 0x424670
push 0x30
push str.D3DERR_OUTOFVIDEOMEMORY
jmp 0x424628
movaps xmm0, xmmword [0x4d72e0]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x20], 0x440e
movaps xmm0, xmmword [0x4d7020]
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 0x4246a8
push 0x30
push str.D3DERR_NOTAVAILABLE
jmp 0x424628
cmp ebx, 0x8876086c
je 0x4247fa
lea esi, [ebp - 7]
test ebx, ebx
jns 0x424700
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 0x4246d6
dec esi
mov byte [esi], 0x2d
jmp 0x424722
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 0x424700
lea eax, [ebp - 7]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
cmp esi, eax
jne 0x42474c
mov eax, 0xf
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x24], eax
jmp 0x42475e
lea eax, [ebp - 7]
sub eax, esi
lea ecx, [ebp - 0x38]
push eax
push esi
call fcn.00409da0
mov eax, dword [ebp - 0x24]
movaps xmm0, xmmword [0x4d7560]
lea edx, [ebp - 0x38]
cmp eax, 0x10
mov word [ebp - 0x44], 0x703a
movups xmmword [ebp - 0x64], xmm0
cmovae edx, dword [ebp - 0x38]
xor ecx, ecx
movaps xmm0, xmmword [0x4d7230]
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x42], 0
nop word [eax + eax]
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x21
jb 0x424790
push 0x30
push edx
lea eax, [ebp - 0x63]
mov byte [ebp - 0x42], 0
push eax
push dword [0x4e0c18]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x42463c
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4247de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424852
push ecx
push edx
call fcn.00476d74
add esp, 8
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476d2c
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x4d70f0]
xor ecx, ecx
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x44], 0x2b61
movaps xmm0, xmmword [0x4d7430]
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 0x424820
push 0x30
mov byte [ebp - 0x42], 0
lea eax, [ebp - 0x63]
push str.D3DERR_INVALIDCALL
jmp 0x42462f
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d2c
mov esp, ebp
pop ebp
ret
call fcn.0047ebc0
int3