Function at 0x10016480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056a67
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x598], ecx
push 0x200
push 0
lea eax, [ebp - 0x2d8]
push eax
call fcn.10033d10
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x4d8]
push ecx
call fcn.10033d10
add esp, 0xc
push 0xc8
push 0
lea edx, [ebp - 0xd8]
push edx
call fcn.10033d10
add esp, 0xc
lea ecx, [ebp - 0x508]
call fcn.10005620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x520]
call fcn.10005620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4f0]
call fcn.10005ad0
mov byte [ebp - 4], 2
push str._INF__ClearReadOnly__Start
call fcn.100098e0
add esp, 4
push 0x64
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x10016596
push str._ERR__ClearReadOnly__GetWindowsDirectory_Err
call fcn.100098e0
add esp, 4
mov dword [ebp - 0x584], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4f0]
call fcn.10005900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x520]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.10005450
mov eax, dword [ebp - 0x584]
jmp 0x100167b7
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0xd8]
push eax
push str._c:_script.txt
lea ecx, [ebp - 0x538]
push ecx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x588], eax
mov edx, dword [ebp - 0x588]
push edx
lea ecx, [ebp - 0x508]
call fcn.100054a0
lea ecx, [ebp - 0x538]
call fcn.10005450
mov eax, dword [ebp + 8]
push eax
push 0x1006a788
lea ecx, [ebp - 0x550]
push ecx
call fcn.1002e950
add esp, 0xc
mov dword [ebp - 0x58c], eax
mov edx, dword [ebp - 0x58c]
push edx
lea ecx, [ebp - 0x4f0]
call fcn.10005950
lea ecx, [ebp - 0x550]
call fcn.10005900
push str.attr_disk_clear_readonly_n
lea eax, [ebp - 0x4f0]
push eax
lea ecx, [ebp - 0x568]
push ecx
call fcn.100257d0
add esp, 0xc
mov dword [ebp - 0x590], eax
mov edx, dword [ebp - 0x590]
push edx
lea ecx, [ebp - 0x4f0]
call fcn.10005950
lea ecx, [ebp - 0x568]
call fcn.10005900
push 1
push 0x40
push 2
lea ecx, [ebp - 0x508]
call fcn.10005370
push eax
lea ecx, [ebp - 0x65c]
call fcn.10022890
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4f0]
call fcn.10005e70
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.100057f0
push eax
lea ecx, [ebp - 0x65c]
call fcn.10023680
lea ecx, [ebp - 0x65c]
call fcn.10022770
lea edx, [ebp - 0x508]
push edx
push 0x1006a7b4
lea eax, [ebp - 0x580]
push eax
call fcn.1000a390
add esp, 0xc
mov dword [ebp - 0x594], eax
mov ecx, dword [ebp - 0x594]
push ecx
lea ecx, [ebp - 0x520]
call fcn.100054a0
lea ecx, [ebp - 0x580]
call fcn.10005450
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5a0], esp
lea ecx, [ebp - 0x520]
call fcn.10005370
push eax
mov ecx, esi
call fcn.100055b0
mov dword [ebp - 0x5a4], eax
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5a8], esp
push str.diskpart
call fcn.100055b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x598]
call fcn.10016bc0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5ac], esp
lea ecx, [ebp - 0x508]
call fcn.10005370
push eax
mov ecx, esi
call fcn.100055b0
call fcn.10009ca0
add esp, 0x18
push str._SUC__ClearReadOnly__End
call fcn.100098e0
add esp, 4
mov dword [ebp - 0x59c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x65c]
call fcn.100115c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4f0]
call fcn.10005900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x520]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.10005450
mov eax, dword [ebp - 0x59c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 4