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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.13144998
xor eax, eax
push ebp
push 0x1318db43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.1318d82c
test al, al
jne 0x1318db18
mov eax, dword [ebp - 4]
call fcn.1318d218
call fcn.1318d80c
mov edi, eax
cmp edi, 0x20202020
jne 0x1318d905
xor edi, edi
call fcn.13142af4
lea eax, [ebp - 0x107]
push eax
push 0xfb
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x107]
call fcn.13148d88
push dword [ebp - 0x10c]
mov eax, 0xffff
call fcn.13143074
lea ecx, [ebp - 0x110]
mov edx, 4
call fcn.13148454
push dword [ebp - 0x110]
push 0x1318db5c
lea eax, [ebp - 8]
mov edx, 3
call fcn.13144868
mov eax, dword [ebp - 8]
call fcn.13148828
test al, al
jne 0x1318d91b
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov esi, eax
push 0x40
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.13142a94
mov ecx, dword [ebp - 0x114]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov ebx, eax
push 0
push 0
mov eax, esi
call fcn.13155ccc
push 0
push 0
mov eax, ebx
call fcn.13155ccc
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, edi
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.13155f48
mov eax, ebx
call fcn.131437b0
mov eax, esi
call fcn.131437b0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.1318d33c
push 0x42
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov esi, eax
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.13148838
mov dword [ebp - 0xc], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
call fcn.13155ccc
push 0
push 0
mov eax, ebx
call fcn.13155ccc
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.13155f48
mov eax, ebx
call fcn.131437b0
mov eax, esi
call fcn.131437b0
mov eax, dword [ebp - 4]
call fcn.131449a8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x1318da90
mov eax, edi
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 4]
call fcn.131449a8
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x42
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov esi, eax
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov ebx, eax
push 0
push 0
mov eax, esi
call fcn.13155d30
push 0
push 0
mov eax, esi
call fcn.13155ccc
push 0
push 0
mov eax, ebx
call fcn.13155ccc
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.13155f48
mov eax, ebx
call fcn.131437b0
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 4]
call fcn.13148888
mov eax, esi
call fcn.131437b0
mov eax, dword [ebp - 8]
call fcn.131489d4
push edi
mov eax, dword [ebp - 4]
call fcn.131449a8
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318db4a
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.1314450c
lea eax, [ebp - 8]
mov edx, 2
call fcn.1314450c
ret