Function at 0xa46a60
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0xad4670
mov eax, dword fs:[0]
push eax
sub esp, 0x728
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x720], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x73c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74c]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
mov ebp, 1
push eax
mov dword [esp + 0x748], ebp
call fcn.00a13960
push 0x206
lea ecx, [esp + 0x132]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], ebp
mov word [esp + 0x138], ax
call fcn.00a827a0
add esp, 0xc
push ebp
push 0x23
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.LocalAppData
lea eax, [esp + 0x130]
push 0x104
push eax
call fcn.00a7a994
add esp, 0xc
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0x12c]
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa46b35
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x130]
push edx
lea ecx, [esp + 0xfc]
call fcn.00a11c90
push ebp
push 0xae5acc
lea esi, [esp + 0xfc]
mov byte [esp + 0x74c], 2
call fcn.00a1b430
call fcn.00a36c20
lea esi, [esp + 0xd8]
call fcn.00a3f0e0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x750], 3
call fcn.00a1b770
mov byte [esp + 0x744], 2
cmp dword [esp + 0xf0], 8
jb 0xa46bbe
mov eax, dword [esp + 0xdc]
push eax
call fcn.00a7ac28
add esp, 4
push edi
push str.ck.txt
lea esi, [esp + 0xfc]
call fcn.00a1b430
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
mov eax, esi
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], dx
call fcn.00a11910
lea edi, [esp + 0x12c]
call fcn.00a132c0
add esp, 0x1c
push 0x3ff
lea ecx, [esp + 0x339]
push ebx
mov byte [esp + 0x74c], 4
push ecx
mov byte [esp + 0x340], 0
call fcn.00a827a0
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call fcn.00a3d7c0
mov byte [esp + 0x744], 5
mov ecx, dword [esp + 0x114]
mov edi, 0x10
cmp dword [esp + 0x128], edi
jae 0xa46c53
lea ecx, [esp + 0x114]
push ebp
lea esi, [esp + 0x50]
call fcn.00a3e7e0
test eax, eax
jne 0xa46c82
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x4c]
lea ecx, [esp + ecx + 0x44]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0xa46c7b
or eax, 4
push ebx
push eax
call fcn.00a1c780
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x48]
call fcn.00a24180
movzx edx, al
push edx
lea eax, [esp + 0x338]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00a3e630
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx edx, al
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0xa46f3e
lea eax, [esp + 0x334]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], 0
lea edx, [eax + 1]
jmp 0xa46cf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa46cf0
sub eax, edx
push eax
lea eax, [esp + 0x338]
push eax
lea ecx, [esp + 0xe0]
call fcn.00a111b0
mov byte [esp + 0x744], 6
mov ecx, dword [esp + 0x760]
sub ecx, dword [esp + 0x75c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
je 0xa46ed6
mov dword [esp + 0x14], ebx
cmp ebp, eax
jb 0xa46d4c
call fcn.00a7c884
mov ecx, dword [esp + 0x75c]
mov edx, dword [esp + 0x14]
sub esp, 0x1c
lea eax, [edx + ecx]
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], dx
call fcn.00a11910
lea edi, [esp + 0x44]
call fcn.00a132c0
mov ecx, dword [eax + 0x14]
add esp, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0xa46d96
mov eax, dword [eax + 4]
jmp 0xa46d99
add eax, 4
push ecx
push eax
lea eax, [esp + 0xe0]
push eax
xor eax, eax
call fcn.00a12db0
cmp eax, 0xffffffff
mov edi, 0x10
setne bl
cmp dword [esp + 0x40], edi
jb 0xa46dc8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00a7ac28
add esp, 4
test bl, bl
je 0xa46ea0
push 1
push 0xaeb624
lea edx, [esp + 0xe0]
push edx
xor eax, eax
call fcn.00a12db0
cmp eax, 0xffffffff
je 0xa46ea0
push eax
xor ecx, ecx
lea esi, [esp + 0x2c]
lea edx, [esp + 0xdc]
call fcn.00a3d570
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x750], 7
call fcn.00a11650
mov byte [esp + 0x744], 6
cmp dword [esp + 0x40], edi
jb 0xa46e36
mov eax, dword [esp + 0x2c]
push eax
call fcn.00a7ac28
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xfc]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00a11650
sub esp, 0x18
mov byte [esp + 0x778], 8
mov ebx, dword [esp + 0x50]
mov eax, esp
mov dword [esp + 0x54], esp
push eax
mov ecx, ebx
call fcn.00a281d0
mov byte [esp + 0x778], 6
call fcn.00a3cfe0
add esp, 0x34
test al, al
jne 0xa46ea0
lea ecx, [esp + 0xd8]
push ecx
call fcn.00a28440
mov ecx, dword [esp + 0x760]
sub ecx, dword [esp + 0x75c]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
xor ebx, ebx
cmp ebp, eax
jb 0xa46d4c
mov edi, 0x10
mov byte [esp + 0x744], 5
cmp dword [esp + 0xf0], edi
jb 0xa46ef7
mov edx, dword [esp + 0xdc]
push edx
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
push 0xa
lea ecx, [esp + ecx + 0x48]
call fcn.00a24180
movzx ecx, al
push ecx
lea edx, [esp + 0x338]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00a3e630
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0xa46cc7
lea esi, [esp + 0x4c]
call fcn.00a3e8c0
test eax, eax
jne 0xa46f6c
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x4c]
lea ecx, [esp + ecx + 0x44]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0xa46f65
or eax, 4
push ebx
push eax
call fcn.00a1c780
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x9c]
mov dword [esp + 0x20], edx
mov dword [esp + ecx + 0x44], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea edx, [esp + 0x4c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x4c], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x744], 0xa
cmp byte [esp + 0x94], 0
je 0xa46faf
mov esi, edx
call fcn.00a3e8c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x744], 9
call fcn.00a1f020
mov byte [esp + 0x744], 4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x9c]
mov dword [esp + ecx + 0x44], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0xa0], vtable.std::ios_base.0
call fcn.00a76cc7
add esp, 4
cmp dword [esp + 0x128], edi
jb 0xa4700b
mov eax, dword [esp + 0x114]
push eax
call fcn.00a7ac28
add esp, 4
cmp dword [esp + 0x10c], 8
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], 0
jb 0xa4703f
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.00a7ac28
add esp, 4
mov esi, dword [esp + 0x75c]
xor edx, edx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], dx
cmp esi, ebx
je 0xa470ae
mov edi, dword [esp + 0x760]
cmp esi, edi
je 0xa470a5
add esi, 0x18
cmp dword [esi], 8
jb 0xa47085
mov eax, dword [esi - 0x14]
push eax
call fcn.00a7ac28
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0xa47074
mov esi, dword [esp + 0x75c]
push esi
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0x750]
push eax
mov dword [esp + 0x760], ebx
mov dword [esp + 0x764], ebx
mov dword [esp + 0x768], ebx
call fcn.00a7ac28
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x73c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x720]
xor ecx, esp
call fcn.00a7a967
add esp, 0x734
ret