Function at 0x48b710
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebx, ecx
test edi, edi
jne 0x48b750
mov eax, dword [ebx + 0x60]
push eax
push str.TaskID___u__exception_raised_in_method_CFileMgr::SetMemFile__parameter_pBuffer_can_not_be_NULL
push 0x4d35d0
call fcn.0045ef50
add esp, 0xc
mov eax, 0x7e2d
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x132
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov ebp, dword [esp + 0x20]
test ebp, ebp
jg 0x48b787
mov ecx, dword [ebx + 0x60]
push ecx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__parameter_nNumber_must_greater_than_zero
push 0x4d35d0
call fcn.0045ef50
add esp, 0xc
mov eax, 0x7e2e
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x138
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esp + 0x2c]
test eax, eax
ja 0x48b7c8
jb 0x48b799
mov eax, dword [esp + 0x28]
test eax, eax
ja 0x48b7c8
mov edx, dword [ebx + 0x60]
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__parameter_nNumber_must_greater_than_zero
push 0x4d35d0
call fcn.0045ef50
add esp, 0xc
mov eax, 0x7e2e
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x13e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x48b7ff
mov eax, dword [ebx + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__parameter_nNumber_must_greater_than_zero
push 0x4d35d0
call fcn.0045ef50
add esp, 0xc
mov eax, 0x7e2e
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x144
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ebp, eax
je 0x48b83e
mov ecx, dword [ebx + 0x60]
push ecx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__parameter_nNumber_must_greater_than_zero
push 0x4d35d0
call fcn.0045ef50
add esp, 0xc
mov eax, 0x7e2e
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x14a
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x48b8b2
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x3c], eax
test eax, eax
jne 0x48b88a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edx, dword [ebx + 0x60]
push eax
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__error_code_is__d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x10
call esi
pop edi
pop esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x153
pop ebp
pop ebx
add esp, 8
ret 0x14
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
push eax
call edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x48], eax
add esp, 0xc
mov dword [ebx + 0x40], ebp
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x44], edx
jmp 0x48b8ea
mov ecx, ebp
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x48ba91
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
push ebp
push ecx
push eax
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x48], edx
add esp, 0xc
mov dword [ebx + 0x40], ebp
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x44], ecx
cmp dword [ebx + 0x58], 0xffffffff
jne 0x48b952
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x48b8fc
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 0
push 0x80
push 2
push 0
push 5
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx + 0x58], eax
jne 0x48b952
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edx, dword [ebx + 0x60]
push eax
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__open_file_fail__error_code_is__d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x10
call esi
pop edi
pop esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x171
pop ebp
pop ebx
add esp, 8
ret 0x14
mov ecx, dword [ebx + 0x58]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x30]
push 8
push eax
push ecx
call esi
test eax, eax
je 0x48bb48
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48bb48
mov ecx, dword [ebx + 0x58]
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x2c]
push 4
push eax
push ecx
call esi
test eax, eax
je 0x48bb13
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48bb13
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x58]
lea edx, [esp + 0x20]
push 0
push edx
push ebp
push eax
push ecx
call esi
test eax, eax
je 0x48bade
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48bade
lea eax, [ebp + 0xc]
push eax
mov dword [esp + 0x20], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x48ba30
mov dword [ebx + 0x54], 0x18f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x48ba1c
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 [ebx + 0x50]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
lea edx, [esp + 0x28]
push 8
push edx
push esi
call edi
lea eax, [esp + 0x30]
push 4
lea ecx, [esi + 8]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x3c]
push ebp
lea eax, [esi + 0xc]
push edx
push eax
call edi
mov ecx, dword [esp + 0x40]
push ecx
push esi
call fcn.0048ac20
mov ecx, dword [ebx + 0x58]
add esp, 0x2c
lea edx, [esp + 0x20]
mov dword [esp + 0x14], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48ba9d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48ba9d
push esi
call fcn.00442ac0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov edx, dword [ebx + 0x60]
push eax
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__read_from_file_fail_call_WriteFile___error_code_is__d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x10
call edi
push esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x19e
call fcn.00442ac0
mov eax, dword [ebx + 0x50]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
mov eax, dword [ebx + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__read_from_file_fail_call_WriteFile___error_code_is__d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x10
call esi
pop edi
pop esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x188
pop ebp
pop ebx
add esp, 8
ret 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, dword [ebx + 0x60]
push eax
push ecx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__read_from_file_fail_call_WriteFile___error_code_is__d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x10
call esi
pop edi
pop esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x182
pop ebp
pop ebx
add esp, 8
ret 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edx, dword [ebx + 0x60]
push eax
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__read_from_file_fail_call_WriteFile___error_code_is__d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x10
call esi
pop edi
pop esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], 0x17c
pop ebp
pop ebx
add esp, 8
ret 0x14