Function at 0x670bbf90
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6713cd60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67221378]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x3c]
mov ebx, dword [edi + 0xc]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x18], ebx
jl 0x670bc170
mov ebp, dword [esp + 0x38]
jg 0x670bbfdc
cmp ebp, esi
jb 0x670bc170
xor eax, eax
cmp ebp, ebp
jne 0x670bc170
cmp ecx, eax
jne 0x670bc170
mov dword [esp + 0x20], esi
cmp dword [edi + 0x1c], esi
je 0x670bc0ad
mov byte [esp + 0x17], 1
mov eax, dword [edi + 0x1c]
mov edx, dword [esp + 0x34]
push eax
mov ecx, ebp
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov ecx, dword [edi + 0x1c]
push ecx
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x17], 0
mov byte [esp + 0x16], al
je 0x670bc067
test al, al
je 0x670bc067
test ebx, ebx
jne 0x670bc067
mov edx, dword [edi + 0x1c]
push ebx
push edx
call dword [sym.imp.MSVCR90.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.MSVCR90.dll__fseeki64]
mov al, byte [esp + 0x26]
add esp, 0x10
mov byte [esp + 0x17], bl
jmp 0x670bc06e
add esi, ebx
adc dword [esp + 0x20], 0
test al, al
jne 0x670bc168
test ebx, ebx
jne 0x670bc094
call dword [sym.imp.MSVCR90.dll__errno]
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x670bc000
jmp 0x670bc108
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x3c]
jg 0x670bc10c
jl 0x670bc000
cmp esi, ebp
jae 0x670bc10c
jmp 0x670bc000
cmp dword [edi + 0x34], 0xffffffff
je 0x670bc11c
mov ecx, dword [esp + 0x34]
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x34]
lea edx, [esi + ecx]
push edx
push eax
call dword [sym.imp.MSVCR90.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x670bc0e1
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
je 0x670bc0b3
jmp 0x670bc100
test ebx, ebx
jle 0x670bc100
mov eax, ebx
cdq
add esi, eax
mov eax, dword [esp + 0x20]
adc eax, edx
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jl 0x670bc0b3
jg 0x670bc100
cmp esi, ebp
jb 0x670bc0b3
cmp ebx, 0xffffffff
setne byte [esp + 0x16]
mov al, byte [esp + 0x16]
test al, al
jne 0x670bc168
mov ecx, esi
or ecx, dword [esp + 0x20]
jne 0x670bc168
mov ebx, dword [esp + 0x18]
or esi, 0xffffffff
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR90.dll__errno]
mov edx, dword [eax]
push edx
lea eax, [esp + 0x38]
push eax
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
push eax
push 1
mov ecx, ebx
mov dword [esp + 0x34], 1
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], esi
or edx, esi
lock xadd dword [ecx], edx
jne 0x670bc168
mov eax, dword [esp + 0x34]
push eax
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, esi
jmp 0x670bc1b4
lea ecx, [esp + 0x38]
push 0x16
push ecx
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
push eax
push 1
mov ecx, ebx
mov dword [esp + 0x34], esi
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x670bc1af
mov ecx, dword [esp + 0x38]
push ecx
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc