Function at 0x14003cc64
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 + 0x68], 0xfffffffffffffffe
mov r15, rdx
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rbp + 0xb8], eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], eax
or qword [rsp + 0x40], 0xffffffffffffffff
mov ebx, eax
mov qword [rsp + 0x50], rax
mov esi, 0x100000
mov dword [rbp + 0xc0], esi
mov dword [rbp + 0xc8], eax
mov edi, eax
mov r13d, 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 dword [rax + rax]
nop
mov r14, qword [r15 + 0x48]
mov rcx, qword [r14 + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x1400678d8]
mov rax, qword [rax]
call qword [0x140064e58]
mov r12d, eax
test eax, eax
jns 0x14003cd41
mov r9d, eax
lea r8, str.CVdsDiskLun::PostCleanDiskHandler:_pAsync_QueryInterface_failed:__lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov dword [r14 + 0x68], r12d
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
jmp 0x14003d308
cmp dword [r15 + 0x54], 0
je 0x14003cd5a
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [0x1400b2560], eax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0xb8]
mov rax, qword [rax + 0x20]
call qword [0x140064e58]
mov r12d, eax
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xb8]
test r12d, r12d
js 0x14003d2ad
test eax, eax
js 0x14003d2ad
cmp dword [r15 + 0x50], 1
jne 0x14003cdae
mov dword [r14 + 0x6c], 0x64
and dword [r14 + 0x68], 0
jmp 0x14003d2e1
cmp dword [r15 + 0x54], 0
je 0x14003cf18
call qword [sym.imp.vdsutil.dll_GarbageCollectDriveLetters]
nop dword [rax + rax]
lea rcx, [r15 + 0x18]
call qword [sym.imp.vdsutil.dll_DeleteBcdObjects]
nop dword [rax + rax]
test eax, eax
jns 0x14003cdf7
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]
lea rdi, [r15 + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r15 + 0x40]
call fcn.14001ab14
test eax, eax
je 0x14003ce3d
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]
mov rdx, rdi
mov ecx, 9
call fcn.14001be88
xor edi, edi
jmp 0x14003d2f1
lea rcx, [0x1400b1f00]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0xd0]
test rax, rax
je 0x14003ce79
mov r13, rax
mov rax, qword [rax]
mov rcx, r13
mov rax, qword [rax + 8]
call qword [0x140064e58]
jmp 0x14003ce95
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]
nop
lea rcx, [0x1400b1f00]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test r13, r13
je 0x14003cf18
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call fcn.14001a2e4
mov r12d, eax
mov dword [rsp + 0x48], eax
mov rax, qword [r13]
mov rcx, r13
mov rax, qword [rax + 0x10]
call qword [0x140064e58]
test r12d, r12d
jns 0x14003cf18
mov r9d, r12d
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 edi, 0x80042419
jmp 0x14003d2f1
mov edi, 1
cmp dword [r15 + 0x58], edi
jne 0x14003cf94
movups xmm0, xmmword [r15 + 8]
movdqu xmmword [rbp - 0x80], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.14001afc4
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14003cf8e
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]
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 0x14003ce36
mov dword [rax + 0x158], edi
cmp dword [r15 + 0x54], 0
je 0x14003cfc0
xor eax, eax
xchg dword [0x1400b2560], eax
xor r8d, r8d
mov edx, edi
mov rcx, qword [0x1400b1f28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
cmp dword [r15 + 0x58], edi
jne 0x14003d1fb
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 0x14003d01e
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]
nop dword [rax + rax]
jmp 0x14003d202
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_GetPartitionInformation]
nop dword [rax + rax]
test eax, eax
je 0x14003d040
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__7___lX
jmp 0x14003cff0
cmp esi, 0x200
jb 0x14003d295
mov r12d, esi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, esi
mov edx, 8
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14003d089
shr esi, 1
mov dword [rbp + 0xc0], esi
jmp 0x14003d040
mov r8, r12
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
xor r13d, r13d
and dword [rsp + 0x30], r13d
xor edi, edi
mov rcx, qword [rbp - 0x50]
mov rax, rcx
sub rax, r13
cmp r12, rax
jle 0x14003d0ba
mov esi, ecx
sub esi, r13d
mov dword [rbp + 0xc0], esi
and qword [rsp + 0x20], 0
lea r9, [rbp + 0xc8]
mov r8d, esi
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 0x14003d27d
mov eax, dword [rbp + 0xc8]
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 0x14003d265
mov eax, esi
add r13, rax
xorps xmm1, xmm1
cvtsi2ss xmm1, r13
mov rcx, qword [rbp - 0x50]
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
divss xmm1, xmm0
mulss xmm1, dword [0x1400924cc]
cvttss2si rax, xmm1
cmp eax, dword [rsp + 0x30]
je 0x14003d157
mov dword [rsp + 0x30], 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 r13, rcx
mov rcx, r12
jge 0x14003d198
mov qword [rsp + 0x70], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov esi, dword [r14 + 0x70]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test esi, esi
jne 0x14003d1d2
mov esi, dword [rbp + 0xc0]
jmp 0x14003d1c1
mov qword [rsp + 0x78], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov dword [r14 + 0x74], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x50]
cmp r13, rcx
jge 0x14003d1ed
mov r12d, esi
jmp 0x14003d0a4
mov dword [rbp + 0xb8], 0x4241a
mov r9d, dword [rsp + 0x48]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__11___lX
jmp 0x14003d008
lea rdx, [r15 + 8]
mov ecx, 0xa
call fcn.14001be88
and dword [rbp + 0xb8], 0
cmp dword [r15 + 0x58], 1
jne 0x14003d215
mov rax, qword [rsp + 0x60]
and dword [rax + 0x158], 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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003d25e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140064e58]
and qword [rsp + 0x38], 0
xor edi, edi
jmp 0x14003d33c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__10___lX
jmp 0x14003cff0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__9___lX
jmp 0x14003cff0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsDiskLun::PostCleanDiskHandler__8___lX
jmp 0x14003cff0
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]
nop dword [rax + rax]
test r12d, r12d
jns 0x14003d2d7
mov dword [r14 + 0x68], r12d
jmp 0x14003d2e1
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]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003d30e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140064e58]
and qword [rsp + 0x38], 0
cmp dword [r15 + 0x54], 0
je 0x14003d33c
xor eax, eax
xchg dword [0x1400b2560], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [0x1400b1f28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x14003d378
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14003d399
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
or qword [rsp + 0x40], 0xffffffffffffffff
mov eax, edi
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret