Function at 0x4cbcf0
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 - 8], eax
mov eax, dword [ecx]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4cbd38
push str.GetFileSizeEx__
push eax
push 0x11e
push str.QHImageHlp.c
call fcn.004ced50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea edx, [esi + 8]
mov esi, dword [ebp + 8]
xor ecx, ecx
movlpd qword [ebp - 0x20], xmm0
cmp ecx, esi
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
jne 0x4cbd62
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4cbd68
mov esi, dword [edx - 8]
mov eax, dword [edx - 4]
sub esi, ebx
mov ecx, esi
sbb eax, edi
shrd ecx, eax, 0xf
shr eax, 0xf
mov dword [ebp - 0xc], ecx
and esi, 0x7fff
jne 0x4cbd87
mov esi, 0x8000
jmp 0x4cbd8b
inc ecx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4cbe0d
nop
push 0
push 0
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4cbf8d
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cbf6b
cmp esi, dword [ebp - 0x1c]
jne 0x4cbf49
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4cbde3
push esi
push dword [ebp - 8]
push dword [ebp + 0x10]
call eax
test eax, eax
je 0x4cbf05
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4cbdfb
push esi
push dword [ebp - 8]
push dword [ebp + 0x18]
call eax
test eax, eax
je 0x4cbf27
add ebx, esi
mov esi, 0x8000
adc edi, 0
dec dword [ebp - 0xc]
jne 0x4cbd90
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
cmp ecx, esi
jae 0x4cbee7
mov esi, dword [edx]
test esi, esi
je 0x4cbef9
cmp dword [edx + 8], 0
jne 0x4cbe93
push 0
push 0
push edi
mov edi, dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4cbf8d
mov ebx, dword [ebp - 8]
mov ecx, edi
push esi
mov edx, ebx
call fcn.004cb230
add esp, 4
test eax, eax
je 0x4cbfea
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4cbe98
mov eax, dword [ebp - 4]
push dword [eax]
push ebx
push dword [ebp + 0x18]
call ecx
test eax, eax
jne 0x4cbe98
push str._rT
push 0x11
push 0x38b
push str.QHImageHlp.c
call fcn.004cee50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
jmp 0x4cbe9b
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4cbed7
cmp dword [edx + 4], 0
je 0x4cbed7
mov eax, dword [edx]
cmp eax, 0x8000
ja 0x4cbfd1
push eax
push 0
push ebx
call fcn.005091d0
mov eax, dword [ebp - 4]
add esp, 0xc
push dword [eax]
push ebx
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x4cbfaf
mov edx, dword [ebp - 4]
mov ebx, dword [edx]
xor edi, edi
add ebx, dword [edx - 8]
mov ecx, dword [ebp - 0x14]
adc edi, dword [edx - 4]
mov esi, dword [ebp + 8]
inc ecx
add edx, 0x18
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
cmp ecx, esi
jbe 0x4cbd56
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.004cee50
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.004cee50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x567448
push 1
push 0xfe
push str.QHImageHlp.c
call fcn.004cee50
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.004ced50
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.004ced50
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.004cee50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x567558
push 8
push 0x392
push str.QHImageHlp.c
call fcn.004cee50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret