Function at 0x10095900
Capabilities:
Check if file exists
Delete directory
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10143a15
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x10095a68
mov edi, eax
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x101520e4
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
add edi, 0xffffffff
cmp eax, edi
jne 0x100959b3
mov edx, dword [esp + 0x6c]
add edx, 0xffffffff
push edx
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::resize_unsigned_int_]
mov eax, vtable.MemoryControl.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x100959e7
lea eax, [esp + 0x5c]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
call fcn.100998f0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
mov ebx, eax
call fcn.100998f0
cmp dword [esp + 0x70], 8
mov edi, eax
mov eax, dword [esp + 0x5c]
jae 0x10095a2c
lea eax, [esp + 0x5c]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
mov ecx, esi
call edx
test al, al
jne 0x10095a96
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095a5a
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095a68
push eax
call esi
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x10095eb9
xor esi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0xa0], 5
mov eax, dword [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x4c]
call fcn.10099bb0
mov ecx, dword [esp + 0x20]
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.10099bb0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, esi
je 0x10095afe
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, esi
jne 0x10095b64
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x10095b0d
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10095e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10095e4c
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036e0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036e0
lea esi, [esp + 0x2c]
call fcn.100998a0
lea esi, [esp + 0x38]
call fcn.100998a0
jmp 0x10095daf
add ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x10095d3e
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
add edi, edi
mov dword [esp + 0x10], edi
jmp 0x10095b87
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10095bbb
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10095bc5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
add edi, esi
push edi
lea ecx, [esp + 0x78]
call dword [0x1014c4e4]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10095bf9
mov edi, dword [esp + 0x24]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10095c07
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add eax, esi
test esi, esi
mov dword [esp + 0x54], eax
je 0x10095c2e
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10095c38
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + esi + 0x14]
mov ecx, dword [esp + 0x54]
push eax
push 0x101520e4
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
add esi, 0xffffffff
cmp eax, esi
mov eax, dword [esp + 0x78]
jne 0x10095d05
cmp dword [esp + 0x8c], 8
jae 0x10095c75
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10095d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10095d2d
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036e0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036e0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095cc9
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095cd7
push eax
call esi
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x10095eb9
cmp dword [esp + 0x8c], 8
jae 0x10095d13
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10095d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10095ddd
sub dword [esp + 0x10], 0x1c
sub ebx, 1
cmp ebx, 0xffffffff
jne 0x10095b83
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x10095d4d
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10095e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10095e4c
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036e0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036e0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095da1
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095daf
push eax
call esi
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x10095eb9
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036e0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036e0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095e13
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095e21
push eax
call esi
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x10095eb9
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036e0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036e0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095e82
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095e90
push eax
call esi
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 4