Function at 0x67122ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6729575d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x674c7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x18], esi
test edx, edx
jl 0x67123094
mov ebx, dword [ebp + 0xc]
jg 0x67123094
test ebx, ebx
jb 0x67123094
test edx, edx
jne 0x67123094
mov eax, ebx
xorps xmm0, xmm0
or eax, edx
movlpd qword [ebp - 0x24], xmm0
je 0x6712304d
cmp dword [ecx + 0x60], edx
je 0x67122f94
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push dword [ecx + 0x60]
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
add esi, eax
adc edi, 0
test eax, eax
jne 0x67122f84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
jne 0x67122fe5
mov ecx, dword [ebp - 0x14]
jmp 0x67122f52
mov ecx, dword [ebp - 0x14]
cmp edi, dword [ebp + 0x10]
jl 0x67122f52
jg 0x67122fe5
cmp esi, ebx
jb 0x67122f52
jmp 0x67122fe5
cmp dword [ecx + 0x78], 0xffffffff
je 0x67122fef
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov ecx, ebx
mov eax, edx
sub ecx, esi
mov edx, 0x7fffffff
sbb eax, edi
test eax, eax
ja 0x67122fb9
jb 0x67122fb7
cmp ecx, edx
jae 0x67122fb9
mov edx, ecx
mov eax, dword [ebp + 8]
push edx
add eax, esi
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x78]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
test eax, eax
jle 0x67122fe5
cdq
add esi, eax
adc edi, edx
mov edx, dword [ebp + 0x10]
cmp edi, edx
jl 0x67122fa0
jg 0x67122fe5
cmp esi, ebx
jb 0x67122fa0
mov eax, esi
or eax, edi
jne 0x67123072
or esi, 0xffffffff
or edi, esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ecx, [ebp + 8]
mov edx, dword [eax]
call fcn.671da940
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [ebp - 0x18]
xor edx, edx
cmp dword [eax], 0x1c
lea eax, [ebp + 8]
push eax
sete dl
lea edx, [edx*2 + 2]
push edx
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp + 8]
call sym.Qt5Core.dll_public:_void___thiscall_QVector_class_QPoint_::destructor_void_
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 0x20]
mov edx, edi
mov esi, dword [ebp - 0x24]
mov eax, esi
and dword [ecx + 0x28], 0xffdfffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edx, edi
and dword [ecx + 0x28], 0xffdfffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, 0x16
lea ecx, [ebp + 8]
call fcn.671da940
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [esi + 4], 2
mov eax, dword [eax]
test eax, eax
je 0x671230bf
cmp eax, 0xffffffff
je 0x671230bf
mov eax, dword [ebp + 8]
lock inc dword [eax]
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ecx]
test eax, eax
je 0x671230e2
cmp eax, 0xffffffff
je 0x671230f2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x671230f2
mov eax, dword [esi + 8]
cmp eax, 0x674c7cb4
je 0x671230f2
push eax
call edi
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x67123115
cmp ecx, 0xffffffff
je 0x67123122
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x67123122
cmp eax, 0x674c7cb4
je 0x67123122
push eax
call edi
add esp, 4
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc