Function at 0x1006f840
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10144b5c
mov eax, dword fs:[0]
push eax
sub esp, 0xd38
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0xd30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0xd4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd5c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0xd60]
mov esi, dword [esp + 0xd64]
mov edi, dword [esp + 0xd68]
mov ebx, dword [esp + 0xd6c]
mov ebp, dword [ecx]
push 0
push 0
mov dword [esp + 0x1c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 0xa0]
call eax
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1006fba1
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_void_]
lea ecx, [esp + 0x3c]
push esi
push ecx
mov dword [esp + 0xd5c], edi
call fcn.10004130
add esp, 8
cmp dword [esp + 0x50], edi
lea ecx, [esp + 0x3c]
je 0x1006fb90
push edi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x5c
jne 0x1006fa89
call sub.EnumFolder.dll_CreateEnumRemoteFolder
push 0x206
lea ecx, [esp + 0x732]
mov esi, eax
push edi
push ecx
mov dword [esp + 0x24], esi
mov word [esp + 0x738], di
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], 8
jae 0x1006f945
lea ecx, [esp + 0x40]
lea edx, [esp + 0x72c]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, di
jne 0x1006f950
push 0x206
lea edx, [esp + 0xb42]
push edi
push edx
mov word [esp + 0xb48], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x206
lea eax, [esp + 0x93a]
push edi
push eax
mov word [esp + 0x940], di
call sub.MSVCR80.dll_memset
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
add esp, 0xc
push edi
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xb44]
push ecx
lea eax, [esp + 0x738]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push edi
push edi
push edi
push edi
lea eax, [esp + 0x73c]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
lea ecx, [esp + 0x730]
push ecx
mov ecx, esi
call edx
test eax, 0xffff
jne 0x1006fb8c
push 0x24c
lea eax, [esp + 0xb4]
push edi
push eax
mov dword [esp + 0xb8], edi
call sub.MSVCR80.dll_memset
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
add esp, 0xc
push edi
push 1
lea eax, [esp + 0xb4]
push eax
push edi
mov ecx, esi
call edx
test eax, 0xffff
jne 0x1006fb8c
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__]
lea esp, [esp]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
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 + 0xd54], 1
mov ecx, 0x101520d8
lea eax, [esp + 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006faac
cmp dx, di
je 0x1006fa85
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006faac
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1006fa63
xor eax, eax
jmp 0x1006fab1
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
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 eax, dword [esp + 0x30]
push eax
call fcn.1006fe10
jmp 0x1006fb8c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x1006fb58
mov ecx, 0x101520dc
lea eax, [esp + 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006faeb
cmp dx, di
je 0x1006fae7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006faeb
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1006fac5
xor eax, eax
jmp 0x1006faf0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x1006fb58
lea eax, [esp + 0xd8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1006fb00
sub eax, edx
sar eax, 1
je 0x1006fb58
test byte [esp + 0xac], 0x10
jne 0x1006fb58
lea ecx, [esp + 0xd8]
push ecx
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__::constructor_wchar_t_const__]
mov ebx, 2
mov byte [esp + 0xd54], bl
mov eax, dword [esp + 0x6c]
cmp eax, 4
lea ecx, [esp + 0x58]
jae 0x1006fbcb
mov byte [esp + 0xd54], 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 + 0x20]
mov byte [esp + 0xd54], 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_]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
xor edi, edi
push edi
push 1
lea eax, [esp + 0xb4]
push eax
push edi
mov ecx, esi
call edx
test eax, 0xffff
je 0x1006fa40
lea ecx, [esp + 0x3c]
mov dword [esp + 0xd54], 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 + 0xd4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd30]
xor ecx, esp
call fcn.10130e50
add esp, 0xd44
ret 0x14
push 4
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x7c]
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 + 0x74]
push str..adi
push eax
mov byte [esp + 0xd5c], 3
call ebp
add esp, 8
test al, al
je 0x1006fc2c
lea ecx, [esp + 0x74]
push str..afi
push ecx
call ebp
add esp, 8
test al, al
je 0x1006fc2c
lea ecx, [esp + 0x74]
mov byte [esp + 0xd54], 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 + 0xd54], 1
lea ecx, [esp + 0x58]
jmp 0x1006fb52
mov edx, dword [esp + 0x34]
push 1
add edx, 0xffffffff
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x2c]
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 + 0x90]
push 0x101520e4
push ecx
mov byte [esp + 0xd5c], 4
call ebp
add esp, 8
test al, al
je 0x1006fc8b
lea edx, [esp + 0x90]
push 0x1015861c
push edx
call ebp
add esp, 8
test al, al
je 0x1006fc8b
push 0x101520e4
lea ecx, [esp + 0x24]
call dword [0x1014c4e8]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call dword [0x1014c4e4]
mov eax, dword [esp + 0x34]
xor ecx, ecx
add eax, 1
mov edx, ebx
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 + 0x38]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x40]
xor ecx, ecx
add eax, 1
add esp, 0xc
mov edx, ebx
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 + 0x38]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x38], 8
jae 0x1006fd0e
lea edx, [esp + 0x24]
mov ecx, edi
movzx eax, word [edx]
mov word [ecx], ax
add edx, ebx
add ecx, ebx
test ax, ax
jne 0x1006fd10
mov ebx, dword [esp + 0x34]
add ebx, 1
mov edx, edi
mov eax, esi
call fcn.10001650
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
lea edx, [esp + 0x2fc]
push edx
push esi
call eax
push esi
mov ebx, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
movzx ecx, bx
add esp, 4
cmp ecx, 0x1008
jne 0x1006fdb5
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x1006fd7b
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006fda0
mov ecx, dword [esp + 0x24]
and eax, 0xfffffffe
cmp dword [esp + 0x38], esi
jae 0x1006fd98
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x1006fdae
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x90]
mov byte [esp + 0xd54], 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 + 0x74]
mov byte [esp + 0xd54], 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 ecx, [esp + 0x58]
mov byte [esp + 0xd54], 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 + 0x20]
mov byte [esp + 0xd54], 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_]
mov esi, dword [esp + 0x18]
jmp 0x1006fb6a