Function at 0x6e1b3af8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x6c], eax
mov ecx, 0x14
xor eax, eax
mov edi, dword [ebp - 0x6c]
rep stosb byte es:[edi], al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventW
sub esp, 0x10
mov dword [ebp - 0x24], eax
lea edx, [esi + 0x10]
mov dword [ebp - 0x44], edx
lea eax, [esi + 8]
mov dword [ebp - 0x54], eax
lea edx, [esi + 0xc]
mov dword [ebp - 0x5c], edx
lea edi, [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call method.QMutex.lock__
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6e1b3ba5
mov dl, byte [esi + 0x18]
dec dl
je 0x6e1b3ba5
mov ebx, dword [ebp - 0x5c]
nop
mov dword [esp], ebx
call method.QWaitCondition.wakeOne__
mov dword [esp + 8], 0xffffffff
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], ebx
call method.QWaitCondition.wait_QMutex__unsigned_long_
mov eax, dword [esi + 8]
mov edx, dword [eax + 8]
test edx, edx
je 0x6e1b3d40
mov dl, byte [esi + 0x18]
test dl, dl
jne 0x6e1b3daa
mov dword [ebp - 0x1c], eax
lock inc dword [eax]
setne dl
mov edx, dword [ebp - 0x44]
mov dword [esp], edx
mov ebx, edi
call method.QMutex.unlock__
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
dec edx
je 0x6e1b3d93
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov ebx, edi
mov dword [esp], edi
call method.QByteArray.realloc_int_
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
cdq
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
nop
mov al, byte [esi + 0x18]
dec al
jne 0x6e1b3c5c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
mov ebx, edi
call method.QWindowsPipeWriter.bytesWritten_long_long_
mov dword [esp], esi
call fcn.6e224da4
mov eax, dword [ebp - 0x1c]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x6e1b3b58
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.QtCore4.dll_qFree_void_
jmp 0x6e1b3b58
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x3c], edx
jg 0x6e1b3c1b
jl 0x6e1b3c6e
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x40], eax
jae 0x6e1b3c1b
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x34]
mov dword [esp + 0x10], edx
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
mov ebx, edi
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x6e1b3cf7
mov ebx, edi
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xe8
je 0x6e1b3d50
mov ebx, edi
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x6e1b3d64
mov dword [esp + 0xc], 1
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
lea edx, [ebp - 0x34]
mov dword [esp + 4], edx
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_GetOverlappedResult
sub esp, 0x10
test eax, eax
je 0x6e1b3d64
mov eax, dword [ebp - 0x20]
xor edx, edx
add dword [ebp - 0x40], eax
adc dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov ebx, edi
call method.QMutex.lock__
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x54]
mov dword [esp], edx
call method.QByteArray.remove_int__int_
mov byte [esi + 0x19], 1
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call method.QMutex.unlock__
jmp 0x6e1b3c14
mov dl, byte [esi + 0x18]
dec dl
je 0x6e1b3ba5
jmp 0x6e1b3b78
mov dword [esp], 0x64
call method.QThread.msleep_unsigned_long_
jmp 0x6e1b3c14
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
lea ebx, [ebp - 0x1c]
call sub.KERNEL32.dll_CloseHandle
push ebx
mov eax, dword [ebp - 0x1c]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x6e1b3d8b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.QtCore4.dll_qFree_void_
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
lea edx, [eax + 0x10]
cmp dword [ebp - 0x58], edx
jne 0x6e1b3bd2
jmp 0x6e1b3bec
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call method.QMutex.unlock__
mov byte [esi + 0x18], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push esi
jmp 0x6e1b3d8b