Function at 0x14005728c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r13, rdx
mov r15, rcx
lea rsi, [rcx + 0x60]
mov qword [rsp + 0xc8], rsi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov qword [rsp + 0x38], rsi
xor edi, edi
cmp byte [r15 + 0x88], dil
je 0x1400572ef
test rsi, rsi
je 0x1400572e5
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, 0x80004004
jmp 0x140057750
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 8]
call qword [0x1400d1188]
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x60], 1
lea rbx, [r15 + 0xd0]
mov qword [rsp + 0xc0], rbx
mov rax, qword [rbx]
test rax, rax
jne 0x140057559
lea ecx, [rax + 0x58]
call fcn.14000b1d0
mov rbx, rax
test rax, rax
je 0x140057371
mov qword [rax + 8], rdi
mov eax, 2
lea rcx, fcn.14000e2c0
mov qword [rbx], rcx
sub rax, 1
jne 0x14005734c
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov dword [rbx + 0x48], edi
mov qword [rbx + 0x50], rdi
jmp 0x140057374
mov rbx, rdi
mov r14, qword [rsp + 0x30]
cmp rbx, r14
je 0x1400573a2
test r14, r14
je 0x14005739a
mov rcx, r14
call fcn.1400567ac
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov r14, rbx
mov qword [rsp + 0x30], rbx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 1]
call fcn.14000d8a4
mov r14d, eax
test eax, eax
jns 0x1400575a7
mov byte [rsp + 0x60], dil
lea rcx, [rsp + 0x50]
call fcn.140056a74
nop
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400573ec
mov rcx, rbx
call fcn.1400567ac
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x140057400
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, r14d
jmp 0x140057750
mov rcx, rdi
lea rdx, [rsp + 0x30]
cmp rdx, rbx
je 0x140057571
mov qword [rbx], rdi
mov qword [rsp + 0x30], rax
mov rcx, rax
lea rax, [rcx + 0x50]
cmp rbx, rax
je 0x1400575a7
mov r12, qword [rax]
mov qword [rax], rdi
mov r14, qword [rbx]
cmp r12, r14
je 0x1400575a7
test r14, r14
je 0x1400575a4
mov rcx, r14
call fcn.1400567ac
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbx], r12
mov rcx, qword [rsp + 0x30]
add rcx, 0x30
mov rdx, r13
call fcn.14002ff34
mov rax, qword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
mov qword [rax + 0x28], rcx
mov rbx, qword [r15 + 0x90]
lock inc dword [rbx + 0x58]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 1
mov rax, qword [rsp + 0x30]
lea r9, [rax + 0x10]
mov r8d, dword [rax + 0x48]
mov rdx, qword [rax + 0x40]
mov rax, qword [r15 + 0x90]
mov qword [rsp + 0x20], r9
xor r9d, r9d
mov rcx, qword [rax + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140057682
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x140057682
test eax, eax
jle 0x14005764d
movzx eax, ax
or eax, 0x80070000
mov r14d, 0x8000ffff
test eax, eax
cmovs r14d, eax
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
nop dword [rax + rax]
lock dec dword [rbx + 0x58]
mov byte [rsp + 0x60], dil
lea rcx, [rsp + 0x50]
call fcn.140056a74
nop
jmp 0x1400573ca
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400d1188]
nop
add r15, 0xd8
mov rbx, qword [rsp + 0x30]
lea r12, [rbx + 0x50]
cmp r12, r15
je 0x1400576dc
mov r13, qword [r15]
mov qword [r15], rdi
mov r14, qword [r12]
cmp r13, r14
je 0x1400576dc
test r14, r14
je 0x1400576d3
mov rcx, r14
call fcn.1400567ac
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r12], r13
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
cmp r15, rax
je 0x14005771d
mov r12, rbx
mov rbx, rdi
mov qword [rsp + 0x30], rbx
mov r14, qword [r15]
cmp r12, r14
je 0x14005771d
test r14, r14
je 0x14005771a
mov rcx, r14
call fcn.1400567ac
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov qword [r15], r12
test rbx, rbx
je 0x14005773a
mov rcx, rbx
call fcn.1400567ac
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x14005774e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret