Function at 0x1006fe10
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101420c1
mov eax, dword fs:[0]
push eax
sub esp, 0x734
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x730], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x748]
mov dword fs:[0], eax
mov eax, dword [esp + 0x758]
mov dword [esp + 0x18], eax
mov dword [esp + 0x750], 0
cmp dword [esp + 0x770], 2
lea ecx, [esp + 0x75c]
jb 0x10070093
push ecx
lea ecx, [esp + 0x90]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x750], 1
mov edx, dword [esp + 0x770]
push 1
add edx, 0xffffffff
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x768]
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__::substr_unsigned_int__unsigned_int_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x750], 2
mov ebp, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push 0x101520e4
push ecx
call ebp
add esp, 8
test al, al
je 0x1006fef1
lea edx, [esp + 0x70]
push 0x1015861c
push edx
call ebp
add esp, 8
test al, al
je 0x1006fef1
push 0x101520e4
lea ecx, [esp + 0x760]
call dword [0x1014c4e8]
push 0x101520d0
lea ecx, [esp + 0x760]
call dword [0x1014c4e8]
cmp dword [esp + 0x774], 8
mov eax, dword [esp + 0x760]
jae 0x1006ff1b
lea eax, [esp + 0x760]
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x1006ff40
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10070065
lea edx, [esp + 0xc4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1007005e
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x20]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x750], 3
mov ecx, 0x101520dc
lea eax, [esp + 0xf0]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006ffa6
test dx, dx
je 0x1006ffa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006ffa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006ff80
xor eax, eax
jmp 0x1006ffab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10070035
mov ecx, 0x101520d8
lea eax, [esp + 0xf0]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006ffe6
test dx, dx
je 0x1006ffe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006ffe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006ffc0
xor eax, eax
jmp 0x1006ffeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10070035
test byte [esp + 0xc4], 0x10
jne 0x10070035
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x3c]
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_wchar_t_const__]
mov ebx, 4
mov byte [esp + 0x750], bl
mov eax, dword [esp + 0x4c]
cmp eax, ebx
lea ecx, [esp + 0x38]
jae 0x100700ce
mov byte [esp + 0x750], 3
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 + 0x1c]
mov byte [esp + 0x750], 2
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 edx, [esp + 0xc4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006ff57
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x70]
mov byte [esp + 0x750], 1
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 + 0x8c]
mov byte [esp + 0x750], 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 + 0x75c]
mov dword [esp + 0x750], 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 ecx, dword [esp + 0x748]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x730]
xor ecx, esp
call fcn.10130e50
add esp, 0x740
ret 0x20
push ebx
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x5c]
push edx
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__::substr_unsigned_int__unsigned_int_]
lea eax, [esp + 0x54]
push str..adi
push eax
mov byte [esp + 0x758], 5
call ebp
add esp, 8
test al, al
je 0x1007012e
lea ecx, [esp + 0x54]
push str..afi
push ecx
call ebp
add esp, 8
test al, al
je 0x1007012e
lea ecx, [esp + 0x54]
mov byte [esp + 0x750], bl
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 byte [esp + 0x750], 3
lea ecx, [esp + 0x38]
jmp 0x1007002f
mov edx, dword [esp + 0x30]
push 1
add edx, 0xffffffff
push edx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x28]
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__::substr_unsigned_int__unsigned_int_]
lea ecx, [esp + 0xa8]
push 0x101520e4
push ecx
mov byte [esp + 0x758], 6
call ebp
add esp, 8
test al, al
je 0x1007018d
lea edx, [esp + 0xa8]
push 0x1015861c
push edx
call ebp
add esp, 8
test al, al
je 0x1007018d
push 0x101520e4
lea ecx, [esp + 0x20]
call dword [0x1014c4e8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call dword [0x1014c4e4]
mov eax, dword [esp + 0x30]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
mov eax, dword [esp + 0x34]
lea ecx, [eax + eax + 2]
push ecx
push 0
push esi
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x40]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x44]
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x40]
add esp, 0x20
cmp dword [esp + 0x34], 8
jae 0x1007020e
lea edx, [esp + 0x20]
mov ecx, edi
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x10070210
mov ebx, dword [esp + 0x30]
add ebx, 1
mov edx, edi
mov eax, esi
call fcn.10001650
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
lea edx, [esp + 0x314]
push edx
push esi
call eax
push esi
mov ebx, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
movzx ecx, bx
add esp, 8
cmp ecx, 0x1008
jne 0x100702b4
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x1007027a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007029f
mov ecx, dword [esp + 0x20]
and eax, 0xfffffffe
cmp dword [esp + 0x34], esi
jae 0x10070297
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x100702ad
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x750], 5
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 + 0x54]
mov byte [esp + 0x750], 4
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 + 0x38]
mov byte [esp + 0x750], 3
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 + 0x1c]
mov byte [esp + 0x750], 2
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 esi, dword [esp + 0x14]
jmp 0x10070047