Function at 0x1001214f
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
mov eax, 0x10048672
call fcn.100464e0
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.100123ae
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x1001217f
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10012232
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.100123ae
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.100129a0
add esp, 0xc
test al, al
jne 0x10012204
lea eax, [ebp - 0x24]
push eax
call fcn.100129a0
test al, al
pop ecx
je 0x10012204
mov ecx, dword [ebp - 0x30]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp ecx, ebx
jne 0x100121dc
mov ecx, eax
cmp dword [ebp - 0x20], ebx
je 0x100121e4
mov eax, dword [ebp - 0x20]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10012204
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x100121fd
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x10012210
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push 3
push ebx
push 1
push edi
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x14], 0xffffffff
je 0x10012270
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jb 0x10012267
cmp esi, 0xffffffff
je 0x10012267
lea eax, [ebp + 8]
push ebx
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012267
cmp dword [ebp + 8], esi
jne 0x10012267
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4