Function at 0x10061ef0
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10090897
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
mov ebp, ecx
test esi, esi
mov dword [esp + 0x18], ebp
jle 0x10062283
mov ebx, dword [esp + 0xa0]
push 0x1009456c
lea eax, [esp + 0x20]
push ebx
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
xor ecx, ecx
cmp esi, 2
mov dword [esp + 0xd], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x11], ecx
mov byte [esp + 0xc], 0
mov byte [esp + 0x15], cl
jl 0x100621a4
push edi
mov edi, dword [sym.imp.MSVCRT.dll__itoa]
lea edx, [esp + 0x10]
push 0xa
push edx
push esi
call edi
lea eax, [esp + 0x2c]
push 0x10094574
lea ecx, [esp + 0x74]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea edx, [esp + 0x28]
mov byte [esp + 0xb4], 1
push edx
push eax
lea eax, [esp + 0x74]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x24
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x10061fc5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10061fe4
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x10061fdd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
cmp esi, 2
jl 0x10062130
lea ebp, [esi + 1]
mov bl, 6
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push 0xa
mov dword [esp + 0x18], ecx
push edx
push esi
mov word [esp + 0x24], cx
call edi
lea eax, [esp + 0x2c]
push 0x10094574
lea ecx, [esp + 0x84]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea edx, [esp + 0x28]
mov byte [esp + 0xb4], 4
push edx
push eax
lea eax, [esp + 0x50]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x24
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1006205e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10062106
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push 0xa
mov dword [esp + 0x18], ecx
push edx
push ebp
mov word [esp + 0x24], cx
call edi
lea eax, [esp + 0x2c]
push 0x10094574
lea ecx, [esp + 0x94]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea edx, [esp + 0x28]
mov byte [esp + 0xb4], 7
push edx
push eax
lea eax, [esp + 0x64]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x24
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x48]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
jne 0x100620df
mov eax, edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x100620e9
mov ecx, edx
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
dec esi
dec ebp
cmp esi, 2
jge 0x10061ff3
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
jne 0x1006213e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10062190
lea ecx, [esp + 0x1c]
push 0x100a9bac
lea edx, [esp + 0x44]
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov ecx, dword [esp + 0x50]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
add esp, 0xc
test ecx, ecx
jne 0x10062170
mov ecx, edx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1006217a
mov eax, edx
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0x2c]
test al, al
mov eax, dword [esp + 0x20]
je 0x100621f6
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov ecx, edx
je 0x100621bd
mov ecx, eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x100621c6
mov eax, edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10062251
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10062247
mov al, byte [ecx - 1]
test al, al
je 0x1006223d
cmp al, 0xff
je 0x1006223d
dec al
mov byte [ecx - 1], al
mov eax, 0xfffffff9
jmp 0x1006236c
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov ecx, edx
je 0x10062204
mov ecx, eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1006220d
mov eax, edx
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x10062251
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10062247
mov al, byte [ecx - 1]
test al, al
je 0x1006223d
cmp al, 0xff
je 0x1006223d
dec al
mov byte [ecx - 1], al
mov eax, 0xfffffff9
jmp 0x1006236c
dec ecx
push ecx
call fcn.10088e50
add esp, 4
mov eax, 0xfffffff9
jmp 0x1006236c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
test eax, eax
je 0x1006228a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10062278
cmp al, 0xff
je 0x10062278
dec al
mov byte [ecx], al
jmp 0x1006228a
push ecx
call fcn.10088e50
add esp, 4
jmp 0x1006228a
mov ebx, dword [esp + 0xa0]
mov al, byte [ebp + 0x2c]
test al, al
je 0x1006236a
lea eax, [ebp + 0x10]
lea ecx, [esp + 0x2c]
push eax
call fcn.100619c0
push ebx
mov ecx, ebp
mov dword [esp + 0x9c], 0xa
call fcn.10062a00
mov ecx, dword [ebp + 4]
mov dword [esp + 0x18], eax
cmp eax, ecx
je 0x100622ed
mov eax, dword [eax + 0x10]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
jne 0x100622cf
mov eax, edx
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x100622d8
mov ecx, edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jl 0x100622ed
lea eax, [esp + 0x18]
jmp 0x100622f8
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jne 0x10062311
lea ecx, [esp + 0x2c]
call fcn.10061a00
mov eax, 0xfffffffd
jmp 0x1006236c
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x10062328
lea ecx, [esp + 0x2c]
call fcn.10061a00
mov eax, 0xfffffffc
jmp 0x1006236c
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1006234a
lea ecx, [esp + 0x2c]
call fcn.10061a00
mov eax, 0xfffffffb
jmp 0x1006236c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
lea ecx, [esp + 0x2c]
jne 0x10062365
call fcn.10061a00
mov eax, 0xfffffff8
jmp 0x1006236c
call fcn.10061a00
xor eax, eax
mov ecx, dword [esp + 0x90]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8