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

Disassembly:
mov eax, 0x100097c2
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.10006c52
pop ecx
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x10006a31
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 edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006ae4
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.10006c52
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.10007244
add esp, 0xc
test al, al
jne 0x10006ab4
lea eax, [ebp - 0x1c]
push eax
call fcn.10007244
test al, al
pop ecx
je 0x10006ab4
mov ecx, dword [ebp - 0x28]
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 0x10006a8c
mov ecx, eax
cmp dword [ebp - 0x18], ebx
je 0x10006a94
mov eax, dword [ebp - 0x18]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10006ab4
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x10006aad
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 - 0x18]
cmp eax, ebx
jne 0x10006ac0
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 0x80000000
push eax
call edi
push 1
lea ecx, [ebp - 0x1c]
mov esi, 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 esi, 0xffffffff
je 0x10006b15
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x10006b0e
lea eax, [ebp + 8]
push ebx
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006b0e
cmp dword [ebp + 8], edi
jne 0x10006b0e
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
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]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4