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

Disassembly:
push 0xffffffffffffffff
push 0x494210
mov eax, dword fs:[0]
push eax
sub esp, 0x728
mov eax, dword [0x4b6170]
xor eax, esp
mov dword [esp + 0x720], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b6170]
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 edi, 1
push eax
mov dword [esp + 0x748], edi
call fcn.0041f2b0
push 0x206
lea ecx, [esp + 0x132]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], edi
mov word [esp + 0x138], ax
call fcn.00446600
add esp, 0xc
push edi
push 0x23
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.AppData
lea eax, [esp + 0x130]
push 0x104
push eax
call fcn.0043fdd7
add esp, 0xc
mov ebp, 7
xor ecx, ecx
lea eax, [esp + 0x12c]
mov dword [esp + 0x10c], ebp
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 0x420b65
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x130]
lea esi, [esp + 0xf8]
call fcn.00403500
push edi
push 0x4a3638
mov eax, esi
mov byte [esp + 0x74c], 2
call fcn.0040bbe0
call fcn.00401930
lea esi, [esp + 0xd8]
call fcn.0041a650
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0xfc]
mov byte [esp + 0x74c], 3
call fcn.0040bed0
mov byte [esp + 0x744], 2
cmp dword [esp + 0xf0], 8
jb 0x420be9
mov edx, dword [esp + 0xdc]
push edx
call fcn.0043f604
add esp, 4
push ebp
push str.ck.txt
lea eax, [esp + 0xfc]
call fcn.0040bbe0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x118]
call fcn.004027a0
lea edi, [esp + 0x12c]
call fcn.00403cd0
add esp, 0x1c
push 0x3ff
lea ecx, [esp + 0x339]
push ebx
mov byte [esp + 0x74c], 4
push ecx
mov byte [esp + 0x340], bl
call fcn.00446600
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call fcn.00417c10
mov byte [esp + 0x744], 5
mov eax, dword [esp + 0x114]
mov edi, 0x10
cmp dword [esp + 0x128], edi
jae 0x420c81
lea eax, [esp + 0x114]
push eax
lea ebx, [esp + 0x50]
call fcn.00418c00
xor ebx, ebx
test eax, eax
jne 0x420cbc
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 0x420cab
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x420cbc
push ebx
call fcn.0041a480
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x48]
push eax
call fcn.004188e0
movzx ecx, al
push ecx
lea edx, [esp + 0x338]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00418a40
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
je 0x420f74
lea eax, [esp + 0x334]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420d28
sub eax, edx
push eax
lea ecx, [esp + 0x338]
push ecx
lea ecx, [esp + 0xe0]
call fcn.004022f0
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 0x420f0b
mov dword [esp + 0x14], ebx
cmp ebp, eax
jb 0x420d84
call fcn.0043fb41
mov edx, dword [esp + 0x75c]
mov eax, dword [esp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
add eax, edx
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], dx
call fcn.004027a0
lea edi, [esp + 0x44]
call fcn.00403cd0
mov ecx, dword [eax + 0x14]
mov edi, 0x10
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x420dd0
mov eax, dword [eax + 4]
jmp 0x420dd3
add eax, 4
push ecx
push eax
lea eax, [esp + 0xe0]
push eax
xor eax, eax
call fcn.0040ef90
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x40], edi
jb 0x420dfd
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043f604
add esp, 4
test bl, bl
je 0x420ed5
push 1
push 0x4ad454
lea edx, [esp + 0xe0]
push edx
xor eax, eax
call fcn.0040ef90
cmp eax, 0xffffffff
je 0x420ed5
push eax
xor ecx, ecx
lea esi, [esp + 0x2c]
lea edx, [esp + 0xdc]
call fcn.0040ed50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x750], 7
call fcn.00401fb0
mov byte [esp + 0x744], 6
cmp dword [esp + 0x40], edi
jb 0x420e6b
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043f604
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.00401fb0
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.0040fee0
mov byte [esp + 0x778], 6
call fcn.00417330
add esp, 0x34
test al, al
jne 0x420ed5
lea ecx, [esp + 0xd8]
push ecx
call fcn.0040ed80
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 0x420d84
mov edi, 0x10
mov byte [esp + 0x744], 5
cmp dword [esp + 0xf0], edi
jb 0x420f2c
mov edx, dword [esp + 0xdc]
push edx
call fcn.0043f604
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
push 0xa
lea edx, [esp + ecx + 0x48]
push edx
call fcn.004188e0
movzx eax, al
push eax
lea ecx, [esp + 0x338]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00418a40
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 0x420d04
lea esi, [esp + 0x4c]
call fcn.00418ce0
test eax, eax
jne 0x420fac
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 0x420f9b
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x420fac
push ebx
call fcn.0041a480
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 0x420fef
mov esi, edx
call fcn.00418ce0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x744], 9
call fcn.0041a260
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.0043ce7c
add esp, 4
cmp dword [esp + 0x128], edi
jb 0x42104b
mov eax, dword [esp + 0x114]
push eax
call fcn.0043f604
add esp, 4
cmp dword [esp + 0x10c], 8
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], 0
jb 0x42107f
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.0043f604
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 0x4210ee
mov edi, dword [esp + 0x760]
cmp esi, edi
je 0x4210e5
add esi, 0x18
cmp dword [esi], 8
jb 0x4210c5
mov eax, dword [esi - 0x14]
push eax
call fcn.0043f604
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 0x4210b4
mov esi, dword [esp + 0x75c]
push esi
call fcn.0043f604
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.0043f604
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.0043f4b7
add esp, 0x734
ret