Function at 0x472530
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x65ff5c], 0
push ebx
push esi
push edi
jne 0x472546
xor eax, eax
jmp 0x472559
lea eax, [ebp - 4]
push eax
push 3
push str.LoadFileRangeIntoBuffer_Internal
call fcn.00479b80
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push eax
push eax
call fcn.0046cc90
push dword [ebp + 0x24]
mov byte [ebp - 0x1c], 0
push ecx
mov esi, esp
mov dword [ebp - 0x48], 0xffffffff
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], vtable.CPathString.0
mov dword [ebp - 8], 0
call fcn.00472300
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x48]
mov dword [esi], edi
call fcn.00471190
mov ecx, dword [ebp - 8]
mov bl, al
mov dword [ebp - 0x10], vtable.CPathString.0
test ecx, ecx
je 0x472608
push ecx
call fcn.0056be44
add esp, 4
mov dword [ebp - 8], 0
test edi, edi
je 0x47261c
push edi
call fcn.0056be44
add esp, 4
mov dword [ebp - 0xc], 0
test bl, bl
je 0x472829
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push dword [ebp - 0x48]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x472648
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47264e
mov dword [ebp - 8], ebx
jmp 0x472651
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ebp - 8], esi
mov edi, dword [ebp + 0x10]
test edi, edi
ja 0x472829
mov esi, dword [ebp + 0xc]
jb 0x472669
cmp esi, ebx
ja 0x472829
mov eax, esi
or eax, edi
je 0x472736
cmp dword [ebp - 0x48], 0xffffffff
jne 0x472688
push str.BIsOpen__
push 0x15e7
jmp 0x472817
cmp byte [ebp - 0x1c], 0
je 0x4726b2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4726b2
push 0
push eax
push edi
push esi
call fcn.0056c6a0
or eax, edx
je 0x4726b2
push str.Seeking_to_a_position_which_is_not_sector_aligned_will_break_unbuffered_io
push 0x15ef
jmp 0x472817
cmp dword [ebp - 0x20], 0
je 0x4726f2
mov edx, dword [ebp - 0x2c]
cmp edi, edx
jb 0x4726e4
mov eax, dword [ebp - 0x30]
ja 0x4726c8
cmp esi, eax
jb 0x4726e4
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov eax, dword [ebp - 0x24]
adc eax, edx
cmp edi, eax
ja 0x4726e4
jb 0x4726dc
cmp esi, ecx
jae 0x4726e4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
jmp 0x472736
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp + 0x24]
mov dword [ebp + 0x24], edi
push eax
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x472727
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x472727
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x472829
jmp 0x472736
mov eax, dword [ebp + 0x24]
xor ecx, ecx
or ecx, dword [ebp - 8]
cdq
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
sub ebx, esi
mov ecx, 0
sbb ecx, edi
cmp eax, ecx
ja 0x47274f
mov edi, dword [ebp + 0x14]
jb 0x472753
cmp edi, ebx
jb 0x472753
mov edi, ebx
mov eax, ecx
test eax, eax
ja 0x472829
jb 0x47280d
cmp edi, 0x7ffffffe
ja 0x472829
test eax, eax
jne 0x47280d
cmp edi, 0x40000000
ja 0x47280d
mov ebx, dword [ebp + 0x1c]
mov ecx, ebx
call fcn.0046e090
mov eax, dword [ebp + 0x20]
mov ecx, ebx
movzx esi, al
xor esi, 1
add esi, edi
push esi
call fcn.0046bdc0
test esi, esi
je 0x472809
push esi
mov ecx, ebx
mov dword [ebp + 0x24], 0
call fcn.0046bbb0
test al, al
je 0x472829
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebx + 0x10]
add ebx, dword [eax]
je 0x472829
lea eax, [ebp + 0x24]
push eax
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004729a0
test al, al
je 0x472829
cmp byte [ebp + 0x20], 0
mov edi, dword [ebp + 0x24]
jne 0x4727fe
cmp edi, esi
jb 0x4727fa
push str.cbActual____uint32_nBufSizeWithTerminator
push 0x9a7
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x4727fa
int3
mov byte [ebx + edi], 0
mov ecx, dword [ebp + 0x1c]
push edi
push 0
call fcn.0046cba0
mov bl, 1
jmp 0x47282b
push str.cbToRead___1024__1024__1024
push 0x987
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x472829
int3
xor bl, bl
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], 0
cmp eax, 0xffffffff
je 0x472852
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47284b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x472893
push eax
call fcn.0056be44
add esp, 4
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4728a3
push ecx
call fcn.00479b40
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret