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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, 0x587bdc
push ebx
push esi
push edi
mov esi, 0x5806ec
mov ebx, dword [ebp + 8]
call fcn.0054e578
mov word [ebp - 0x38], 8
xor edx, edx
lea eax, [esi + 0x1671]
mov dword [ebp - 4], edx
lea edx, [ebp - 0x164]
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0x14
mov ecx, dword [ebx + 0x778]
push ecx
push eax
push edx
call fcn.005518b4
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x150]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [esi + 0x1674]
push eax
lea edx, [ebp - 0x150]
push edx
call fcn.0054e1e8
add esp, 8
lea ecx, [ebp - 0x164]
push ecx
lea eax, [ebp - 0x150]
push eax
call fcn.0054e1e8
add esp, 8
lea edx, [esi + 0x1681]
push edx
lea ecx, [ebp - 0x150]
push ecx
call fcn.0054e1e8
mov word [ebp - 0x38], 0x20
add esp, 8
lea edx, [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.0055c210
mov edx, eax
inc dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.0055c54c
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055c51c
mov dl, 1
mov eax, dword [0x535998]
call fcn.004087f0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xc]
mov word [ebp - 0x38], 0x2c
lea edx, [esi + 0x1686]
call fcn.0055c210
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x38], 0x38
lea edx, [ebx + 0x7a4]
lea eax, [ebp - 0x10]
call fcn.0055c210
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x38], 0x44
lea edx, [esi + 0x1687]
lea eax, [ebp - 0x14]
call fcn.0055c210
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x38], 0x50
lea edx, [esi + 0x1688]
lea eax, [ebp - 0x18]
call fcn.0055c210
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x38], 0x5c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.0055c39c
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x38], 0x68
push 0x80
cmp dword [ebp - 4], 0
je 0x47a9b2
mov ecx, dword [ebp - 4]
jmp 0x47a9b8
lea ecx, [esi + 0x1689]
push ecx
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov word [ebp - 0x38], 0x14
jmp 0x47a9dc
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x47aa04
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x38], 0x80
mov edx, 3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x38], 0x74
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0055c51c
mov ecx, dword [ebp - 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret