Function at 0x14002ccf4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14009a238]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, r9
mov qword [rbp - 0x60], r9
mov qword [rbp - 0x68], r8
mov r13, rdx
mov qword [rbp - 0x58], rdx
mov rsi, rcx
mov qword [rsp + 0x70], rcx
mov r15, qword [rbp + 0xa8]
mov qword [rbp - 0x48], r15
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp - 0x50], rax
mov r12, qword [rbp + 0xd8]
mov qword [rbp - 0x40], r12
xor edi, edi
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
mov byte [rsp + 0x41], dil
mov qword [rsp + 0x68], rdi
mov ebx, edi
mov qword [rbp - 0x70], rbx
lea r8, str.CVdsVolume::FormatInternal__
lea edx, [rdi + 0x5e]
lea rcx, [rbp - 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
xor edx, edx
lea r8d, [rdi + 0x38]
lea rcx, [rbp - 0x10]
call sub.msvcrt.dll_memset
test r14, r14
je 0x14002d634
test r15, r15
je 0x14002d634
test r12, r12
je 0x14002d634
mov qword [r12], rdi
xor r12d, r12d
test rsi, rsi
je 0x14002ce2e
mov rcx, qword [rsi + 0x80]
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
mov rax, qword [rax + 0x18]
call qword [0x140051cd0]
mov edi, eax
test eax, eax
jns 0x14002ce14
mov r9d, eax
lea r8, str.CVdsVolume::FormatInternal__2__hr_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
mov rsi, r12
jmp 0x14002d665
test dword [rbp + 0x18], 0x2000
je 0x14002ce2e
mov edi, 0x80042917
mov r9d, edi
lea r8, str.CVdsVolume::FormatInternal__3__hr_lX
jmp 0x14002ce01
mov r14d, 0x8000
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cf0b
lea rdx, [0x14005a7a8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14002ce6d
test dword [rbp + 0x18], 0x4000
je 0x14002ce6d
mov edi, 0x80042914
mov r9d, edi
lea r8, str.CVdsVolume::FormatInternal__4__hr_lX
jmp 0x14002ce01
lea rdx, str.FAT32
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14002ce9d
test dword [rbp + 0x18], r14d
je 0x14002ce9d
mov edi, 0x80042915
mov r9d, edi
lea r8, str.CVdsVolume::FormatInternal__5__hr_lX
jmp 0x14002ce01
lea rdx, [0x14005a768]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14002ced0
test dword [rbp + 0x18], 0x10000
je 0x14002ced0
mov edi, 0x80042916
mov r9d, edi
lea r8, str.CVdsVolume::FormatInternal__6__hr_lX
jmp 0x14002ce01
lea rdx, [0x140066be0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14002d101
test dword [rbp + 0x18], 0x800000
je 0x14002d101
mov edi, 0x80042a06
mov r9d, edi
lea r8, str.CVdsVolume::FormatInternal__7__hr_lX
jmp 0x14002ce01
mov edi, r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rbp - 0x80], r12
lea r8, str.CVdsVolume::GetFSType__
mov edx, 0x5e
lea rcx, [rbp - 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002cf47
cmp r12w, word [rax]
jne 0x14002d0bb
lea r8, [rsp + 0x58]
mov edx, 0xc0000000
mov rcx, r15
call qword [sym.imp.vdsutil.dll_OpenDevice]
mov esi, eax
test eax, eax
je 0x14002cf8b
mov r9d, eax
lea r8, str.CVdsVolume::GetFSType__2__error_ld
mov edx, 1
lea ecx, [rdx + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
jmp 0x14002d0b6
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x58]
call fcn.140026124
mov edi, eax
mov r14, qword [rbp - 0x80]
test eax, eax
jns 0x14002cfb7
mov r8d, eax
lea rdx, str.CVdsVolume::GetFSType__3__hr_lX
jmp 0x14002d09a
mov esi, r12d
mov ecx, dword [rsp + 0x60]
test ecx, ecx
jle 0x14002d07b
mov rax, r14
test byte [rax], 1
jne 0x14002cfdf
inc esi
add rax, 0xcc
cmp esi, ecx
jl 0x14002cfc9
jmp 0x14002d07b
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
lea r8d, [rdx + 0x38]
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
mov rcx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14002d01a
mov eax, 0x8007000e
mov edi, eax
mov r8d, eax
lea rdx, str.CVdsVolume::GetFSType__4__hr_lX
jmp 0x14002d09a
mov byte [rsp + 0x40], 1
movsxd rax, esi
imul rsi, rax, 0xcc
lea r8, [r14 + 0x8c]
add r8, rsi
mov edx, reloc.ATL.DLL_AtlInternalQueryInterface
call fcn.14000a4e0
mov edi, eax
test eax, eax
jns 0x14002d067
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
mov qword [rsp + 0x48], r12
lea rdx, str.CVdsVolume::GetFSType__5__hr_lX
jmp 0x14002d097
cmp dword [rbp + 0xc0], r12d
jne 0x14002d07b
mov eax, dword [rsi + r14 + 8]
mov dword [rbp + 0xc0], eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002d08b
cmp r12w, word [rax]
jne 0x14002d0a2
mov edi, 0x80042593
lea rdx, str.CVdsVolume::GetFSType__6__hr_lX
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
test r14, r14
je 0x14002d0b0
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r14d, 0x8000
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d0d5
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x58], r12
lea rcx, [rbp - 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
test edi, edi
jns 0x14002d101
mov dword [rsp + 0x20], edi
mov r9, r15
lea r8, str.CVdsVolume::FormatInternal__8__path_s__error_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
jmp 0x14002d660
mov eax, dword [rbp + 0xd0]
and eax, 4
mov dword [rsp + 0x60], eax
je 0x14002d145
lea rdx, [0x14005a7a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14002d145
mov edi, 0x80042918
lea rdx, str.CVdsVolume::FormatInternal__9__path_s__hr_lX
mov r9d, edi
mov r8, r15
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
jmp 0x14002d660
test r13, r13
je 0x14002d195
lea rdi, [r13 + 2]
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
cmp word [rdi], r12w
je 0x14002d17d
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov edi, 0x80042404
lea rdx, str.CVdsVolume::FormatInternal__10__path_s__hr_lX
jmp 0x14002d132
mov word [rdi], r14w
mov rbx, rdi
mov qword [rbp - 0x70], rbx
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
lea r9, [rsp + 0x68]
mov r8b, 1
mov dl, r8b
mov ecx, 0x65
call fcn.14002d730
mov edi, eax
test eax, eax
jns 0x14002d1bf
mov r9d, eax
lea rdx, str.CVdsVolume::FormatInternal__11__path_s__hr_lX
jmp 0x14002d135
mov byte [rsp + 0x41], 1
mov eax, dword [rbp + 0xc0]
mov dword [rsp + 0x70], eax
mov r13, qword [rsp + 0x48]
mov rdi, r12
lea r8, str.CVdsVolume::SetupFormatThreadParam__
mov edx, 0x5e
lea rcx, [rbp - 0x80]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8d, 0x4a0
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
mov r14, rax
test rax, rax
jne 0x14002d22d
lea rdx, str.CVdsVolume::SetupFormatThreadParam__2__hr_lX
mov eax, 0x8007000e
mov r8d, eax
mov esi, eax
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
jmp 0x14002d4ec
mov qword [r14], rsi
mov rax, qword [rsp + 0x68]
mov qword [r14 + 8], rax
mov rax, qword [rbp - 0x68]
movaps xmm0, xmmword [rax]
movdqu xmmword [r14 + 0x10], xmm0
lea rcx, [r14 + 0x20]
mov r8, qword [rbp - 0x60]
mov edx, 0x104
call fcn.14000a4e0
mov esi, eax
xor r9d, r9d
test eax, eax
jns 0x14002d283
mov r8d, eax
lea rdx, str.CVdsVolume::SetupFormatThreadParam__3__hr_lX
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
jmp 0x14002d53b
cmp dword [rbp + 0xa0], r9d
je 0x14002d2f5
lea rcx, [r14 + 0x228]
mov edx, 0x112
mov r8, r15
sub r8, rcx
test rdx, rdx
je 0x14002d2ba
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14002d2ba
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14002d29e
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r9w
mov rax, rdx
neg rax
sbb esi, esi
not esi
and esi, 0x8007007a
test rdx, rdx
jne 0x14002d2fd
lea rdx, str.CVdsVolume::SetupFormatThreadParam__4__hr_lX
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
jmp 0x14002d4e8
mov word [r14 + 0x228], r9w
or r15, 0xffffffffffffffff
mov rdi, r15
inc rdi
cmp word [r13 + rdi*2], r9w
jne 0x14002d304
lea rdi, [rdi*2 + 2]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
mov edx, 8
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
mov rdi, rax
mov qword [rsp + 0x58], rax
xor eax, eax
test rdi, rdi
jne 0x14002d349
lea rdx, str.CVdsVolume::SetupFormatThreadParam__5__hr_lX
jmp 0x14002d216
mov rdx, r15
inc rdx
cmp word [r13 + rdx*2], ax
jne 0x14002d34c
inc rdx
mov r8, r13
mov rcx, rdi
call fcn.14000a4e0
mov esi, eax
test eax, eax
jns 0x14002d377
lea rdx, str.CVdsVolume::SetupFormatThreadParam__6__hr_lX
jmp 0x14002d2e5
mov qword [r14 + 0x450], rdi
mov r8d, 4
lea rdx, [0x14005a7a8]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor edi, edi
test eax, eax
jne 0x14002d3a5
mov eax, dword [rsp + 0x60]
mov dword [r14 + 0x480], eax
mov rax, qword [rbp - 0x58]
mov qword [r14 + 0x490], rax
mov dword [r14 + 0x498], edi
mov r13, qword [rbp - 0x50]
test r13, r13
je 0x14002d457
mov rdi, r15
xor eax, eax
inc rdi
cmp word [r13 + rdi*2], ax
jne 0x14002d3c9
lea rdi, [rdi*2 + 2]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
mov edx, 8
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
mov r12, rax
xor edi, edi
test rax, rax
jne 0x14002d420
lea rdx, str.CVdsVolume::SetupFormatThreadParam__7__hr_lX
mov eax, 0x8007000e
mov r8d, eax
mov esi, eax
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
mov rdi, qword [rsp + 0x58]
jmp 0x14002d4ec
inc r15
cmp word [r13 + r15*2], di
jne 0x14002d420
lea rdx, [r15 + 1]
mov r8, r13
mov rcx, rax
call fcn.14000a4e0
mov esi, eax
test eax, eax
jns 0x14002d480
mov r8d, eax
lea rdx, str.CVdsVolume::SetupFormatThreadParam__8__hr_lX
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
jmp 0x14002d4e3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
lea r8d, [rdx - 6]
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
mov r12, rax
test rax, rax
jne 0x14002d480
lea rdx, str.CVdsVolume::SetupFormatThreadParam__9__hr_lX
jmp 0x14002d404
mov word [r14 + 0x458], 2
mov eax, dword [rbp + 0xd0]
test al, 1
je 0x14002d49c
or dword [r14 + 0x45c], 4
test al, 2
je 0x14002d4a8
or dword [r14 + 0x45c], 1
test al, 8
je 0x14002d4b4
or dword [r14 + 0x45c], 8
mov qword [r14 + 0x460], r12
mov eax, dword [rsp + 0x70]
mov dword [r14 + 0x468], eax
movzx eax, word [rbp + 0xb8]
mov word [r14 + 0x46c], ax
mov qword [r14 + 0x470], rdi
mov dword [r14 + 0x478], edi
mov rdi, qword [rsp + 0x58]
test esi, esi
jns 0x14002d52d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
xor eax, eax
mov r14d, eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov r15, qword [rbp - 0x48]
mov edi, esi
xor r12d, r12d
test esi, esi
jns 0x14002d55e
mov r9d, esi
mov r8, r15
lea rdx, str.CVdsVolume::FormatInternal__12__path_s__hr_lX
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
jmp 0x14002ce0c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140051cd0]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, r14
lea r8, [0x140024d50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14002d5f7
mov rbx, r12
mov qword [rbp - 0x70], rbx
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rcx]
mov rax, qword [rdx]
mov r8, qword [rbp - 0x40]
lea rdx, [0x1400545d8]
call qword [0x140051cd0]
mov edi, eax
test eax, eax
jns 0x14002d5d5
mov r9d, eax
lea rdx, str.CVdsVolume::FormatInternal__14__path_s__hr_lx
jmp 0x14002d627
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002d665
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140051cd0]
mov qword [rsp + 0x68], r12
jmp 0x14002d665
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140051cd0]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r9d, edi
lea rdx, str.CVdsVolume::FormatInternal__13__path_s__hr_lX
mov r8, r15
xor ecx, ecx
call qword [sym.imp.vdsutil.dll_VdsTraceW]
jmp 0x14002d665
mov edi, 0x80070057
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9d, edi
lea r8, str.CVdsVolume::FormatInternal__1__hr_lX__Volume_p__Device_p__Async_p
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
xor r12d, r12d
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14002d678
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp + 0x20], r12
cmp byte [rsp + 0x40], r12b
je 0x14002d69a
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
mov qword [rsp + 0x48], r12
test edi, edi
jns 0x14002d6cb
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d6b1
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp byte [rsp + 0x41], r12b
je 0x14002d6cb
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140051cd0]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop
test rbx, rbx
je 0x14002d6fe
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov eax, 0x7fff
and word [rbx], ax
lea rcx, [0x14009ad40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14004b730
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret