Function at 0x670c9070
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x671512d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67256a20]
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 0x670c9250
mov ebp, dword [esp + 0x38]
jg 0x670c90bc
cmp ebp, esi
jb 0x670c9250
xor eax, eax
cmp ebp, ebp
jne 0x670c9250
cmp ecx, eax
jne 0x670c9250
mov dword [esp + 0x20], esi
cmp dword [edi + 0x58], esi
je 0x670c918d
mov byte [esp + 0x17], 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.MSVCR90.dll_fread]
mov ecx, dword [edi + 0x58]
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 0x670c9147
test al, al
je 0x670c9147
test ebx, ebx
jne 0x670c9147
mov edx, dword [edi + 0x58]
push ebx
push edx
call dword [sym.imp.MSVCR90.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call dword [sym.imp.MSVCR90.dll__fseeki64]
mov al, byte [esp + 0x26]
add esp, 0x10
mov byte [esp + 0x17], bl
jmp 0x670c914e
add esi, ebx
adc dword [esp + 0x20], 0
test al, al
jne 0x670c9248
test ebx, ebx
jne 0x670c9174
call dword [sym.imp.MSVCR90.dll__errno]
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x670c90e0
jmp 0x670c91e8
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x3c]
jg 0x670c91ec
jl 0x670c90e0
cmp esi, ebp
jae 0x670c91ec
jmp 0x670c90e0
cmp dword [edi + 0x70], 0xffffffff
je 0x670c91fc
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.MSVCR90.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x670c91c1
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
je 0x670c9193
jmp 0x670c91e0
test ebx, ebx
jle 0x670c91e0
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 0x670c9193
jg 0x670c91e0
cmp esi, ebp
jb 0x670c9193
cmp ebx, 0xffffffff
setne byte [esp + 0x16]
mov al, byte [esp + 0x16]
test al, al
jne 0x670c9248
mov ecx, esi
or ecx, dword [esp + 0x20]
jne 0x670c9248
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 0x670c9248
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 0x670c9294
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 0x670c928f
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