Function at 0x100a7490
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024c54c
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100a74bc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x100a74dc
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x100a74d4
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100a74e6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x100a770f
push edi
lea eax, [ebp - 0x6c]
push esi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFilePathUtils::BaseName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push esi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFilePathUtils::Extension_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 1
push esi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0x18
push 2
push 0x10267474
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.1001a7c0
xor edi, edi
nop dword [eax + eax]
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x3c]
call fcn.10020d00
add esp, 4
mov byte [ebp - 4], 3
test edi, edi
jle 0x100a761a
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push edi
cmovae eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0xcc]
push str._s_d
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::FormatResult_wchar_t_const__
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
push dword [ebp - 0x44]
cmovae ecx, dword [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.1001a7c0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x74], xmm0
movq qword [ebp - 0x7c], xmm0
call fcn.1001a5a0
movups xmm0, xmmword [ebp - 0x9c]
xor eax, eax
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 7
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x8c], ax
movq xmm0, qword [ebp - 0x74]
movq qword [ebp - 0x2c], xmm0
call fcn.1001a5a0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 3
call fcn.1001a5a0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x100a765d
and eax, 0xfffffffe
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
push eax
cmovae ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov ecx, esi
cmovae eax, dword [ebp - 0x24]
cmp dword [esi + 0x14], 8
jb 0x100a7684
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 8
test eax, eax
je 0x100a76b7
lea ecx, [ebp - 0x24]
inc edi
call fcn.1001a5a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.1001a5a0
cmp edi, dword [ebp + 0xc]
jb 0x100a7540
mov byte [ebp + 0xb], 0
jmp 0x100a76e1
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 4
cmovae eax, dword [ebp - 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
lea ecx, [ebp - 0x3c]
call fcn.1001a5a0
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0xb4]
call fcn.1001a5a0
lea ecx, [ebp - 0x54]
call fcn.1001a5a0
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret