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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], edx
test edx, edx
je 0x4c9983
xor eax, eax
cmp ax, word [edx]
je 0x4c9983
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c9758
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x38], eax
jmp 0x4c97ee
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4c977e
mov dword [ebp - 0x18], edi
test esi, esi
je 0x4c9775
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x38], eax
jmp 0x4c97ee
lea eax, [edi + 1]
push 0x5af620
push eax
call fcn.0055466b
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4c97af
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
je 0x4c9775
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x38], eax
jmp 0x4c97ee
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c981d
mov ecx, dword [ebp - 0x30]
cmp ecx, edi
jne 0x4c981d
mov eax, dword [ebp - 0x38]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ecx + eax], 0
test esi, esi
je 0x4c97ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [ebp - 0x38], eax
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x4c984a
mov dword [ebx], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov word [ebx], cx
test eax, eax
je 0x4c99c8
push 1
push eax
call fcn.00554242
add esp, 8
jmp 0x4c99c8
push 1
push dword [ebp - 0x38]
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.00554242
xor eax, eax
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x38], eax
test esi, esi
je 0x4c97ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x38], eax
jmp 0x4c97ee
push 0xfde9
lea eax, [ebp - 0x144]
push edi
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x148], eax
call fcn.004b6920
mov byte [ebp - 4], 2
xor eax, eax
mov edx, dword [ebp - 0x148]
mov ecx, edx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9890
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425810
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
cmp eax, ecx
je 0x4c98c1
push eax
call fcn.0055e8cd
add esp, 4
push 1
push dword [ebp - 0x38]
call fcn.00554242
add esp, 8
jmp 0x4c99c8
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4c99af
push 0x5d8294
push 0x56
push str.McAfee::Script::CFileUtility::ReadFile
mov edx, str.E:BT38d8cfda_976b_47ad_8468_b269487b30aeScriptHostJavaScriptCommon_srcFileUtility.cpp
mov ecx, 5
call fcn.00428b40
add esp, 0xc
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret