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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013fd41
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x10184f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x234], ebx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], 0
push 0
push eax
call fcn.1011a970
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - method.Sc_Convert.virtual_0], vtable.Sc_Convert.0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1007e68b
mov eax, dword [ecx]
jmp 0x1007e68d
mov eax, ecx
push 0x4e
push str.E45A9FAEA8DEEE2AD76BC9C4C4DEEE2AD76BC9C4C4C8F53DCA26E8F9ECFCDA04FC63CAF9EDF1F2
mov byte [eax], 0
call fcn.1006f630
lea ecx, [ebp - 0x230]
call fcn.1010cef0
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1007e6b6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x240]
call fcn.1007b170
mov edx, eax
mov esi, eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1007e6c6
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1007e6e0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x1007e71b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.1006d640
lea ecx, [ebp - 0x218]
call fcn.1007a6e0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1007e743
mov eax, dword [ecx]
jmp 0x1007e745
mov eax, ecx
push 0x1a
push str.E45AFCEAFDFBE32ADD68CFFDEB
mov byte [eax], 0
call fcn.1006f630
lea ecx, [ebp - 0x230]
call fcn.1010cef0
add esp, 0x18
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1007e76e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x240]
call fcn.1007b170
mov edx, eax
mov esi, eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1007e780
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1007e796
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x1007e7d1
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.1006d640
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x218], ax
jne 0x1007e7f1
xor ecx, ecx
jmp 0x1007e80f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007e800
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.10073cf0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1007e833
push 1
push eax
call fcn.101165c4
add esp, 8
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1007e848
push 2
push eax
call fcn.101165c4
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10116580
mov esp, ebp
pop ebp
ret