Function at 0x1007e870
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 0x1007e91b
mov eax, dword [ecx]
jmp 0x1007e91d
mov eax, ecx
push 0x50
push str.E45A9FAEA8DEEE2AD76BC9C0C4C1C530CA69C1FDC4C1D32BDD748CDCF9E9E704E442C9FEF9E8EA2C
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 0x1007e946
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 0x1007e956
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 0x1007e970
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 0x1007e9ab
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 0x1007e9d3
mov eax, dword [ecx]
jmp 0x1007e9d5
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 0x1007e9fe
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 0x1007ea10
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1007ea26
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 0x1007ea61
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 0x1007ea81
xor ecx, ecx
jmp 0x1007ea9f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007ea90
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 0x1007eac3
push 1
push eax
call fcn.101165c4
add esp, 8
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1007ead8
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