Function at 0x10091780
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 0x101110d5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x1013b024]
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 [0x101193e4]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x100918e8
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 0x1011da4c
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 0x10091833
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 0x10091867
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.100947f0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
mov ebx, eax
call fcn.100947f0
cmp dword [esp + 0x70], 8
mov edi, eax
mov eax, dword [esp + 0x5c]
jae 0x100918ac
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 0x10091916
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x100918da
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100918e8
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 0x10091d39
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.10094a80
mov ecx, dword [esp + 0x20]
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.10094a80
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, esi
je 0x1009197e
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 0x100919e4
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x1009198d
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10091ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10091ccc
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100035d0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100035d0
lea esi, [esp + 0x2c]
call fcn.100947a0
lea esi, [esp + 0x38]
call fcn.100947a0
jmp 0x10091c2f
add ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x10091bbe
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
add edi, edi
mov dword [esp + 0x10], edi
jmp 0x10091a07
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 0x10091a3b
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 0x10091a45
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 [0x10119408]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10091a79
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 0x10091a87
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 0x10091aae
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 0x10091ab8
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 0x1011da4c
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 0x10091b85
cmp dword [esp + 0x8c], 8
jae 0x10091af5
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10091bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10091bad
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100035d0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100035d0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10091b49
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10091b57
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 0x10091d39
cmp dword [esp + 0x8c], 8
jae 0x10091b93
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10091bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10091c5d
sub dword [esp + 0x10], 0x1c
sub ebx, 1
cmp ebx, 0xffffffff
jne 0x10091a03
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x10091bcd
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10091ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10091ccc
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100035d0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100035d0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10091c21
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10091c2f
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 0x10091d39
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100035d0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100035d0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10091c93
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10091ca1
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 0x10091d39
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100035d0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100035d0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10091d02
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10091d10
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.1010dc50
mov esp, ebp
pop ebp
ret 4