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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, 0x586058
push ebx
push esi
push edi
mov ebx, 0x57e7d5
mov esi, dword [ebp + 8]
call fcn.0054c16c
mov word [ebp - 0x38], 8
xor edx, edx
lea eax, [ebx + 0x1710]
mov dword [ebp - 4], edx
lea edx, [ebp - 0x164]
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0x14
mov ecx, dword [esi + 0x778]
push ecx
push eax
push edx
call fcn.0054f4a8
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x150]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebx + 0x1713]
push eax
lea edx, [ebp - 0x150]
push edx
call fcn.0054bddc
add esp, 8
lea ecx, [ebp - 0x164]
push ecx
lea eax, [ebp - 0x150]
push eax
call fcn.0054bddc
add esp, 8
lea edx, [ebx + 0x1720]
push edx
lea ecx, [ebp - 0x150]
push ecx
call fcn.0054bddc
add esp, 8
lea eax, [ebx + 0x1725]
push eax
lea edx, [ebp - 0x150]
push edx
call fcn.0054bddc
mov word [ebp - 0x38], 0x20
add esp, 8
lea edx, [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.00559dd8
mov edx, eax
inc dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.0055a0b8
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055a088
mov dl, 1
mov eax, dword [0x5348a0]
call fcn.004087f0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xc]
mov word [ebp - 0x38], 0x2c
mov word [ebp - 0x38], 0x38
lea edx, [ebx + 0x172b]
call fcn.00559dd8
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.0055a088
mov word [ebp - 0x38], 0x44
lea edx, [ebx + 0x172d]
lea eax, [ebp - 0x10]
call fcn.00559dd8
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.0055a088
mov word [ebp - 0x38], 0x50
lea edx, [ebx + 0x172f]
lea eax, [ebp - 0x14]
call fcn.00559dd8
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.0055a088
mov word [ebp - 0x38], 0x5c
lea edx, [ebx + 0x1731]
lea eax, [ebp - 0x18]
call fcn.00559dd8
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.0055a088
mov word [ebp - 0x38], 0x68
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00559f08
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.0055a088
push 0x80
cmp dword [ebp - 4], 0
je 0x47b7fc
mov ecx, dword [ebp - 4]
jmp 0x47b802
lea ecx, [ebx + 0x1733]
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 0x47b826
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x47b84e
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.0055a088
mov ecx, dword [ebp - 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret