Function at 0x45ec20
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 0x4707f5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
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 [0x474790]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x45ed88
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 0x478908
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 0x45ecd3
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 0x45ed07
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.0045d5d0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
mov ebx, eax
call fcn.0045d5d0
cmp dword [esp + 0x70], 8
mov edi, eax
mov eax, dword [esp + 0x5c]
jae 0x45ed4c
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 0x45edb6
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x45ed7a
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45ed88
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 0x45f1e6
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
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.00460bd0
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.00460bd0
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, esi
je 0x45ee23
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 0x45ee89
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x45ee32
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45f179
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45f179
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.0045cf00
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.0045cf00
lea esi, [esp + 0x2c]
call fcn.0045d580
lea esi, [esp + 0x38]
call fcn.0045d580
jmp 0x45f0dc
add ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x45f06b
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
add edi, edi
mov dword [esp + 0x10], edi
jmp 0x45eeb4
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 0x45eee8
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 0x45eef2
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 [0x47477c]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x45ef26
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 0x45ef34
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 0x45ef5b
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 0x45ef65
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 0x478908
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 0x45f032
cmp dword [esp + 0x8c], 8
jae 0x45efa2
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45f05a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45f05a
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.0045cf00
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.0045cf00
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x45eff6
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45f004
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 0x45f1e6
cmp dword [esp + 0x8c], 8
jae 0x45f040
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45f05a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x45f10a
sub dword [esp + 0x10], 0x1c
sub ebx, 1
cmp ebx, 0xffffffff
jne 0x45eeb0
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x45f07a
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45f179
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45f179
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.0045cf00
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.0045cf00
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x45f0ce
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45f0dc
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 0x45f1e6
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.0045cf00
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.0045cf00
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x45f140
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45f14e
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 0x45f1e6
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.0045cf00
lea ebx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.0045cf00
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x45f1af
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45f1bd
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.0046d6fd
mov esp, ebp
pop ebp
ret 4