Function at 0x1000d830
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10012e54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov al, byte [esp + 3]
push esi
push edi
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [esp + 0x150]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x148], 0
test eax, eax
jne 0x1000d898
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000d8ae
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
je 0x1000d8ee
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret
mov cl, byte [esp + 0xb]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xb]
xor edi, edi
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 1
mov byte [esp + 0x30], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x154], 2
call fcn.1000dad0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, edi
jne 0x1000d94b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x3c]
push ecx
push edi
push 0x100169d8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1000d9a5
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x1000dab4
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
jne 0x1000d9f4
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x1000dab4
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x1000da01
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000da22
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x1000da1e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push edi
push eax
jmp 0x1000da28
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.1000dcc0
mov ecx, dword [esp + 0x38]
add esp, 8
cmp ecx, edi
je 0x1000da54
mov al, byte [ecx - 1]
test al, al
je 0x1000da4a
cmp al, 0xff
je 0x1000da4a
dec al
mov byte [ecx - 1], al
jmp 0x1000da54
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edi
cmp ecx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
je 0x1000da84
mov al, byte [ecx - 1]
test al, al
je 0x1000da7a
cmp al, 0xff
je 0x1000da7a
dec al
mov byte [ecx - 1], al
jmp 0x1000da84
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edi
cmp ecx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x1000dab4
mov al, byte [ecx - 1]
test al, al
je 0x1000daaa
cmp al, 0xff
je 0x1000daaa
dec al
mov byte [ecx - 1], al
jmp 0x1000dab4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x140]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x144
ret