Function at 0x100059b70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
or qword [rsp + 0x40], 0xffffffffffffffff
xor r15d, r15d
mov r13, rdx
mov r14, rcx
lea r8, [0x10001b858]
lea edx, [r15 + 0x5e]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], r15
mov dword [rax + 0x10], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x30], r15d
mov rbx, r15
mov dword [rsp + 0x180], 0x100000
mov dword [rax + 0x20], r15d
mov edi, r15d
mov rsi, r15
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64
mov r12, qword [r13 + 0x48]
lea r8, [rsp + 0x38]
lea rdx, [0x100003960]
mov rcx, qword [r12 + 0x40]
mov rax, qword [rcx]
call qword [rax]
cmp eax, r15d
mov ebp, eax
jge 0x100059c29
xor edx, edx
lea r8, [0x10001b880]
mov r9d, eax
lea ecx, [rdx + 0x5e]
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
mov rcx, qword [r12 + 0x60]
mov dword [r12 + 0x68], ebp
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
xor ebp, ebp
jmp 0x10005a18a
xor ebp, ebp
cmp dword [r13 + 0x54], ebp
je 0x100059c3d
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentThreadId]
mov dword [0x1000800d8], eax
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x178]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x178]
cmp eax, ebp
mov r15d, eax
jl 0x10005a13f
cmp ecx, ebp
jl 0x10005a13f
cmp dword [r13 + 0x50], 1
jne 0x100059c8c
mov dword [r12 + 0x6c], 0x64
mov dword [r12 + 0x68], ebp
jmp 0x10005a16f
cmp dword [r13 + 0x54], ebp
je 0x100059d9f
call sub.vdsutil.dll_void___cdecl_GarbageCollectDriveLetters_void_
lea rcx, [r13 + 0x18]
call sub.vdsutil.dll_long_int___cdecl_DeleteBcdObjects_struct__VDS_PARTITION_IDENTITY____ptr64_
cmp eax, ebp
jge 0x100059cbf
mov edx, 1
lea r8, [0x10001b8f8]
mov r9d, eax
lea ecx, [rdx + 0x5d]
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
mov rcx, qword [r13 + 0x40]
lea rdx, [r13 + 8]
xor r9d, r9d
xor r8d, r8d
call fcn.10003deec
cmp eax, ebp
je 0x100059cfd
mov rcx, qword [r12 + 0x60]
mov dword [r12 + 0x68], 0x8000ffff
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
lea rdx, [r13 + 8]
mov ecx, 9
call fcn.10003eef4
jmp 0x10005a17a
lea rcx, [0x10007ff18]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
mov r11, qword [r14 + 0xc8]
cmp r11, rbp
je 0x100059d24
mov rax, qword [r11]
mov rcx, r11
mov rsi, r11
call qword [rax + 8]
jmp 0x100059d38
mov edx, 1
lea r8, [0x10001b930]
lea ecx, [rdx + 0x5d]
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
lea rcx, [0x10007ff18]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
cmp rsi, rbp
je 0x100059d9f
lea rcx, [r13 + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call fcn.10003d744
mov rcx, rsi
mov r15d, eax
mov rax, qword [rsi]
call qword [rax + 0x10]
cmp r15d, ebp
jge 0x100059d9f
xor edx, edx
lea r8, [0x10001b968]
mov r9d, r15d
lea ecx, [rdx + 0x5e]
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
mov rcx, qword [r12 + 0x60]
mov dword [r12 + 0x68], 0x80042419
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov edi, 0x80042419
jmp 0x10005a17a
mov edi, 1
cmp dword [r13 + 0x58], edi
jne 0x100059e18
movdqu xmm0, xmmword [r13 + 8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
movdqu xmmword [rsp + 0x70], xmm0
call fcn.10003e238
mov qword [rsp + 0x50], rax
cmp rax, rbp
jne 0x100059e12
lea r8, [0x10001b998]
lea ecx, [rdi + 0x5d]
mov r9d, r15d
xor edx, edx
mov dword [rsp + 0x178], 0x80042405
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
mov r11d, dword [rsp + 0x178]
mov rcx, qword [r12 + 0x60]
mov dword [r12 + 0x68], r11d
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov edi, ebp
jmp 0x10005a17a
mov dword [rax + 0x110], edi
cmp dword [r13 + 0x54], ebp
je 0x100059e38
mov eax, ebp
xor r8d, r8d
mov edx, edi
xchg dword [0x1000800d8], eax
mov rcx, qword [0x10007ff40]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_ReleaseSemaphore]
cmp dword [r13 + 0x58], edi
jne 0x10005a082
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov edx, 0xc0000000
call sub.vdsutil.dll_unsigned_long_int___cdecl_OpenDevice_unsigned_short_int____ptr64__unsigned_long_int__void____ptr64____ptr64_
cmp eax, ebp
je 0x100059e89
lea r8, [0x10001b9c8]
movzx r9d, ax
or r9d, 0x80070000
cmp eax, ebp
cmovle r9d, eax
mov dword [rsp + 0x178], r9d
xor edx, edx
lea ecx, [rdx + 0x5e]
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
jmp 0x10005a089
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x80]
call sub.vdsutil.dll_unsigned_long_int___cdecl_GetPartitionInformation_void____ptr64__struct__PARTITION_INFORMATION_EX____ptr64_
cmp eax, ebp
je 0x100059ea8
lea r8, [0x10001b9f8]
jmp 0x100059e61
mov esi, 0x100000
cmp esi, 0x200
jb 0x100059ef9
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8d, esi
mov edx, 8
mov rcx, rax
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov rdi, rax
cmp rbx, rbp
je 0x100059ee6
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
mov rbx, rdi
cmp rdi, rbp
jne 0x100059f10
shr esi, 1
mov dword [rsp + 0x180], esi
jmp 0x100059ead
cmp rbx, rbp
jne 0x100059f10
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r8, [0x10001ba28]
jmp 0x100059e61
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov ebp, esi
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x90]
xor r14d, r14d
and dword [rsp + 0x30], r14d
xor edi, edi
mov rax, rcx
sub rax, r14
cmp rbp, rax
jle 0x100059f48
mov esi, ecx
sub esi, r14d
mov dword [rsp + 0x180], esi
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x188]
xor ebp, ebp
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_WriteFile]
cmp eax, 1
jne 0x10005a12d
mov eax, dword [rsp + 0x188]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
add rdi, rax
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_SetFilePointerEx]
cmp eax, 1
jne 0x10005a11b
mov rax, qword [rsp + 0x90]
pxor xmm1, xmm1
mov ebp, esi
add r14, rbp
pxor xmm0, xmm0
mov qword [rsp + 0x48], rbp
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, r14
divss xmm1, xmm0
mulss xmm1, dword [0x10002eb00]
cvttss2si rcx, xmm1
cmp ecx, dword [rsp + 0x30]
je 0x100059fed
mov dword [r12 + 0x68], 0x80042409
mov dword [r12 + 0x6c], ecx
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x30], ecx
cmp r14, rax
jge 0x10005a01d
mov rbp, qword [r12 + 0x48]
lea rcx, [rbp + 0x70]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
mov esi, dword [r12 + 0x70]
lea rcx, [rbp + 0x70]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
xor ebp, ebp
cmp esi, ebp
jne 0x10005a058
mov rbp, qword [rsp + 0x48]
jmp 0x10005a03f
mov rsi, qword [r12 + 0x48]
lea rcx, [rsi + 0x70]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
lea rcx, [rsi + 0x70]
mov dword [r12 + 0x74], 1
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x90]
cmp r14, rcx
jge 0x10005a072
mov esi, dword [rsp + 0x180]
jmp 0x100059f31
mov dword [rsp + 0x178], 0x4241a
mov r9d, r15d
lea r8, [0x10001bab8]
jmp 0x100059e7a
lea rdx, [r13 + 8]
mov ecx, 0xa
call fcn.10003eef4
xor ebp, ebp
mov dword [rsp + 0x178], ebp
cmp dword [r13 + 0x58], 1
jne 0x10005a09b
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x110], ebp
mov eax, dword [rsp + 0x178]
mov rcx, qword [r12 + 0x60]
mov dword [r12 + 0x6c], 0x64
mov dword [r12 + 0x68], eax
mov eax, dword [rsp + 0x178]
mov dword [r12 + 0x68], eax
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x10005a0dc
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x58]
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64
cmp rbx, rbp
je 0x10005a0fe
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
mov rcx, qword [rsp + 0x40]
cmp rcx, rbp
je 0x10005a114
cmp rcx, 0xffffffffffffffff
je 0x10005a114
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
xor eax, eax
jmp 0x10005a1d3
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r8, [0x10001ba88]
jmp 0x100059e61
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r8, [0x10001ba58]
jmp 0x100059e61
xor edx, edx
mov dword [rsp + 0x20], ecx
lea r8, [0x10001b8c8]
lea ecx, [rdx + 0x5e]
mov r9d, eax
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
cmp r15d, ebp
jge 0x10005a163
mov dword [r12 + 0x68], r15d
jmp 0x10005a16f
mov eax, dword [rsp + 0x178]
mov dword [r12 + 0x68], eax
mov rcx, qword [r12 + 0x60]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x10005a18f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
cmp dword [r13 + 0x54], ebp
je 0x10005a1b1
mov eax, ebp
xor r8d, r8d
xchg dword [0x1000800d8], eax
mov rcx, qword [0x10007ff40]
lea edx, [r8 + 1]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_ReleaseSemaphore]
lea rcx, [rsp + 0x58]
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64
mov rcx, qword [rsp + 0x40]
cmp rcx, rbp
je 0x10005a1d1
cmp rcx, 0xffffffffffffffff
je 0x10005a1d1
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret