Function at 0x670d1e80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6715e6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x672699e0]
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
mov dword [esp + 0x18], ebx
cmp ecx, esi
jl 0x670d205a
mov ebp, dword [esp + 0x38]
jg 0x670d1ecc
cmp ebp, esi
jb 0x670d205a
xor eax, eax
cmp ebp, ebp
jne 0x670d205a
cmp ecx, eax
jne 0x670d205a
mov dword [esp + 0x20], esi
cmp dword [edi + 0x58], esi
je 0x670d1f9d
mov byte [esp + 0x16], 1
mov eax, dword [edi + 0x58]
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.MSVCR100.dll_fread]
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x16], 0
mov byte [esp + 0x17], al
je 0x670d1f57
test al, al
je 0x670d1f57
test ebx, ebx
jne 0x670d1f57
mov edx, dword [edi + 0x58]
push ebx
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov al, byte [esp + 0x27]
add esp, 0x10
mov byte [esp + 0x16], bl
jmp 0x670d1f5e
add esi, ebx
adc dword [esp + 0x20], 0
test al, al
jne 0x670d2052
test ebx, ebx
jne 0x670d1f84
call dword [sym.imp.MSVCR100.dll__errno]
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x670d1ef0
jmp 0x670d1ffa
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x3c]
jg 0x670d1ffa
jl 0x670d1ef0
cmp esi, ebp
jae 0x670d1ffa
jmp 0x670d1ef0
cmp dword [edi + 0x70], 0xffffffff
je 0x670d2006
mov ecx, dword [esp + 0x34]
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x70]
lea edx, [esi + ecx]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x670d1fd1
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 4
je 0x670d1fa3
jmp 0x670d1ff0
test ebx, ebx
jle 0x670d1ff0
mov eax, ebx
cdq
add esi, eax
mov eax, dword [esp + 0x20]
adc eax, edx
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x3c]
jl 0x670d1fa3
jg 0x670d1ff0
cmp esi, ebp
jb 0x670d1fa3
cmp ebx, 0xffffffff
setne al
test al, al
jne 0x670d2052
mov ecx, esi
or ecx, dword [esp + 0x20]
jne 0x670d2052
mov ebx, dword [esp + 0x18]
or esi, 0xffffffff
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR100.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 0x670d2052
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 0x670d209e
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 0x670d2099
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