Function at 0x42ba90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 0x1c]
lea eax, [ecx + 0xccc]
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42bad8
push str.GetFileSizeEx__
push eax
push 0x11e
push str.QHImageHlp.c
call fcn.0042e040
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x20], xmm0
mov edi, dword [ebp - 0x1c]
add esi, 8
mov ebx, dword [ebp - 0x20]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
jne 0x42bb02
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x42bb08
mov ecx, dword [esi - 8]
mov eax, dword [esi - 4]
sub ecx, ebx
mov edx, ecx
sbb eax, edi
shrd edx, eax, 0xf
shr eax, 0xf
and ecx, 0x7fff
mov eax, 0x8000
mov esi, ecx
cmove esi, eax
test ecx, ecx
lea eax, [edx + 1]
cmovne edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x42bbaf
push 0
push 0
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42bd29
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42bd07
cmp esi, dword [ebp - 0x1c]
jne 0x42bce5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42bb87
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call eax
test eax, eax
je 0x42bca1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42bb9f
push esi
push dword [ebp - 4]
push dword [ebp + 0x18]
call eax
test eax, eax
je 0x42bcc3
add ebx, esi
mov esi, 0x8000
adc edi, 0
sub dword [ebp - 0x14], 1
jne 0x42bb34
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
cmp ecx, edx
jae 0x42bc83
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42bc95
cmp dword [esi + 8], 0
jne 0x42bc3a
push 0
push 0
push edi
mov edi, dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42bd29
push dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov ecx, edi
mov edx, ebx
call fcn.0042afd0
add esp, 4
test eax, eax
je 0x42bd86
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42bc3d
push dword [esi]
push ebx
push dword [ebp + 0x18]
call eax
test eax, eax
jne 0x42bc3d
push str._rT
push 0x11
push 0x38b
push str.QHImageHlp.c
call fcn.0042e140
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x42bc73
cmp dword [esi + 4], 0
je 0x42bc73
mov eax, dword [esi]
cmp eax, 0x8000
ja 0x42bd6d
push eax
push 0
push ebx
call fcn.004352b0
add esp, 0xc
push dword [esi]
push ebx
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x42bd4b
mov ebx, dword [esi]
xor edi, edi
add ebx, dword [esi - 8]
mov ecx, dword [ebp - 0xc]
adc edi, dword [esi - 4]
mov edx, dword [ebp + 8]
inc ecx
add esi, 0x18
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
cmp ecx, edx
jbe 0x42baf6
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._rT
push 0x11
push 0x374
push str.QHImageHlp.c
call fcn.0042e140
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._rT
push 0x11
push 0x379
push str.QHImageHlp.c
call fcn.0042e140
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x469538
push 1
push 0xfe
push str.QHImageHlp.c
call fcn.0042e140
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ReadFile__
push 0
push 0xfc
push str.QHImageHlp.c
call fcn.0042e040
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.SetFilePointerEx__
push 0
push 0xf9
push str.QHImageHlp.c
call fcn.0042e040
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._rT
push 0x11
push 0x395
push str.QHImageHlp.c
call fcn.0042e140
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4695b0
push 8
push 0x392
push str.QHImageHlp.c
call fcn.0042e140
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret