Function at 0x597598
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, 0x73b2e4
call fcn.00654e18
mov dword [ebp - 0x50], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00662930
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 0x597a18
mov esi, 0x73a320
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.0048b2c4
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.006628f0
inc dword [ebp - 0x50]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x47c]
lea eax, [ebp - 0x10]
call fcn.006628f0
inc dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x50]
pop edx
call fcn.00662ad0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00662a80
mov word [ebp - 0x5c], 0x24
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0048abe0
test al, al
jne 0x5976d6
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00662a80
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
jmp 0x597a32
mov dl, 1
mov eax, dword [0x44aee4]
call fcn.004579d4
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.0048b284
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.00662a80
pop ecx
test cl, cl
je 0x59779f
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x597760
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.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00662a80
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
jmp 0x597a32
mov word [ebp - 0x5c], 0x78
mov edx, 0x73a85b
lea eax, [ebp - 0x24]
call fcn.006628f0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.00662b54
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00662a80
pop ecx
test cl, cl
je 0x597811
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.0048b284
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.00662a80
jmp 0x597987
mov word [ebp - 0x5c], 0x90
mov edx, str..esm
lea eax, [ebp - 0x2c]
call fcn.006628f0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00662b54
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00662a80
pop ecx
test cl, cl
je 0x597987
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 0x5978f9
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.0048b2c4
lea eax, [ebp - 0x34]
push eax
mov edx, str..esp
lea eax, [ebp - 0x38]
call fcn.006628f0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x38]
pop eax
call fcn.00662b54
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00662a80
pop ecx
test cl, cl
je 0x5978f0
inc dword [ebp - 0x78]
jmp 0x59790a
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 0x597867
cmp dword [ebp - 0x78], 0
jle 0x59794b
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.0048b284
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.00662a80
jmp 0x597987
cmp dword [ebp - 0x78], 0
jne 0x597987
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.0048b284
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.00662a80
push 0x80
cmp dword [ebp - 0xc], 0
je 0x597997
mov ecx, dword [ebp - 0xc]
jmp 0x59799c
mov ecx, 0x73a86a
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 0x5979ba
mov eax, dword [ebp - 0xc]
jmp 0x5979bf
mov eax, 0x73a86c
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
je 0x5979f2
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.00662a80
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00662a80
mov word [ebp - 0x5c], 0xc
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00662a80
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret