Function at 0x140072410
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400bd270
mov qword [rbp + 7], rax
xor r15d, r15d
test rax, rax
je 0x140072467
mov qword [rax], 0xffffffffffffffff
jmp 0x14007246a
mov rax, r15
mov qword [rbp + 7], rax
mov dword [rsp + 0x20], 2
mov r9d, 1
mov r8d, 0x40000000
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.14006fad0
mov rbx, qword [rbp + 7]
test al, al
je 0x140072611
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r15
movdqa xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
movdqa xmmword [rbp - 0x39], xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov dword [rbp - 0x11], 0xffffffff
add rdi, 0x38
mov rax, qword [rdi + 8]
lea rcx, [rbp - 0x59]
cmp qword [rdi], rax
jne 0x1400724ee
call fcn.1400705e0
jmp 0x140072516
mov rdx, rdi
call fcn.140075290
lea rdx, [rdi + 0x18]
lea rcx, [rbp - 0x41]
call fcn.140075290
lea rdx, [rdi + 0x30]
lea rcx, [rbp - 0x29]
call fcn.140075290
mov eax, dword [rdi + 0x48]
mov dword [rbp - 0x11], eax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140071f00
mov dword [rbp - 1], r15d
mov rsi, qword [rbp + 0x17]
mov r14, qword [rbp + 0xf]
sub rsi, r14
test rbx, rbx
jne 0x14007253c
xor dil, dil
jmp 0x140072593
test r14, r14
jne 0x140072546
xor dil, dil
jmp 0x140072579
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x140072554
xor dil, dil
jmp 0x140072579
mov qword [rsp + 0x20], r15
lea r9, [rbp - 1]
mov r8d, esi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140072572
xor dil, dil
jmp 0x140072579
cmp esi, dword [rbp - 1]
sete dil
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140072593
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140072593
mov qword [rbx], 0xffffffffffffffff
mov eax, dword [rbp - 1]
cmp rax, rsi
jne 0x1400725a5
test dil, dil
je 0x1400725a5
mov dil, 1
jmp 0x1400725a8
xor dil, dil
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400725c2
call fcn.1400bd20c
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400725dc
call fcn.1400bd20c
mov qword [rbp - 0x41], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm0
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1400725f6
call fcn.1400bd20c
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r15
test r14, r14
je 0x140072614
mov rcx, r14
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r15
jmp 0x140072614
xor dil, dil
test rbx, rbx
je 0x14007263b
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14007262f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov rcx, rbx
call fcn.1400bd20c
mov qword [rbp + 7], r15
movzx eax, dil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret