Function at 0x670f0020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rdi, rcx
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x10], rax
nop dword [rax]
lea rcx, [rdi + 0x20]
call sym.QtCoreVBox4.dll_public:_void___cdecl_QMutex::lock_void____ptr64
mov r11, qword [rdi + 0x10]
cmp dword [r11 + 8], 0
jne 0x670f00b1
movzx eax, byte [rdi + 0x30]
test al, al
jne 0x670f00b1
lea rcx, [rdi + 0x18]
call sym.QtCoreVBox4.dll_public:_void___cdecl_QWaitCondition::wakeOne_void____ptr64
or r8d, 0xffffffff
lea rdx, [rdi + 0x20]
lea rcx, [rdi + 0x18]
call sym.QtCoreVBox4.dll_public:_bool___cdecl_QWaitCondition::wait_class_QMutex____ptr64__unsigned_long_int____ptr64
mov r11, qword [rdi + 0x10]
cmp dword [r11 + 8], 0
je 0x670f0084
movzx eax, byte [rdi + 0x30]
test al, al
jne 0x670f0225
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x48], rax
lock inc dword [rax]
lea rcx, [rdi + 0x20]
call sym.QtCoreVBox4.dll_public:_void___cdecl_QMutex::unlock_void____ptr64
mov r11, qword [rbp + 0x48]
mov ecx, dword [r11]
mov rax, qword [rbp + 0x48]
cmp ecx, 1
jne 0x670f00eb
lea rcx, [rax + 0x18]
cmp qword [rax + 0x10], rcx
je 0x670f00fb
mov edx, dword [rax + 8]
lea rcx, [rbp + 0x48]
call sym.QtCoreVBox4.dll_private:_void___cdecl_QByteArray::realloc_int____ptr64
mov rax, qword [rbp + 0x48]
mov r14, qword [rax + 0x10]
movsxd r12, dword [rax + 8]
xor ecx, ecx
mov ebx, ecx
mov qword [rbp - 0x18], rcx
movzx eax, byte [rdi + 0x30]
test al, al
jne 0x670f01ca
cmp rbx, r12
jge 0x670f01ca
mov dword [rbp + 0x40], ecx
mov r8d, r12d
sub r8d, ebx
lea rdx, [rbx + r14]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x670f018e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x670f0161
mov ecx, WSAAsyncSelect
call sym.QtCoreVBox4.dll_protected:_static_void___cdecl_QThread::msleep_unsigned_long_int_
jmp 0x670f01b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x670f0218
mov r9d, 1
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x670f01f9
mov eax, dword [rbp + 0x40]
add rbx, rax
lea rcx, [rdi + 0x20]
call sym.QtCoreVBox4.dll_public:_void___cdecl_QMutex::lock_void____ptr64
mov r8d, dword [rbp + 0x40]
xor edx, edx
lea rcx, [rdi + 0x10]
call sym.QtCoreVBox4.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::remove_int__int____ptr64
mov byte [rdi + 0x31], 1
lea rcx, [rdi + 0x20]
call sym.QtCoreVBox4.dll_public:_void___cdecl_QMutex::unlock_void____ptr64
movzx eax, byte [rdi + 0x30]
test al, al
mov ecx, 0
je 0x670f0117
mov rdx, rbx
mov rcx, rdi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QWindowsPipeWriter::bytesWritten_long_long___int64_____ptr64
mov rcx, rdi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QWindowsPipeWriter::canWrite_void____ptr64
nop
mov rax, qword [rbp + 0x48]
lock dec dword [rax]
jne 0x670f0070
mov rcx, qword [rbp + 0x48]
call sym.QtCoreVBox4.dll_void___cdecl_qFree_void____ptr64_
jmp 0x670f0070
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
lock dec dword [rax]
jne 0x670f023c
mov rcx, qword [rbp + 0x48]
call sym.QtCoreVBox4.dll_void___cdecl_qFree_void____ptr64_
jmp 0x670f023c
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x670f0204
lea rcx, [rdi + 0x20]
call sym.QtCoreVBox4.dll_public:_void___cdecl_QMutex::unlock_void____ptr64
mov byte [rdi + 0x30], 0
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret