Function at 0x45a350
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 0x45a398
push str.GetFileSizeEx__
push eax
push 0x11e
push str.QHImageHlp.c
call fcn.0045c8e0
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 0x45a3c2
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45a3c8
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 0x45a46f
push 0
push 0
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x45a5e9
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 0x45a5c7
cmp esi, dword [ebp - 0x1c]
jne 0x45a5a5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45a447
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call eax
test eax, eax
je 0x45a561
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45a45f
push esi
push dword [ebp - 4]
push dword [ebp + 0x18]
call eax
test eax, eax
je 0x45a583
add ebx, esi
mov esi, 0x8000
adc edi, 0
sub dword [ebp - 0x14], 1
jne 0x45a3f4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
cmp ecx, edx
jae 0x45a543
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45a555
cmp dword [esi + 8], 0
jne 0x45a4fa
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 0x45a5e9
push dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov ecx, edi
mov edx, ebx
call fcn.00459890
add esp, 4
test eax, eax
je 0x45a646
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45a4fd
push dword [esi]
push ebx
push dword [ebp + 0x18]
call eax
test eax, eax
jne 0x45a4fd
push str._rT
push 0x11
push 0x38b
push str.QHImageHlp.c
call fcn.0045c9e0
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 0x45a533
cmp dword [esi + 4], 0
je 0x45a533
mov eax, dword [esi]
cmp eax, 0x8000
ja 0x45a62d
push eax
push 0
push ebx
call fcn.00463e50
add esp, 0xc
push dword [esi]
push ebx
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x45a60b
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 0x45a3b6
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.0045c9e0
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.0045c9e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4abfa8
push 1
push 0xfe
push str.QHImageHlp.c
call fcn.0045c9e0
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.0045c8e0
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.0045c8e0
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.0045c9e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4ac020
push 8
push 0x392
push str.QHImageHlp.c
call fcn.0045c9e0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret