Function at 0x140048000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov r13, rdx
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rbp + 0xa8], esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], esi
or qword [rsp + 0x40], 0xffffffffffffffff
mov ebx, esi
mov qword [rsp + 0x48], rbx
mov r15d, 0x100000
mov dword [rbp + 0xb0], esi
mov r12d, esi
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__
lea edx, [rsi + 0x5e]
lea rcx, [rbp - 0x80]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov r14, qword [r13 + 0x48]
mov rcx, qword [r14 + 0x40]
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
lea r8, [rsp + 0x30]
lea rdx, [0x140068898]
mov rax, qword [rax]
call qword [0x140063988]
mov dword [rbp + 0xb8], eax
lea rdi, [r13 + 0x54]
test eax, eax
jns 0x1400480e4
mov r9d, eax
lea r8, str.CVdsDiskLun::PostCleanDiskHandler:_pAsync_QueryInterface_failed:__lX
xor edx, edx
lea ecx, [rsi + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov eax, dword [rbp + 0xb8]
mov dword [r14 + 0x68], eax
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
jmp 0x1400486df
mov qword [rbp + 0xb8], rdi
cmp dword [rdi], esi
je 0x140048101
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [0x1400a34a0], eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
movabs r10, 0xfd048f26585be270
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0xa8]
mov rax, qword [rax + 0x20]
call qword [0x140063988]
mov edi, eax
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0xa8]
test edi, edi
js 0x140048671
test eax, eax
js 0x140048671
cmp dword [r13 + 0x50], 1
jne 0x14004815c
mov dword [r14 + 0x6c], 0x64
mov dword [r14 + 0x68], esi
jmp 0x1400486a4
mov r12, qword [rbp + 0xb8]
cmp dword [r12], esi
je 0x1400482e7
call qword [sym.imp.vdsutil.dll_GarbageCollectDriveLetters]
nop dword [rax + rax]
lea rcx, [r13 + 0x18]
call qword [sym.imp.vdsutil.dll_DeleteBcdObjects]
nop dword [rax + rax]
test eax, eax
jns 0x1400481ab
mov r9d, eax
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__2__status_lX
mov edx, 1
lea ecx, [rdx + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
lea rdx, [r13 + 8]
mov rcx, qword [r13 + 0x40]
call fcn.140020870
test eax, eax
je 0x1400481f0
mov dword [r14 + 0x68], 0x8000ffff
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
lea rdx, [r13 + 8]
mov ecx, 9
call fcn.14002b7e8
mov r12d, esi
jmp 0x1400486b4
lea rcx, [0x1400a2e40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov r12, qword [rbp + 0xa0]
mov r12, qword [r12 + 0xd0]
test r12, r12
je 0x140048235
mov rax, qword [r12]
movabs r10, 0xfd41b67356dad870
mov rcx, r12
mov rax, qword [rax + 8]
call qword [0x140063988]
jmp 0x140048253
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__3__m_pUnk__NULL
mov edx, 1
lea ecx, [rdx + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov r12, rsi
lea rcx, [0x1400a2e40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test r12, r12
je 0x1400482e0
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
lea rcx, [r13 + 8]
call fcn.14002b31c
mov edi, eax
mov dword [rsp + 0x38], eax
mov rax, qword [r12]
movabs r10, 0xbaac1f10365eb170
mov rcx, r12
mov rax, qword [rax + 0x10]
call qword [0x140063988]
test edi, edi
jns 0x1400482e0
mov r9d, edi
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__4___lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov dword [r14 + 0x68], 0x80042419
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov r12d, 0x80042419
jmp 0x1400486b4
mov r12, qword [rbp + 0xb8]
cmp dword [r13 + 0x58], 1
jne 0x140048365
movups xmm0, xmmword [r13 + 8]
movdqu xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140021d2c
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14004835b
mov dword [rbp + 0xa8], 0x80042405
mov r9d, edi
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__5___lX
xor edx, edx
lea ecx, [rax + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov eax, dword [rbp + 0xa8]
mov dword [r14 + 0x68], eax
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
jmp 0x1400481e8
mov dword [rax + 0x158], 1
cmp dword [r12], esi
je 0x140048392
mov eax, esi
xchg dword [0x1400a34a0], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [0x1400a2e68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
cmp dword [r13 + 0x58], 1
jne 0x1400485b6
lea r8, [rsp + 0x40]
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.vdsutil.dll_OpenDevice]
nop dword [rax + rax]
test eax, eax
je 0x1400483ec
jle 0x1400483c6
movzx eax, ax
or eax, 0x80070000
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__6___lX
mov dword [rbp + 0xa8], eax
mov r9d, eax
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x1400485bc
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_GetPartitionInformation]
nop dword [rax + rax]
test eax, eax
je 0x140048418
jle 0x14004840f
movzx eax, ax
or eax, 0x80070000
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__7___lX
jmp 0x1400483cd
test rbx, rbx
jne 0x140048498
cmp r15d, 0x200
jb 0x14004846f
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, r15d
lea edx, [rbx + 8]
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x48]
call sym.vds.exe_public:_char____ptr64___cdecl_CVdsHeapPtr_char_::operator_char____ptr64____ptr64
mov rbx, qword [rsp + 0x48]
test rbx, rbx
sete al
mov ecx, r15d
shr ecx, 1
test al, al
cmove ecx, r15d
mov r15d, ecx
jmp 0x140048418
test rbx, rbx
jne 0x140048498
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14004848c
movzx eax, ax
or eax, 0x80070000
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__8___lX
jmp 0x1400483cd
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r12, rsi
mov dword [rbp + 0xb8], esi
mov rdi, rsi
mov rdx, qword [rbp - 0x60]
mov rcx, rdx
sub rcx, r12
mov eax, r15d
cmp rax, rcx
jle 0x1400484c9
mov r15d, edx
sub r15d, r12d
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0xb0]
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
cmp eax, 1
jne 0x14004864d
mov eax, dword [rbp + 0xb0]
add rdi, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
nop dword [rax + rax]
cmp eax, 1
jne 0x140048629
mov eax, r15d
add r12, rax
xorps xmm1, xmm1
cvtsi2ss xmm1, r12
mov rax, qword [rbp - 0x60]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm1, xmm0
mulss xmm1, dword [0x140091b44]
cvttss2si rcx, xmm1
cmp ecx, dword [rbp + 0xb8]
je 0x14004856a
mov dword [rbp + 0xb8], ecx
mov dword [r14 + 0x68], 0x80042409
mov dword [r14 + 0x6c], ecx
mov rax, qword [rbp - 0x60]
mov rcx, r14
cmp r12, rax
jge 0x140048596
call fcn.1400567e0
test eax, eax
je 0x14004859b
mov dword [rbp + 0xa8], 0x4241a
mov r9d, dword [rsp + 0x38]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__11___lX
jmp 0x1400483d6
call fcn.140056940
mov rdx, qword [rbp - 0x60]
cmp r12, rdx
jl 0x1400484b5
lea rdx, [r13 + 8]
mov ecx, 0xa
call fcn.14002b7e8
mov dword [rbp + 0xa8], esi
cmp dword [r13 + 0x58], 1
jne 0x1400485ce
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x158], esi
mov eax, dword [rbp + 0xa8]
mov dword [r14 + 0x68], eax
mov dword [r14 + 0x6c], 0x64
mov eax, dword [rbp + 0xa8]
mov dword [r14 + 0x68], eax
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004870b
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140063988]
mov qword [rsp + 0x30], rsi
jmp 0x14004870b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140048641
movzx eax, ax
or eax, 0x80070000
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__10___lX
jmp 0x1400483cd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140048665
movzx eax, ax
or eax, 0x80070000
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__9___lX
jmp 0x1400483cd
mov dword [rsp + 0x20], eax
mov r9d, edi
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__1___lX___lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
jns 0x14004869a
mov dword [r14 + 0x68], edi
jmp 0x1400486a4
mov eax, dword [rbp + 0xa8]
mov dword [r14 + 0x68], eax
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rbp + 0xb8]
mov rdi, rbx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400486e4
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140063988]
mov qword [rsp + 0x30], rsi
cmp dword [rdi], esi
je 0x140048708
xchg dword [0x1400a34a0], esi
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [0x1400a2e68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
nop dword [rax + rax]
mov esi, r12d
lea rcx, [rbp - 0x80]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x48]
call sym.vds.exe_public:_void___cdecl_CVdsHeapPtr_char_::destructor_void____ptr64
nop
lea rcx, [rsp + 0x40]
call sym.vds.exe___1__CVdsHandleImpl__0_0__QEAA_XZ
mov eax, esi
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret