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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009a217
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
xor eax, eax
push 0x206
mov dword [esp + 0x264], 0
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call sub.MSVCR110.dll_memset
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 7
push 0
call edi
test eax, eax
jne 0x1002f49e
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.10008550
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x268], 1
call sym.iImportLib.dll__EnumStartupFolder_StartupAppEnumerator_elex__AAE_NABV__basic_string__WU__char_traits__W_std__V__allocator__W_2
mov byte [esp + 0x260], 0
cmp dword [esp + 0x40], 8
jb 0x1002f49e
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0x18
push 0
call edi
test eax, eax
jne 0x1002f50e
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.10008550
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x268], 2
call sym.iImportLib.dll__EnumStartupFolder_StartupAppEnumerator_elex__AAE_NABV__basic_string__WU__char_traits__W_std__V__allocator__W_2
mov byte [esp + 0x260], 0
cmp dword [esp + 0x40], 8
jb 0x1002f50e
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, eax
cmp eax, edi
je 0x1002f6bf
push 0x50
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x1002f569
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
xor eax, eax
mov word [edi], ax
mov dword [edi + 0x2c], 7
mov dword [edi + 0x28], eax
mov word [edi + 0x18], ax
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], eax
mov word [edi + 0x30], ax
mov byte [edi + 0x48], al
mov byte [edi + 0x4c], 1
jmp 0x1002f56b
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x260], 3
cmp dword [esi + 0x14], 8
jb 0x1002f581
mov eax, dword [esi]
jmp 0x1002f583
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edx, eax
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [edx], ax
jne 0x1002f5ac
xor ecx, ecx
jmp 0x1002f5c6
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f5b5
sub ecx, dword [esp + 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.100089b0
mov byte [esp + 0x260], 4
cmp edi, esi
je 0x1002f5e9
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
call fcn.10008c80
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push 0x100b5318
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002f61c
lea eax, [edi + 0x18]
push eax
lea ecx, [edi + 0x30]
push ecx
push esi
call sym.iImportLib.dll_bool___cdecl_elex::RetriveLnkTarget_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___struct_elex::FilePath___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 0xc
test al, al
jne 0x1002f631
lea ecx, [edi + 0x30]
cmp ecx, esi
je 0x1002f62d
push 0xffffffffffffffff
push 0
push esi
call fcn.10008c80
mov byte [edi + 0x48], 0
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
cmp ecx, eax
jae 0x1002f676
mov ecx, dword [ebx]
lea edx, [esp + 0x14]
cmp ecx, edx
ja 0x1002f676
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [ebx + 8]
jne 0x1002f666
push ecx
mov ecx, ebx
call fcn.1000d820
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
test ecx, ecx
je 0x1002f68c
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1002f68c
cmp eax, dword [ebx + 8]
jne 0x1002f683
push ecx
mov ecx, ebx
call fcn.1000d820
mov eax, dword [ebx + 4]
test eax, eax
je 0x1002f68c
mov dword [eax], edi
add dword [ebx + 4], 4
cmp dword [esp + 0x40], 8
jb 0x1002f6a4
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x260], 0
mov edi, dword [esp + 0x24]
add esi, 0x18
cmp esi, edi
jne 0x1002f520
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1002f709
mov esi, eax
cmp eax, edi
je 0x1002f6ff
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x1002f6e1
push dword [esi]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x1002f6d0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 4