Function at 0x100a7d40
Capabilities:
Delete directory
Delete file
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x40
push 0xffffffffffffffff
push 0x1024c643
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
push dword [ebp + 0x48]
xorps xmm0, xmm0
lea ecx, [ebp + 8]
xor edi, edi
movlpd qword [ebp + 0x38], xmm0
mov dword [ebp + 4], edi
call fcn.1001a380
lea eax, [ebp + 8]
mov dword [ebp - 4], edi
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
mov ecx, dword [ebp + 0x18]
add esp, 8
test ecx, ecx
je 0x100a7dc8
mov edx, dword [ebp + 0x1c]
cmp ecx, edx
jae 0x100a7db6
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov dword [eax + ecx*2], 0x5c
jmp 0x100a7dc8
push 0x5c
mov byte [ebp + 4], 0
push dword [ebp + 4]
push ecx
lea ecx, [ebp + 8]
call fcn.1001d8e0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
push 4
mov byte [ebp - 4], 1
call fcn.1006e6a7
mov ebx, eax
mov dword [ebp], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebx], 0xffffffff
push 0x1026628c
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
call fcn.1001e9d0
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
push ecx
push eax
mov ecx, ebx
call fcn.100320b0
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
mov bl, al
call fcn.1001a5a0
test bl, bl
je 0x100a80ba
mov ecx, dword [ebp - 0x2c]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x100a7e50
mov al, 1
jmp 0x100a7e52
xor al, al
test al, al
je 0x100a7e97
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x100a7e97
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov ebx, dword [ebp - 0x24]
cmp esi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x100a7e97
cmp edx, 1
je 0x100a7e8c
cmp esi, 8
lea eax, [ebp - 0x24]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x100a7e97
cmp edx, 2
jne 0x100a7e97
mov ebx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x38]
mov dword [ebp + 0x3c], esi
jmp 0x100a7ee9
or ecx, 0
je 0x100a7ea0
mov al, 1
jmp 0x100a7ea2
xor al, al
test al, al
lea edx, [ebp + 8]
lea eax, [ebp - 0x24]
lea ecx, [ebp + 0x20]
push eax
je 0x100a7ec5
call fcn.10020d00
push eax
mov byte [ebp - 4], 4
call sym.WMCommon.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_WM::GMFilePathUtils::RemoveAll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov byte [ebp - 4], 2
jmp 0x100a7ed7
call fcn.10020d00
lea eax, [ebp + 0x20]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::RemoveFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
movzx eax, al
cdq
add esp, 8
lea ecx, [ebp + 0x20]
mov esi, eax
mov ebx, edx
mov dword [ebp + 0x3c], esi
call fcn.1001a5a0
mov ecx, dword [ebp]
lea eax, [ebp - 0x4c]
push eax
call fcn.10032120
test al, al
je 0x100a80c0
nop dword [eax]
mov ecx, dword [ebp - 0x2c]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x100a7f11
mov al, 1
jmp 0x100a7f13
xor al, al
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
test al, al
je 0x100a7f54
test esi, esi
je 0x100a7f54
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp word [eax], 0x2e
jne 0x100a7f54
cmp esi, 1
je 0x100a80a1
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp word [eax + 2], 0x2e
jne 0x100a7f54
cmp esi, 2
je 0x100a80a1
or ecx, 0
je 0x100a7f5d
mov al, 1
jmp 0x100a7f5f
xor al, al
test al, al
je 0x100a7fe9
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x20]
xor eax, eax
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
or edi, 1
mov eax, dword [ebp + 0x18]
add eax, esi
mov dword [ebp + 0x34], 7
push eax
mov dword [ebp + 4], edi
call fcn.1001cf30
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp + 0x20]
push eax
call fcn.1001a7c0
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push esi
cmovae eax, dword [ebp - 0x24]
lea ecx, [ebp + 0x20]
push eax
call fcn.1001a7c0
lea eax, [ebp + 0x20]
push eax
call sym.WMCommon.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_WM::GMFilePathUtils::RemoveAll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, dword [ebp + 0x3c]
lea ecx, [ebp + 0x20]
add esp, 4
mov byte [ebp - 4], 2
add esi, eax
mov dword [ebp + 0x3c], esi
adc ebx, edx
and edi, 0xfffffffe
call fcn.1001a5a0
jmp 0x100a80a4
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x20]
xor eax, eax
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
or edi, 2
mov eax, dword [ebp + 0x18]
add eax, esi
mov dword [ebp + 0x34], 7
push eax
mov dword [ebp + 4], edi
call fcn.1001cf30
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp + 0x20]
push eax
call fcn.1001a7c0
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push esi
cmovae eax, dword [ebp - 0x24]
lea ecx, [ebp + 0x20]
push eax
call fcn.1001a7c0
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x100a806d
and eax, 0xfffffffe
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
push eax
cmovae ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 0x3c]
lea ecx, [ebp + 0x20]
dec eax
mov byte [ebp - 4], 2
neg eax
sbb eax, eax
inc eax
add esi, eax
mov dword [ebp + 0x3c], esi
adc ebx, 0
and edi, 0xfffffffd
call fcn.1001a5a0
jmp 0x100a80a4
mov esi, dword [ebp + 0x3c]
mov ecx, dword [ebp]
lea eax, [ebp - 0x4c]
push eax
call fcn.10032120
test al, al
jne 0x100a7f00
jmp 0x100a80c0
mov ebx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x100a80db
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x100a80db
mov dword [edi], 0xffffffff
lea eax, [ebp + 8]
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 7
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyGetCurrentDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 0xc
test al, al
je 0x100a8174
lea eax, [ebp + 0x20]
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
mov eax, dword [ebp + 0x30]
lea edx, [ebp + 8]
add esp, 8
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
cmovae edx, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
cmp eax, dword [ebp + 0x18]
jne 0x100a8174
push eax
call fcn.1001b210
add esp, 4
test eax, eax
jne 0x100a8174
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x68]
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::GetParentDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x100a8165
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x68]
call fcn.1001a5a0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x100a81a4
add esi, 1
adc ebx, 0
lea ecx, [ebp + 0x20]
call fcn.1001a5a0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x100a81c4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x100a81c4
mov dword [edi], 0xffffffff
push 4
push edi
call fcn.1006e6d7
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
lea ecx, [ebp + 8]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov edx, ebx
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x40]
pop ebp
ret