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

Disassembly:
push 0xffffffffffffffff
push 0x1011221c
mov eax, dword fs:[0]
push eax
sub esp, 0xd38
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0xd30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013b024]
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 0x1006f821
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.10004090
add esp, 8
cmp dword [esp + 0x50], edi
lea ecx, [esp + 0x3c]
je 0x1006f810
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 0x1006f709
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 0x1006f5c5
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 0x1006f5d0
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 0x1006f80c
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 0x1006f80c
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, 0x1011da40
lea eax, [esp + 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006f72c
cmp dx, di
je 0x1006f705
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006f72c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1006f6e3
xor eax, eax
jmp 0x1006f731
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.1006fa90
jmp 0x1006f80c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x1006f7d8
mov ecx, 0x1011da44
lea eax, [esp + 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006f76b
cmp dx, di
je 0x1006f767
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006f76b
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1006f745
xor eax, eax
jmp 0x1006f770
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x1006f7d8
lea eax, [esp + 0xd8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1006f780
sub eax, edx
sar eax, 1
je 0x1006f7d8
test byte [esp + 0xac], 0x10
jne 0x1006f7d8
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 0x1006f84b
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 0x1006f6c0
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.1010dc50
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 0x1006f8ac
lea ecx, [esp + 0x74]
push str..afi
push ecx
call ebp
add esp, 8
test al, al
je 0x1006f8ac
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 0x1006f7d2
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 0x1011da4c
push ecx
mov byte [esp + 0xd5c], 4
call ebp
add esp, 8
test al, al
je 0x1006f90b
lea edx, [esp + 0x90]
push 0x10123fb4
push edx
call ebp
add esp, 8
test al, al
je 0x1006f90b
push 0x1011da4c
lea ecx, [esp + 0x24]
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__]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call dword [0x10119408]
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 0x1006f98e
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 0x1006f990
mov ebx, dword [esp + 0x34]
add ebx, 1
mov edx, edi
mov eax, esi
call fcn.10001530
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 0x1006fa35
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x1006f9fb
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006fa20
mov ecx, dword [esp + 0x24]
and eax, 0xfffffffe
cmp dword [esp + 0x38], esi
jae 0x1006fa18
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 0x1006fa2e
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 0x1006f7ea