Function at 0x14002d450
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 - 0x68]
sub rsp, 0x168
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov r15, rdx
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rbp + 0xb8], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov dword [rbp + 0xc8], eax
or qword [rsp + 0x38], 0xffffffffffffffff
mov ebx, eax
mov qword [rsp + 0x48], rax
mov r13d, 0x100000
mov dword [rbp + 0xc0], eax
mov edi, eax
mov esi, eax
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__
lea edx, [rax + 0x5e]
lea rcx, [rbp - 0x70]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
mov r14, qword [r15 + 0x48]
mov rcx, qword [r14 + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x1400545c8]
mov rax, qword [rax]
call qword [0x140051cb8]
mov r12d, eax
test eax, eax
jns 0x14002d517
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]
mov dword [r14 + 0x68], r12d
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14002da28
cmp dword [r15 + 0x54], 0
je 0x14002d52a
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [0x14009b3a0], eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0xb8]
mov rax, qword [rax + 0x20]
call qword [0x140051cb8]
mov r12d, eax
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0xb8]
test r12d, r12d
js 0x14002d9d9
test eax, eax
js 0x14002d9d9
cmp dword [r15 + 0x50], 1
jne 0x14002d57e
mov dword [r14 + 0x6c], 0x64
and dword [r14 + 0x68], 0
jmp 0x14002da07
cmp dword [r15 + 0x54], 0
je 0x14002d6ae
call qword [sym.imp.vdsutil.dll_GarbageCollectDriveLetters]
lea rcx, [r15 + 0x18]
call qword [sym.imp.vdsutil.dll_DeleteBcdObjects]
test eax, eax
jns 0x14002d5b5
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]
lea rdi, [r15 + 8]
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [r15 + 0x40]
call fcn.140010d38
test eax, eax
je 0x14002d5f2
mov dword [r14 + 0x68], 0x8000ffff
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdx, rdi
mov ecx, 9
call fcn.140011d94
xor edi, edi
jmp 0x14002da11
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0xd0]
test rax, rax
je 0x14002d628
mov rsi, rax
mov rax, qword [rax]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140051cb8]
jmp 0x14002d63e
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__3__m_pUnk__NULL
mov edx, 1
lea ecx, [rdx + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rsi, rsi
je 0x14002d6ae
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140010600
mov r12d, eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x10]
call qword [0x140051cb8]
test r12d, r12d
jns 0x14002d6ae
mov r9d, r12d
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__4___lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
mov dword [r14 + 0x68], 0x80042419
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov edi, 0x80042419
jmp 0x14002da11
mov edi, 1
cmp dword [r15 + 0x58], edi
jne 0x14002d720
movups xmm0, xmmword [r15 + 8]
movdqu xmmword [rbp - 0x80], xmm0
lea r8, [rbp + 0xc8]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400110ac
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14002d71a
mov dword [rbp + 0xb8], 0x80042405
mov r9d, r12d
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__5___lX
xor edx, edx
lea ecx, [rdi + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
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]
jmp 0x14002d5eb
mov dword [rax + 0x148], edi
cmp dword [r15 + 0x54], 0
je 0x14002d746
xor eax, eax
xchg dword [0x14009b3a0], eax
xor r8d, r8d
mov edx, edi
mov rcx, qword [0x14009ad68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
mov rbx, qword [rsp + 0x48]
cmp dword [r15 + 0x58], edi
jne 0x14002d93f
lea r8, [rsp + 0x38]
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.vdsutil.dll_OpenDevice]
test eax, eax
je 0x14002d798
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__6___lX
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov dword [rbp + 0xb8], r9d
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
jmp 0x14002d946
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.vdsutil.dll_GetPartitionInformation]
test eax, eax
je 0x14002d7b4
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__7___lX
jmp 0x14002d770
cmp r13d, 0x200
jb 0x14002d9c7
mov r12d, r13d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r13d
mov edx, 8
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14002d7ed
shr r13d, 1
jmp 0x14002d7b4
mov r8, r12
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
xor esi, esi
and dword [rbp + 0xc8], esi
xor edi, edi
mov rcx, qword [rbp - 0x50]
mov rax, rcx
sub rax, rsi
cmp r12, rax
jle 0x14002d819
mov r13d, ecx
sub r13d, esi
and qword [rsp + 0x20], 0
lea r9, [rbp + 0xc0]
mov r8d, r13d
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
cmp eax, 1
jne 0x14002d9b5
mov eax, dword [rbp + 0xc0]
add rdi, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
cmp eax, 1
jne 0x14002d9a3
mov eax, r13d
add rsi, rax
mov qword [rsp + 0x50], rsi
xorps xmm1, xmm1
cvtsi2ss xmm1, rsi
mov rcx, qword [rbp - 0x50]
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
divss xmm1, xmm0
mulss xmm1, dword [0x14007ee20]
cvttss2si rax, xmm1
cmp eax, dword [rbp + 0xc8]
je 0x14002d8b4
mov dword [rbp + 0xc8], eax
mov dword [r14 + 0x68], 0x80042409
mov dword [r14 + 0x6c], eax
mov rcx, qword [rbp - 0x50]
mov r12, qword [r14 + 0x48]
add r12, 0x78
cmp rsi, rcx
mov rcx, r12
jge 0x14002d8e8
mov qword [rsp + 0x68], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov esi, dword [r14 + 0x70]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test esi, esi
jne 0x14002d916
mov rsi, qword [rsp + 0x50]
jmp 0x14002d905
mov qword [rsp + 0x70], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov dword [r14 + 0x74], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbp - 0x50]
cmp rsi, rcx
jge 0x14002d931
mov r12d, r13d
jmp 0x14002d808
mov dword [rbp + 0xb8], 0x4241a
mov r9d, dword [rsp + 0x40]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__11___lX
jmp 0x14002d788
lea rdx, [r15 + 8]
mov ecx, 0xa
call fcn.140011d94
and dword [rbp + 0xb8], 0
cmp dword [r15 + 0x58], 1
jne 0x14002d959
mov rax, qword [rsp + 0x58]
and dword [rax + 0x148], 0
mov eax, dword [rbp + 0xb8]
mov dword [r14 + 0x68], eax
mov dword [r14 + 0x6c], 0x64
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]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002d99c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140051cb8]
and qword [rsp + 0x30], 0
xor edi, edi
jmp 0x14002da56
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__10___lX
jmp 0x14002d770
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__9___lX
jmp 0x14002d770
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__8___lX
jmp 0x14002d770
mov dword [rsp + 0x20], eax
mov r9d, r12d
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__1___lX___lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
test r12d, r12d
jns 0x14002d9fd
mov dword [r14 + 0x68], r12d
jmp 0x14002da07
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]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002da2e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140051cb8]
and qword [rsp + 0x30], 0
cmp dword [r15 + 0x54], 0
je 0x14002da56
xor eax, eax
xchg dword [0x14009b3a0], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [0x14009ad68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
mov rbx, qword [rsp + 0x48]
lea rcx, [rbp - 0x70]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop
test rbx, rbx
je 0x14002da80
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
and qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x38]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14002da9b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or qword [rsp + 0x38], 0xffffffffffffffff
mov eax, edi
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret