Function at 0x10028a60
Capabilities:
Check if file exists
Encode data using xor
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b2ad
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10028b3b
push 0
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x1007933f
mov byte [edi], 0
call fcn.1000fb90
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10028b1e
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10028b14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.10020d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
cmovae ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0xf8], ecx
cmovae edx, dword [ebp - 0x34]
xor esi, esi
add edx, 0x41
movq qword [ebp - 0x1c], xmm0
xor eax, eax
mov dword [ebp - 0xfc], edx
sub ecx, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x100], ecx
je 0x10028bcd
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1001ecf0
push dword [ebp - 0x100]
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0xfc]
push esi
call fcn.100418e0
mov eax, dword [ebp - 0xf8]
add esp, 0xc
sub eax, dword [ebp - 0xfc]
add eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
sub eax, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0xf8], eax
test al, 0xf
je 0x10028c9a
push 0
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x1007933f
mov byte [edi], 0
call fcn.1000fb90
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10028c4f
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10028c30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x10028c83
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10028c79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
jmp 0x10028ae4
mov edx, str.A2r_
lea ecx, [ebp - 0xf4]
call fcn.10002290
movups xmm0, xmmword [0x10089144]
mov ecx, dword [ebp - 0xf8]
movups xmmword [ebp - 0x44], xmm0
test ecx, ecx
je 0x10028d13
lea eax, [ebp - 0x44]
sub eax, esi
mov dword [ebp - 0xfc], eax
lea eax, [ecx - 1]
shr eax, 4
inc eax
mov edi, eax
movups xmm0, xmmword [esi]
lea edx, [ebp - 0xf4]
mov ecx, esi
call fcn.10002780
mov edx, dword [ebp - 0xfc]
mov ecx, 0x10
nop
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x10028cf0
sub edx, 0x10
mov dword [ebp - 0xfc], edx
movups xmmword [ebp - 0x44], xmm0
sub edi, 1
jne 0x10028cd3
mov edi, dword [ebp - 0x104]
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax], 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1002ae00
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
cmovae ecx, dword [ebp - 0x34]
push 0xb
push str._GameToken_
push 0
call fcn.10003b60
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10028e1d
push 0
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x1007933f
mov byte [edi], 0
call fcn.1000fb90
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10028dce
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10028daf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x10028c83
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10028dfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
jmp 0x10028ae4
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
add esi, 0xb
cmp dword [ebp - 0x20], 0x10
push 0xc
cmovae ecx, dword [ebp - 0x34]
push str.__GameToken_
push esi
call fcn.10003b60
mov ecx, eax
mov dword [edi], 0
add esp, 0xc
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp ecx, 0xffffffff
jne 0x10028f06
push 0
push 0x1007933f
mov ecx, edi
call fcn.1000fb90
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10028eb7
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10028e98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x10028c83
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10028ee5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
jmp 0x10028ae4
mov eax, dword [ebp - 0x24]
cmp eax, esi
jb 0x10028ff8
sub eax, esi
sub ecx, esi
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
add eax, esi
mov ecx, edi
push eax
call fcn.1000fb90
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10028f79
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10028f5a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push ecx
push edx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x10028fa9
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10028f9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028ff3
push edx
push ecx
call fcn.1003c31e
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 8
jb 0x10028b1e
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10028b14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10028b14
call fcn.100475cc
call fcn.10010fe0
int3