Function at 0x4174c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x494333
mov eax, dword fs:[0]
push eax
sub esp, 0x740
mov eax, dword [0x4b6170]
xor eax, esp
mov dword [esp + 0x738], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x754]
mov dword fs:[0], eax
mov eax, dword [esp + 0x764]
xor ebx, ebx
mov dword [esp + 0x75c], ebx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], ebx
call fcn.0041f2b0
push 0x206
lea ecx, [esp + 0x14a]
mov dword [esp + 0x760], ebx
xor eax, eax
push ebx
mov edi, 1
push ecx
mov dword [esp + 0x48], edi
mov word [esp + 0x150], ax
call fcn.00446600
add esp, 0xc
push edi
push 0x23
lea edx, [esp + 0x14c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.AppData
lea eax, [esp + 0x148]
push 0x104
push eax
call fcn.0043fdd7
add esp, 0xc
mov ebp, 7
xor ecx, ecx
lea eax, [esp + 0x144]
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4175a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x148]
lea esi, [esp + 0x110]
call fcn.00403500
push edi
push 0x4a3638
mov eax, esi
mov dword [esp + 0x764], edi
call fcn.0040bbe0
call fcn.00401930
lea esi, [esp + 0xf0]
call fcn.0041a650
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x114]
mov byte [esp + 0x764], 2
call fcn.0040bed0
mov byte [esp + 0x75c], 1
cmp dword [esp + 0x108], 8
jb 0x417623
mov edx, dword [esp + 0xf4]
push edx
call fcn.0043f604
add esp, 4
push ebp
push str.ck.txt
lea eax, [esp + 0x114]
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 + 0x130]
call fcn.004027a0
lea edi, [esp + 0x144]
call fcn.00403cd0
add esp, 0x1c
push 0x3ff
lea ecx, [esp + 0x351]
push ebx
mov byte [esp + 0x764], 3
push ecx
mov byte [esp + 0x358], bl
call fcn.00446600
add esp, 0xc
lea edx, [esp + 0x5c]
push edx
call fcn.00417c10
mov byte [esp + 0x75c], 4
cmp dword [esp + 0x140], 0x10
mov eax, dword [esp + 0x12c]
jae 0x4176b7
lea eax, [esp + 0x12c]
push eax
lea ebx, [esp + 0x68]
call fcn.00418c00
xor edi, edi
test eax, eax
jne 0x4176f2
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x64]
lea ecx, [esp + ecx + 0x5c]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4176e1
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4176f2
push edi
call fcn.0041a480
call fcn.00401930
lea esi, [esp + 0x20]
mov ecx, eax
call fcn.0041a630
mov byte [esp + 0x75c], 5
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x60]
push eax
call fcn.004188e0
movzx ecx, al
push ecx
lea edx, [esp + 0x350]
push edx
lea eax, [esp + 0x64]
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 0x4179af
lea eax, [esp + 0x34c]
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], edi
mov byte [esp + 0xf4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417776
sub eax, edx
push eax
lea ecx, [esp + 0x350]
push ecx
lea ecx, [esp + 0xf8]
call fcn.004022f0
mov byte [esp + 0x75c], 6
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
je 0x417945
mov dword [esp + 0x14], edi
cmp ebp, eax
jb 0x4177cc
call fcn.0043fb41
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
add eax, edx
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push edi
mov word [ecx + 4], dx
call fcn.004027a0
lea edi, [esp + 0x5c]
call fcn.00403cd0
mov ecx, dword [eax + 0x14]
mov edi, 0x10
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x417815
mov eax, dword [eax + 4]
jmp 0x417818
add eax, 4
push ecx
push eax
lea eax, [esp + 0xf8]
push eax
xor eax, eax
call fcn.0040ef90
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x58], edi
jb 0x417842
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0043f604
add esp, 4
test bl, bl
je 0x41791a
push 1
push 0x4ad454
lea edx, [esp + 0xf8]
push edx
xor eax, eax
call fcn.0040ef90
cmp eax, 0xffffffff
je 0x41791a
push eax
xor ecx, ecx
lea esi, [esp + 0x44]
lea edx, [esp + 0xf4]
call fcn.0040ed50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x768], 7
call fcn.00401fb0
mov byte [esp + 0x75c], 6
cmp dword [esp + 0x58], edi
jb 0x4178b0
mov eax, dword [esp + 0x44]
push eax
call fcn.0043f604
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x114]
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 + 0x790], 8
mov ebx, dword [esp + 0x4c]
mov eax, esp
mov dword [esp + 0x6c], esp
push eax
mov ecx, ebx
call fcn.0040fee0
mov byte [esp + 0x790], 6
call fcn.00417330
add esp, 0x34
test al, al
jne 0x41791a
lea ecx, [esp + 0xf0]
push ecx
call fcn.0040ed80
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
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 edi, edi
cmp ebp, eax
jb 0x4177cc
mov byte [esp + 0x75c], 5
cmp dword [esp + 0x108], 0x10
jb 0x417967
mov edx, dword [esp + 0xf4]
push edx
call fcn.0043f604
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
push 0xa
lea edx, [esp + ecx + 0x60]
push edx
call fcn.004188e0
movzx eax, al
push eax
lea ecx, [esp + 0x350]
push ecx
lea edx, [esp + 0x64]
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 0x417752
lea esi, [esp + 0x64]
call fcn.00418ce0
test eax, eax
jne 0x4179e7
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x64]
lea ecx, [esp + ecx + 0x5c]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4179d6
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4179e7
push edi
call fcn.0041a480
mov esi, dword [esp + 0x2c]
cmp esi, edi
je 0x417a37
mov ebx, dword [esp + 0x30]
cmp esi, ebx
je 0x417a2e
add esi, 0x18
lea ebx, [ebx]
cmp dword [esi], 8
jb 0x417a11
mov eax, dword [esi - 0x14]
push eax
call fcn.0043f604
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x417a00
mov esi, dword [esp + 0x2c]
push esi
call fcn.0043f604
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.0043f604
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xb8]
add esp, 4
mov dword [esp + 0x38], edx
mov dword [esp + ecx + 0x5c], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea edx, [esp + 0x64]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x64], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x75c], 0xa
cmp byte [esp + 0xac], 0
je 0x417a93
mov esi, edx
call fcn.00418ce0
lea ecx, [esp + 0x64]
mov byte [esp + 0x75c], 9
call fcn.0041a260
mov byte [esp + 0x75c], 3
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xb4]
mov dword [esp + ecx + 0x5c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0xb8], vtable.std::ios_base.0
call fcn.0043ce7c
add esp, 4
cmp dword [esp + 0x140], 0x10
jb 0x417af0
mov eax, dword [esp + 0x12c]
push eax
call fcn.0043f604
add esp, 4
cmp dword [esp + 0x124], 8
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], edi
mov byte [esp + 0x12c], 0
jb 0x417b24
mov ecx, dword [esp + 0x110]
push ecx
call fcn.0043f604
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x754]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x738]
xor ecx, esp
call fcn.0043f4b7
add esp, 0x74c
ret 4