Function at 0x670ccb40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x67156990
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67258980]
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 0x670ccd1a
mov ebp, dword [esp + 0x38]
jg 0x670ccb8c
cmp ebp, esi
jb 0x670ccd1a
xor eax, eax
cmp ebp, ebp
jne 0x670ccd1a
cmp ecx, eax
jne 0x670ccd1a
mov dword [esp + 0x20], esi
cmp dword [edi + 0x58], esi
je 0x670ccc5d
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 0x670ccc17
test al, al
je 0x670ccc17
test ebx, ebx
jne 0x670ccc17
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 0x670ccc1e
add esi, ebx
adc dword [esp + 0x20], 0
test al, al
jne 0x670ccd12
test ebx, ebx
jne 0x670ccc44
call dword [sym.imp.MSVCR100.dll__errno]
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x670ccbb0
jmp 0x670cccba
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x3c]
jg 0x670cccba
jl 0x670ccbb0
cmp esi, ebp
jae 0x670cccba
jmp 0x670ccbb0
cmp dword [edi + 0x70], 0xffffffff
je 0x670cccc6
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 0x670ccc91
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 4
je 0x670ccc63
jmp 0x670cccb0
test ebx, ebx
jle 0x670cccb0
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 0x670ccc63
jg 0x670cccb0
cmp esi, ebp
jb 0x670ccc63
cmp ebx, 0xffffffff
setne al
test al, al
jne 0x670ccd12
mov ecx, esi
or ecx, dword [esp + 0x20]
jne 0x670ccd12
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.QtCore_Ad_4.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.QtCore_Ad_4.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 0x670ccd12
mov eax, dword [esp + 0x34]
push eax
call sym.QtCore_Ad_4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, esi
jmp 0x670ccd5e
lea ecx, [esp + 0x38]
push 0x16
push ecx
call sym.QtCore_Ad_4.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.QtCore_Ad_4.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 0x670ccd59
mov ecx, dword [esp + 0x38]
push ecx
call sym.QtCore_Ad_4.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