Function at 0x67122a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov edx, ecx
mov dword [esp + 4], edx
push ebx
push esi
mov esi, dword [edx + 0xc]
mov dword [esp + 0x20], esi
push edi
test eax, eax
jl 0x67122c4d
mov ebx, dword [ebp + 0xc]
jg 0x67122c4d
test ebx, ebx
jb 0x67122c4d
test eax, eax
jne 0x67122c4d
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp dword [edx + 0x60], eax
je 0x67122bae
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [esp + 0xf], 1
nop dword [eax]
push dword [edx + 0x60]
mov eax, dword [ebp + 8]
sub ebx, esi
push ebx
add eax, esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
push dword [eax + 0x60]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov cl, byte [esp + 0x23]
add esp, 0x14
test eax, eax
setne dl
test cl, cl
je 0x67122b1f
test dl, dl
je 0x67122b1f
test ebx, ebx
je 0x67122b77
add esi, ebx
mov eax, esi
adc edi, 0
mov dword [esp + 0x14], eax
mov ebx, edi
test dl, dl
jne 0x67122c40
cmp dword [esp + 0x18], 0
jne 0x67122b57
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov cl, byte [esp + 0xf]
mov byte [esp + 0xf], cl
cmp dword [eax], 4
jne 0x67122ba4
mov ebx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
jmp 0x67122ae0
cmp ebx, dword [ebp + 0x10]
jg 0x67122ba8
jl 0x67122b63
cmp eax, dword [ebp + 0xc]
jae 0x67122ba8
mov edx, dword [esp + 0x10]
mov edi, ebx
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov byte [esp + 0xf], cl
jmp 0x67122ae0
mov ebx, dword [esp + 0x10]
push dword [ebx + 0x60]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
add esp, 4
push 0
push edx
push eax
push dword [ebx + 0x60]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x14]
mov esi, eax
mov edi, ebx
jmp 0x67122c0b
cmp dword [edx + 0x78], 0xffffffff
je 0x67122c11
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ecx, ebx
mov edx, 0x7fffffff
sub ecx, esi
sbb eax, edi
test eax, eax
ja 0x67122bd7
jb 0x67122bd5
cmp ecx, edx
jae 0x67122bd7
mov edx, ecx
mov eax, dword [ebp + 8]
push edx
add eax, esi
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x78]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x67122c06
cdq
add esi, eax
mov eax, dword [ebp + 0x10]
adc edi, edx
cmp edi, eax
jl 0x67122bc0
jg 0x67122c06
cmp esi, ebx
jb 0x67122bc0
cmp ecx, 0xffffffff
jne 0x67122c40
mov eax, esi
or eax, edi
jne 0x67122c40
or esi, 0xffffffff
or edi, esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ecx, [esp + 0x14]
mov edx, dword [eax]
call fcn.671da940
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push 1
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [esp + 0x14]
call sym.Qt5Core.dll_public:_void___thiscall_QVector_class_QPoint_::destructor_void_
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, 0x16
lea ecx, [esp + 0x10]
call fcn.671da940
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov dword [esi + 4], 1
mov eax, dword [eax]
test eax, eax
je 0x67122c7b
cmp eax, 0xffffffff
je 0x67122c7b
mov eax, dword [esp + 0x10]
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 0x67122c9e
cmp eax, 0xffffffff
je 0x67122cae
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x67122cae
mov eax, dword [esi + 8]
cmp eax, 0x674c7cb4
je 0x67122cae
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x67122cd3
cmp ecx, 0xffffffff
je 0x67122ce0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x67122ce0
cmp eax, 0x674c7cb4
je 0x67122ce0
push eax
call edi
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc