Function at 0x5474b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dde41
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x671330]
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 [ebp - 0x224], esi
mov dword [esi], vtable.ICfg.0
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x20], 8
mov dword [ebp - 0x228], esi
jb 0x54750b
mov eax, dword [esi + 0xc]
jmp 0x54750e
lea eax, [esi + 0xc]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x38], 7
mov dword [esi + 0x34], ecx
cmp dword [esi + 0x38], 8
mov dword [ebp - 4], ecx
jb 0x54752b
mov eax, dword [esi + 0x24]
jmp 0x54752e
lea eax, [esi + 0x24]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x60]
mov dword [esi + 0x58], vtable.fs_intr_cfg_t.0
mov dword [esi + 0x5c], 1
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x547556
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x7c]
mov dword [esi + 0x78], 7
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x547577
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [esi + 0x94], 1
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ecx
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 4], 0x1010101
mov dword [esi + 8], 0x10101
call sub.VCRUNTIME140.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]
mov dword [ebp - 0x220], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.0040e1d0
push 0x5fae00
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0040e190
push str.log.cache
lea ecx, [ebp - 0x220]
call fcn.0040e190
mov eax, dword [ebp - 0x220]
cmp word [eax], 0
jne 0x547624
xor edx, edx
jmp 0x547643
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x224], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x547630
sub edx, dword [ebp - 0x224]
sar edx, 1
push edx
push eax
lea ecx, [esi + 0xc]
call fcn.0040b190
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e1d0
push 0x5fae00
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0040e190
push str.tsm.salog
lea ecx, [ebp - 0x21c]
call fcn.0040e190
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0
jne 0x54769d
xor edx, edx
jmp 0x5476b1
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x5476a2
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [esi + 0x24]
call fcn.0040b190
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.0040b190
push 0
push 0
push 6
call fcn.00543ad0
add esp, 0xc
test eax, eax
je 0x547719
push 0xc
push str.__Downloads_
lea ecx, [esi + 0x60]
call fcn.00416320
push 0xc
push str..tmp_.temp
lea ecx, [esi + 0x7c]
call fcn.0040b190
mov edx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov byte [esi + 0x98], 0
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x547753
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 3
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x547772
mov ecx, dword [eax]
push eax
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.00544286
mov esp, ebp
pop ebp
ret