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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c20fd
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x1023c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x678], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0x208
push 0
push eax
mov dword [ebp - 0x680], esi
mov dword [ebp - 0x684], edi
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str.::00021400_0000_0000_C000_000000000046
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x20
test eax, eax
jne 0x10088c92
push edi
push eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor eax, eax
jmp 0x1008922d
mov esi, dword [sym.imp.HncFoundation.dll_HncGetWinVersion]
call esi
cmp eax, 9
jae 0x10088ca6
call esi
cmp eax, 0xa
jb 0x10088d07
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.HncFoundation.dll_HncAppendBackSlash]
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10088d07
push edi
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor eax, eax
jmp 0x1008922d
test ebx, ebx
jne 0x100891e0
mov ecx, dword [ebp - 0x678]
mov ecx, dword [ecx + 8]
push ecx
mov dword [ebp - 0x688], ecx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x680]
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xor eax, eax
mov dword [ebp - 0x634], ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x630], 7
mov word [ebp - 0x644], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10088d70
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.10002470
mov dword [ebp - 4], 0
xor ebx, ebx
nop dword [eax + eax]
cmp dword [ebx*8 + 0x1023c550], 5
jne 0x10088dc0
call esi
cmp eax, 9
jae 0x10088f33
call esi
cmp eax, 0xa
jae 0x10088f33
xor eax, eax
push eax
push dword [ebx*8 + 0x1023c550]
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x674]
call fcn.100022c0
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x65c], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x64c], 0
lea edx, [eax + 2]
mov dword [ebp - 0x648], 7
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10088e20
sub eax, edx
lea ecx, [ebp - 0x65c]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10002470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x674]
cmp dword [ebp - 0x660], 8
lea edi, [ebp - 0x674]
mov edx, dword [ebp - 0x674]
mov eax, dword [ebp - 0x664]
cmovae ecx, edx
cmovae edi, edx
push edi
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x674]
cmovae ecx, edx
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
push eax
push ecx
lea ecx, [ebp - 0x678]
call fcn.10001d30
cmp dword [ebp - 0x648], 8
lea ecx, [ebp - 0x65c]
mov edx, dword [ebp - 0x65c]
lea edi, [ebp - 0x65c]
mov eax, dword [ebp - 0x64c]
cmovae ecx, edx
cmovae edi, edx
push edi
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x65c]
cmovae ecx, edx
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
push eax
push ecx
lea ecx, [ebp - 0x67c]
call fcn.10001d30
cmp dword [ebp - 0x648], 8
lea eax, [ebp - 0x65c]
push dword [ebp - 0x64c]
cmovae eax, dword [ebp - 0x65c]
lea ecx, [ebp - 0x674]
cmp dword [ebp - 0x660], 8
mov edx, dword [ebp - 0x664]
cmovae ecx, dword [ebp - 0x674]
push eax
push 0
call fcn.10001e50
add esp, 0x24
test eax, eax
je 0x10088f42
lea ecx, [ebp - 0x65c]
call fcn.100023a0
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 0
call fcn.100023a0
mov esi, dword [sym.imp.HncFoundation.dll_HncGetWinVersion]
inc ebx
cmp ebx, 2
jb 0x10088da0
jmp 0x10089137
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
lea ecx, [ebp - 0x678]
call esi
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 3
call esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x644]
cmp dword [ebp - 0x630], 8
lea ecx, [ebp - 0x678]
mov edi, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__]
cmovae eax, dword [ebp - 0x644]
push eax
call edi
mov esi, dword [sym.imp.HncFoundation.dll_public:_class_CHncStringW____thiscall_CHncStringW::MakeUpper_void_]
lea ecx, [ebp - 0x678]
call esi
cmp dword [ebp - 0x648], 8
lea eax, [ebp - 0x65c]
lea ecx, [ebp - 0x67c]
cmovae eax, dword [ebp - 0x65c]
push eax
call edi
lea ecx, [ebp - 0x67c]
call esi
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebx*8 + 0x1023c554]
lea eax, [ebp - 0x424]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0x18
lea ecx, [ebp - 0x678]
push dword [ebp - 0x67c]
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::FindOneOf_unsigned_short_int_const__const]
cmp eax, 0xffffffff
jle 0x1008902d
mov ecx, dword [ebp - 0x67c]
mov edx, dword [ecx - 8]
add eax, edx
mov ecx, dword [ebp - 0x678]
cmp dword [ecx - 8], edx
jle 0x1008902d
movzx ecx, word [ecx + eax*2]
cmp ecx, 0x5c
je 0x1008902d
cmp ecx, 0x2f
je 0x1008902d
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.HncFoundation.dll_HncAppendBackSlash]
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089036
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
push dword [ebp - 0x64c]
lea ecx, [ebp - 0x644]
push 0
call fcn.10001b80
mov ecx, dword [ebp - 0x634]
test ecx, ecx
je 0x1008918e
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 0x644]
mov esi, dword [ebp - 0x644]
cmp edx, 8
cmovae eax, esi
cmp word [eax], 0x5c
je 0x1008909e
cmp edx, 8
lea eax, [ebp - 0x644]
cmovae eax, esi
cmp word [eax], 0x2f
jne 0x100890df
cmp edx, 8
lea eax, [ebp - 0x644]
lea ecx, [ebp - 0x644]
cmovae eax, esi
add eax, 2
cmp edx, 8
push eax
cmovae ecx, esi
lea eax, [ebp - 0x68c]
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.10001ad0
mov edx, dword [ebp - 0x630]
mov ecx, dword [ebp - 0x634]
mov esi, dword [ebp - 0x644]
test ecx, ecx
je 0x1008918e
cmp edx, 8
lea eax, [ebp - 0x644]
push 0xffffffffffffffff
cmovae eax, esi
push eax
lea eax, [ebp - 0x62c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea ecx, [ebp - 0x67c]
add esp, 0x10
call esi
lea ecx, [ebp - 0x678]
call esi
lea ecx, [ebp - 0x65c]
call fcn.100023a0
lea ecx, [ebp - 0x674]
call fcn.100023a0
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089140
sub ecx, edx
sar ecx, 1
jne 0x1008916e
push 0xffffffffffffffff
push dword [ebp - 0x680]
lea eax, [ebp - 0x62c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.100023a0
mov ebx, dword [ebp - 0x688]
mov edi, dword [ebp - 0x684]
jmp 0x10089203
push dword [ebp - 0x684]
push dword [ebx*8 + 0x1023c550]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea ecx, [ebp - 0x67c]
mov edi, eax
call esi
lea ecx, [ebp - 0x678]
call esi
lea ecx, [ebp - 0x65c]
call fcn.100023a0
lea ecx, [ebp - 0x674]
call fcn.100023a0
lea ecx, [ebp - 0x644]
call fcn.100023a0
mov eax, edi
jmp 0x1008922d
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push 0xffffffffffffffff
push dword [ebp - 0x680]
lea eax, [ebp - 0x62c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebx]
lea ecx, [ebp - 0x62c]
push 0
push edi
push 0
push ecx
push 0
push 0
push ebx
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jns 0x10089225
mov dword [edi], 0
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc