Function at 0x4cb7a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0x522a74
call fcn.00416d80
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x44], vtable.oStream.0
mov byte [ebp - 0x40], 1
push dword [esi + 8]
lea ebx, [esi + 4]
lea eax, [ebp - 0x44]
push dword [ebx]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x14], ebx
call fcn.00416f90
add esp, 8
push eax
call fcn.00416f90
mov eax, dword [ebx]
add esp, 8
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [ebx + 8]
lea ecx, [ebp - 0x44]
call fcn.00417980
mov ecx, dword [esi]
push str.holes.bin
call fcn.004152a0
mov ebx, eax
test ebx, ebx
je 0x4cb8f7
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0x40]
cdq
cmp dword [ebx + 0x68], eax
jne 0x4cb870
cmp dword [ebx + 0x6c], edx
jne 0x4cb870
lea eax, [ebp - 0x44]
push eax
push ebx
mov ecx, esi
call fcn.004cb490
mov edi, eax
jmp 0x4cb965
mov edx, dword [ebx + 0x60]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 0x18], ecx
mov edi, dword [ebx + 0x68]
mov eax, dword [ebx + 0x6c]
push edi
push ecx
push edx
mov ecx, esi
mov dword [ebp - 0x20], eax
call fcn.004c9950
push dword [esi + 4]
lea eax, [ebp - 0x44]
push dword [esi]
push eax
call fcn.00416f90
add esp, 8
push eax
call fcn.00416f90
mov eax, dword [esi]
add esp, 8
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [esi + 8]
lea ecx, [ebp - 0x44]
call fcn.00417980
push edi
call fcn.004efb5a
push edi
mov esi, eax
push 0xbf
push esi
call fcn.004f0870
push edi
push esi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
call fcn.004cbb00
push esi
mov edi, eax
call fcn.004eff63
add esp, 0x24
test edi, edi
jne 0x4cb965
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4cb90d
lea edi, [eax + 0x19]
jmp 0x4cb965
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x40]
push ecx
push dword [ebp + eax - 0x34]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x14], ecx
call fcn.004cbb00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4cb965
test ebx, ebx
jne 0x4cb957
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi]
cdq
push edx
push eax
push str.holes.bin
call fcn.00414ef0
mov ecx, dword [esi]
add ecx, 0x6c
mov ebx, eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x64], eax
xor edi, edi
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx + 4]
mov dword [ebp + ecx - 0x44], vtable.oStream.0
lea ecx, [ebp - 0x3c]
call fcn.00416dc0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret