Function at 0x100955a0
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 0x1013d975
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
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 0x10095708
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 0x1014bdb4
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 0x10095653
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 0x10095687
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.100997e0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
mov ebx, eax
call fcn.100997e0
cmp dword [esp + 0x70], 8
mov edi, eax
mov eax, dword [esp + 0x5c]
jae 0x100956cc
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 0x10095736
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x100956fa
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095708
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 0x10095b59
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.10099a40
mov ecx, dword [esp + 0x20]
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.10099a40
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, esi
je 0x1009579e
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 0x10095804
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x100957ad
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10095aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10095aec
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036b0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036b0
lea esi, [esp + 0x2c]
call fcn.10099790
lea esi, [esp + 0x38]
call fcn.10099790
jmp 0x10095a4f
add ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x100959de
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
add edi, edi
mov dword [esp + 0x10], edi
jmp 0x10095827
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 0x1009585b
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 0x10095865
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 [0x101464c8]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10095899
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 0x100958a7
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 0x100958ce
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 0x100958d8
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 0x1014bdb4
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 0x100959a5
cmp dword [esp + 0x8c], 8
jae 0x10095915
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100959cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100959cd
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036b0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036b0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095969
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095977
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 0x10095b59
cmp dword [esp + 0x8c], 8
jae 0x100959b3
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100959cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10095a7d
sub dword [esp + 0x10], 0x1c
sub ebx, 1
cmp ebx, 0xffffffff
jne 0x10095823
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x100959ed
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10095aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10095aec
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036b0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036b0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095a41
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095a4f
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 0x10095b59
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036b0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036b0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095ab3
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095ac1
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 0x10095b59
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.100036b0
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.100036b0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x10095b22
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10095b30
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.1012d370
mov esp, ebp
pop ebp
ret 4