Function at 0x670da340
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x67153038
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67256a20]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x38], eax
lea ebp, [esi + 0x10]
mov ecx, ebp
call sym.QtCore4.dll_public:_void___thiscall_QMutex::lock_void_
mov eax, dword [esi + 8]
xor ebx, ebx
cmp dword [eax + 8], ebx
jne 0x670da3c5
mov cl, byte [esi + 0x18]
test cl, cl
jne 0x670da3c5
lea edi, [esi + 0xc]
mov ecx, edi
call sym.QtCore4.dll_public:_void___thiscall_QWaitCondition::wakeOne_void_
push 0xffffffffffffffff
push ebp
mov ecx, edi
call sym.QtCore4.dll_public:_bool___thiscall_QWaitCondition::wait_class_QMutex___unsigned_long_int_
mov edx, dword [esi + 8]
cmp dword [edx + 8], ebx
je 0x670da3a2
mov al, byte [esi + 0x18]
test al, al
jne 0x670da537
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, ebp
mov dword [esp + 0x44], ebx
call sym.QtCore4.dll_public:_void___thiscall_QMutex::unlock_void_
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp eax, 1
mov eax, dword [esp + 0x14]
jne 0x670da402
lea ecx, [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x670da413
mov edx, dword [eax + 8]
push edx
lea ecx, [esp + 0x18]
call sym.QtCore4.dll_private:_void___thiscall_QByteArray::realloc_int_
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x24], edx
mov dl, byte [esi + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
test dl, dl
jne 0x670da4fc
jmp 0x670da446
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp ebx, dword [esp + 0x24]
jg 0x670da4fc
jl 0x670da45a
cmp edi, eax
jae 0x670da4fc
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x14]
sub eax, edi
push eax
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x670da4c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x670da49a
push 0x64
call sym.QtCore4.dll_protected:_static_void___cdecl_QThread::msleep_unsigned_long_int_
add esp, 4
jmp 0x670da4f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x670da588
mov edx, dword [esi + 0x14]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x670da561
add edi, dword [esp + 0x18]
mov ecx, ebp
adc ebx, 0
call sym.QtCore4.dll_public:_void___thiscall_QMutex::lock_void_
mov eax, dword [esp + 0x18]
push eax
push 0
lea ecx, [esi + 8]
call sym.QtCore4.dll_public:_class_QByteArray____thiscall_QByteArray::remove_int__int_
mov ecx, ebp
mov byte [esi + 0x19], 1
call sym.QtCore4.dll_public:_void___thiscall_QMutex::unlock_void_
mov cl, byte [esi + 0x18]
test cl, cl
je 0x670da440
push ebx
push edi
mov ecx, esi
call sym.QtCore4.dll_protected:_void___thiscall_QWindowsPipeWriter::bytesWritten_long_long___int64__
mov ecx, esi
call sym.QtCore4.dll_protected:_void___thiscall_QWindowsPipeWriter::canWrite_void_
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x670da391
mov ecx, dword [esp + 0x14]
push ecx
call sym.QtCore4.dll_void___cdecl_qFree_void__
add esp, 4
jmp 0x670da391
mov ecx, ebp
call sym.QtCore4.dll_public:_void___thiscall_QMutex::unlock_void_
mov edx, dword [esp + 0x38]
push edx
mov byte [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x670da5b5
mov eax, dword [esp + 0x14]
push eax
jmp 0x670da5ad
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x670da5b5
mov ecx, dword [esp + 0x14]
push ecx
call sym.QtCore4.dll_void___cdecl_qFree_void__
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret