Function at 0x4027c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xae8
mov eax, dword [0x411040]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm2, xmmword [0x40f1c0]
lea edx, [ebp - 0xab0]
push esi
push edi
mov ecx, 0x2a3
lea edi, [ebp - 0xad0]
mov esi, 0x4110c8
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xad0]
lea esi, [ebp - 0xaa0]
movups xmm0, xmmword [ecx + eax]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx + eax], xmm0
movups xmm0, xmmword [ebp + eax - 0xac0]
xorps xmm0, xmm2
movups xmmword [ebp + eax - 0xac0], xmm0
movups xmm0, xmmword [edx + eax]
xorps xmm1, xmm0
movups xmmword [edx + eax], xmm1
movups xmm0, xmmword [esi + eax]
xorps xmm0, xmm2
movups xmmword [esi + eax], xmm0
add eax, 0x40
cmp eax, 0xa80
jl 0x402815
cmp eax, 0xa8c
jge 0x402870
nop dword [eax]
xor byte [ebp + eax - 0xad0], 0x3a
inc eax
cmp eax, 0xa8c
jl 0x402860
xor edi, edi
lea esi, [ebp - 0x9ce]
mov dword [ebp - 0xad8], edi
mov dword [ebp - 0xadc], esi
push esi
push 0x40f1a4
call dword [0x40e030]
push esi
push 0x40f1ac
call dword [0x40e030]
xor ecx, ecx
mov dword [ebp - 8], 0
test eax, eax
sete cl
call fcn.00403b20
mov dword [0x411f48], eax
test eax, eax
je 0x402a7c
push 0x402710
push 0
push eax
mov eax, dword [eax + 0x20]
call eax
movzx eax, word [esi - 2]
add esp, 0xc
push eax
lea eax, [esi - 0x102]
push eax
mov eax, dword [0x411f48]
push dword [eax + 0x2c]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x402a3a
push 4
push 0x1000
push 0x38
push eax
call dword [0x40e008]
mov esi, eax
test esi, esi
je 0x402a26
mov dword [esi + 0x34], 0x2072024
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x28], 0xa8c
mov dword [esi + 0x30], 0
cmp eax, 0x13004
je 0x402961
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
movaps xmmword [ebp - 0x40], xmm0
push eax
movaps xmmword [ebp - 0x30], xmm0
call dword [0x40e024]
mov ax, word [ebp - 0x40]
cmp ax, 9
je 0x40295a
cmp ax, 6
jne 0x402961
mov eax, 0x40
jmp 0x402966
mov eax, 0x20
mov dword [ebp - 8], eax
call fcn.00402e50
mov edi, eax
push 0x38
push esi
push edi
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xad4], edi
call ecx
add esp, 0xc
lea eax, [ebp - 8]
push 4
push eax
mov eax, dword [edi + 0x14]
push edi
call eax
add esp, 0xc
lea eax, [ebp - 0xad0]
push 0xa88
push eax
mov eax, dword [edi + 0x14]
push edi
call eax
mov ecx, dword [ebp - 0xad4]
add esp, 0xc
mov edi, dword [0x411f48]
mov eax, dword [ecx + 0x18]
push ecx
call eax
add esp, 4
push eax
mov eax, dword [ebp - 0xad4]
push 0
push eax
mov eax, dword [eax + 0x1c]
call eax
add esp, 8
push eax
push dword [0x411f48]
mov eax, dword [edi + 0x18]
call eax
mov ecx, dword [ebp - 0xad4]
add esp, 0xc
mov edi, eax
call fcn.004033d0
test edi, edi
jne 0x402a12
call fcn.00402e50
mov ecx, dword [0x411f48]
mov edi, eax
push 0xffffffffffffffff
push edi
push esi
push ecx
mov ecx, dword [ecx + 0x14]
call ecx
add esp, 0x10
test edi, edi
je 0x402a12
mov ecx, edi
call fcn.004033d0
push 0x8000
push 0
push esi
call dword [section..rdata]
mov edi, dword [ebp - 0xad8]
mov eax, dword [0x411f48]
push eax
mov eax, dword [eax + 0xc]
call eax
mov esi, dword [ebp - 0xadc]
add esp, 4
call fcn.004041e0
mov eax, dword [0x411f44]
mov dword [0x411f48], 0
test eax, eax
je 0x402a5b
push 0xffffffffffffffff
push eax
call dword [0x40e00c]
inc edi
add esi, 0x10c
mov dword [ebp - 0xad8], edi
mov dword [ebp - 0xadc], esi
cmp edi, 4
jl 0x402884
jmp 0x402870
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00406028
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret