Function at 0x10031730
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018079b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
mov byte [ebx], al
call fcn.1003ca50
test al, al
jne 0x100317c2
push str.Failed_to_get_system_Drive_for_the_OS
jmp 0x10031976
lea ecx, [ebp - 0x44]
call fcn.100e5b80
test al, al
jne 0x10031802
push str.Failed_to_get_guid_for_aam_backup__using_hardcoded_guid.
push 0x101a53f8
call fcn.10002de0
push eax
call fcn.10003d90
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp byte [ebp + 8], 0
push 0x24
je 0x100317f8
push str.E66DC5F1_B522_4577_8960_076433FAB1AD
jmp 0x100317fd
push str.6B190050_8B83_4D1C_BDFB_85B559482DBC
call fcn.10001c20
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x1003181c
cmp dword [ebp - 0x18], 8
mov ecx, edi
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10001c20
push 4
xor eax, eax
mov dword [ebp - 0x4c], 0
push 0x101b6fc0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.10001c20
push 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
push edi
call fcn.100e1150
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.10001bc0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10031868
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10031954
push ecx
mov ecx, edi
call fcn.100e1a10
mov ecx, dword [edi + 0x14]
add esp, 4
test al, al
jne 0x100318b4
cmp ecx, 8
jb 0x10031890
mov edi, dword [edi]
push edi
push str.Unable_to_create_BackUp_Folder__s
push 0x101a53f8
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.10003e20
add esp, 0x10
xor bl, bl
jmp 0x100319ba
mov eax, edi
cmp ecx, 8
jb 0x100318bd
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003192f
mov eax, dword [0x101e9ed0]
test eax, eax
je 0x100318fe
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100318db
mov ecx, dword [edi]
push ecx
push str.Directory_to_hide_not_present_at_location__s
push 0x101a4aec
push 0x101a4aec
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
jmp 0x10031951
mov ecx, dword [0x101e9ed4]
test ecx, ecx
je 0x10031951
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x10031912
mov edx, dword [edi]
mov eax, dword [ecx]
push edx
push str.Directory_to_hide_not_present_at_location__s
push str.FileUtils
push 0x101a4aec
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x10031951
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x10031939
mov ecx, dword [edi]
mov esi, edi
jb 0x1003193f
mov esi, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebx], 1
push 0
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.100e1150
add esp, 8
mov ecx, edi
call fcn.100e1a10
add esp, 4
test al, al
jne 0x1003198d
push str.Failed_in_utilCreateDirectoryPath
push 0x101a53f8
call fcn.10002de0
push eax
call fcn.10003e20
add esp, 0xc
xor bl, bl
jmp 0x100319ba
call fcn.10002de0
cmp dword [edi + 0x14], 8
jb 0x1003199a
mov edi, dword [edi]
mov esi, dword [eax]
push edi
push str.The_temp_path_for_Backup_is_:_s
push 0x101a53f8
mov esi, dword [esi + 0x54]
mov ecx, esi
push eax
call dword [0x1018a4d4]
call esi
add esp, 0x10
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.10001bc0
lea ecx, [ebp - 0x74]
call fcn.10001bc0
lea ecx, [ebp - 0x8c]
call fcn.10001bc0
lea ecx, [ebp - 0x2c]
call fcn.10001bc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret