Function at 0x575d44
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb84
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x70], eax
mov eax, 0x612c14
call fcn.005d0a3c
mov dword [ebp - 0x50], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.005de500
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 0xc
mov eax, dword [ebp - 0x70]
call sym.gta.exe__TWMAction_rActionManager_qqrv
cmp dword [eax + 0x88], 0x15
jne 0x5761c4
mov esi, 0x611c50
lea edi, [ebp - 0x47c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x5c], 0x30
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00469620
mov word [ebp - 0x5c], 0x24
push 1
push 0x1c
lea edx, [ebp - 0x47c]
push edx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
mov word [ebp - 0x5c], 0x3c
mov edx, str.Fallout4plugins.txt
lea eax, [ebp - 0x14]
call fcn.005de4c0
inc dword [ebp - 0x50]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x47c]
lea eax, [ebp - 0x10]
call fcn.005de4c0
inc dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x50]
pop edx
call fcn.005de6a0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005de650
mov word [ebp - 0x5c], 0x24
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00468f3c
test al, al
jne 0x575e82
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
jmp 0x5761de
mov dl, 1
mov eax, dword [0x429314]
call fcn.00435e04
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov word [ebp - 0x5c], 0x48
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004695e0
lea edx, [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
setg al
and eax, 1
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005de650
pop ecx
test cl, cl
je 0x575f4b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x575f0c
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x5c], 0x6c
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x5c], 0x54
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
jmp 0x5761de
mov word [ebp - 0x5c], 0x78
mov edx, 0x61218b
lea eax, [ebp - 0x24]
call fcn.005de4c0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.005de724
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005de650
pop ecx
test cl, cl
je 0x575fbd
mov word [ebp - 0x5c], 0x84
xor eax, eax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004695e0
lea edx, [ebp - 0x28]
mov edx, dword [edx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005de650
jmp 0x576133
mov word [ebp - 0x5c], 0x90
mov edx, str..esm
lea eax, [ebp - 0x2c]
call fcn.005de4c0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.005de724
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005de650
pop ecx
test cl, cl
je 0x576133
xor eax, eax
mov dword [ebp - 0x78], eax
mov word [ebp - 0x5c], 0x24
xor edx, edx
mov dword [ebp - 0x7c], edx
mov word [ebp - 0x5c], 0x24
jmp 0x5760a5
mov word [ebp - 0x5c], 0x9c
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x30]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x34]
inc dword [ebp - 0x50]
call fcn.00469620
lea eax, [ebp - 0x34]
push eax
mov edx, str..esp
lea eax, [ebp - 0x38]
call fcn.005de4c0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x38]
pop eax
call fcn.005de724
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005de650
pop ecx
test cl, cl
je 0x57609c
inc dword [ebp - 0x78]
jmp 0x5760b6
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x7c]
jg 0x576013
cmp dword [ebp - 0x78], 0
jle 0x5760f7
mov word [ebp - 0x5c], 0xa8
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x3c]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004695e0
lea ecx, [ebp - 0x3c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov ebx, dword [eax]
call dword [ebx + 0x60]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.005de650
jmp 0x576133
cmp dword [ebp - 0x78], 0
jne 0x576133
mov word [ebp - 0x5c], 0xb4
xor ecx, ecx
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x40]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004695e0
lea edx, [ebp - 0x40]
mov edx, dword [edx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005de650
push 0x80
cmp dword [ebp - 0xc], 0
je 0x576143
mov ecx, dword [ebp - 0xc]
jmp 0x576148
mov ecx, 0x61219a
push ecx
call sub.KERNEL32.DLL_SetFileAttributesW
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
push 1
cmp dword [ebp - 0xc], 0
je 0x576166
mov eax, dword [ebp - 0xc]
jmp 0x57616b
mov eax, 0x61219c
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
je 0x57619e
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
mov dword [ebp - 0x44], eax
mov word [ebp - 0x5c], 0xd8
mov edx, 3
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x5c], 0xc0
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005de650
mov word [ebp - 0x5c], 0xc
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret