Function at 0x14002eca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1400a3020]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14002ecdb
mov rcx, qword [rdx]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rbp + 7], rax
cmp rax, 0xffffffffffffffff
je 0x14002ef79
mov dword [rbp - 9], r14d
movsd xmm0, qword [str.PROCSNAP]
movsd qword [rbp + 0x2f], xmm0
movzx eax, byte [0x140093698]
mov byte [rbp + 0x37], al
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
lea r8d, [r14 + 9]
lea rdx, [rbp + 0x2f]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002ef55
cmp dword [rbp - 9], 9
jne 0x14002ef55
mov eax, dword [rdi + 8]
mov dword [rbp - 5], eax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
lea r8d, [r14 + 4]
lea rdx, [rbp - 5]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002ef31
cmp dword [rbp - 9], 4
jne 0x14002ef31
mov rdi, qword [rdi]
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
jne 0x14002ef04
lea rdx, [rdi + 0x28]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
mov r8d, 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002f007
cmp dword [rbp - 9], 0x238
jne 0x14002f007
mov rax, qword [rdi + 0x260]
mov ecx, dword [rax + 8]
mov dword [rbp - 1], ecx
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
mov r8d, 4
lea rdx, [rbp - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002efe3
cmp dword [rbp - 9], 4
jne 0x14002efe3
mov rax, qword [rdi + 0x260]
mov rbx, qword [rax]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x14002eea9
nop
lea rdx, [rbx + 0x20]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
mov r8d, 0x10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002efbf
cmp dword [rbp - 9], 0x10
jne 0x14002efbf
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14002ee7a
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14002ee75
cmp rbx, qword [rax + 0x10]
jne 0x14002ee75
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14002ee62
mov rbx, rax
jmp 0x14002ee9f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14002ee9f
nop word [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14002ee90
cmp byte [rbx + 0x19], 0
je 0x14002ee20
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x19], 0
je 0x14002eedb
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x14002eed3
nop dword [rax]
cmp rdi, qword [rax + 0x10]
jne 0x14002eed3
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14002eec0
mov rdi, rax
jmp 0x14002ed92
mov rdi, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14002ed92
nop dword [rax + rax]
mov rdi, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14002eef0
jmp 0x14002ed92
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400477d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov r8b, 1
lea rdx, str.SaveSnapshot__:_WriteFile_failed
lea rcx, [rbp - 0x29]
call fcn.1400011b0
lea rdx, [0x1400a15f0]
lea rcx, [rbp - 0x29]
call fcn.140049b34
int3
mov r8b, 1
lea rdx, str.SaveSnapshot__:_WriteFile_failed
lea rcx, [rbp - 0x29]
call fcn.1400011b0
lea rdx, [0x1400a15f0]
lea rcx, [rbp - 0x29]
call fcn.140049b34
int3
lea rdx, str.SaveSnapshot__:_CreateFile_failed_for
lea rcx, [rbp + 0xf]
call fcn.1400024c0
nop
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140007750
lea rcx, [rbp + 0xf]
call fcn.140002490
mov rdx, rax
mov r8b, 1
lea rcx, [rbp - 0x29]
call fcn.1400011b0
lea rdx, [0x1400a15f0]
lea rcx, [rbp - 0x29]
call fcn.140049b34
nop
mov r8b, 1
lea rdx, str.SaveSnapshot__:_WriteFile_failed
lea rcx, [rbp - 0x29]
call fcn.1400011b0
lea rdx, [0x1400a15f0]
lea rcx, [rbp - 0x29]
call fcn.140049b34
int3
mov r8b, 1
lea rdx, str.SaveSnapshot__:_WriteFile_failed
lea rcx, [rbp - 0x29]
call fcn.1400011b0
lea rdx, [0x1400a15f0]
lea rcx, [rbp - 0x29]
call fcn.140049b34
int3
mov r8b, 1
lea rdx, str.SaveSnapshot__:_WriteFile_failed
lea rcx, [rbp - 0x29]
call fcn.1400011b0
lea rdx, [0x1400a15f0]
lea rcx, [rbp - 0x29]
call fcn.140049b34
int3