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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5191
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x50c0b4]
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 esi, ecx
mov dword [esi], vtable.ICfg.0
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], 0
mov dword [ebp - 0x224], esi
mov dword [esi + 0xa], 1
xor ecx, ecx
mov dword [esi + 0x38], 7
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0
mov word [esi + 0x24], cx
mov dword [esi + 0x58], vtable.fs_intr_cfg_t.0
mov dword [esi + 0x5c], 1
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], ecx
xor eax, eax
mov word [esi + 0x60], ax
mov dword [esi + 0x78], 7
mov dword [esi + 0x90], 7
mov dword [esi + 0x8c], eax
mov word [esi + 0x7c], ax
mov byte [esi + 0x94], 1
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov byte [ebp - 4], 3
mov dword [esi + 4], 0x1010101
mov word [esi + 8], 0x101
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00421e50
push 0x4b38d0
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.004347d0
push str.log.cache
lea ecx, [ebp - 0x21c]
call fcn.004347d0
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0
jne 0x47e159
xor edx, edx
jmp 0x47e16f
mov edx, eax
lea edi, [edx + 2]
mov edi, edi
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x47e160
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [esi + 0xc]
call fcn.0043a040
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00421e50
push 0x4b38d0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.004347d0
push str.tsm.salog
lea ecx, [ebp - 0x220]
call fcn.004347d0
mov eax, dword [ebp - 0x220]
cmp word [eax], 0
jne 0x47e1bf
xor edx, edx
jmp 0x47e1d3
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x47e1c4
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [esi + 0x24]
call fcn.0043a040
push 0x1d
push str._Documents___PublicDocuments_
lea ecx, [esi + 0x60]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 3
mov byte [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 1
mov dword [esi + 0x50], 0x9c4000
mov dword [esi + 0x54], 0x1010001
call fcn.0043a040
push 0
push 0
push 6
call fcn.0047cc20
add esp, 0xc
test eax, eax
je 0x47e23b
push 0xc
push str.__Downloads_
lea ecx, [esi + 0x60]
call fcn.00439c50
push 0xc
push str..tmp_.temp
lea ecx, [esi + 0x7c]
call fcn.0043a040
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [esi + 0x98], 0
mov byte [ebp - 4], 4
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47e277
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x21c]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x47e298
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret