Function at 0x4c1e60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547e66
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
je 0x4c20f6
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push eax
mov eax, dword [0x67a8cc]
push eax
call ebx
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x74c
push esi
call ebp
mov eax, dword [esi]
mov ecx, dword [0x67a8fc]
add esp, 0x1c
test eax, ecx
jne 0x4c1ec5
mov dword [esi + 0x334], edi
mov ecx, dword [esi + 0x334]
mov dword [esi + 0x744], edi
cmp ecx, edi
mov dword [esi + 0x748], edi
jbe 0x4c1f23
shr eax, 0xc
test al, 0xf
jle 0x4c1ef0
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call fcn.004c2490
jmp 0x4c1f23
lea eax, [ecx*4]
push eax
call fcn.00478e60
mov ecx, dword [esi + 0x334]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x744], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov eax, dword [0x67a904]
mov ecx, dword [esi]
test eax, ecx
je 0x4c1f71
cmp dword [esi + 0x348], edi
jle 0x4c1f71
mov ecx, dword [esi + 0x34c]
mov edx, dword [0x67a8cc]
push edi
push ecx
push edx
call ebx
mov eax, dword [esi + 0x348]
push eax
call fcn.00478e60
mov edx, dword [esi + 0x348]
mov dword [esi + 0x34c], eax
mov ecx, dword [0x67a8cc]
push ecx
push edx
push 1
push eax
call ebp
add esp, 0x20
jmp 0x4c1f7d
mov dword [esi + 0x348], edi
mov dword [esi + 0x34c], edi
cmp dword [esi + 0x28], edi
jle 0x4c2007
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x4c2007
push edi
push eax
mov eax, dword [0x67a8cc]
push eax
call ebx
mov ecx, dword [esi + 0x28]
shl ecx, 2
push ecx
call fcn.00478e60
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
mov edx, dword [0x67a8cc]
push edx
push ecx
push 4
push eax
call ebp
mov eax, dword [esi + 0x28]
add esp, 0x20
test eax, eax
jle 0x4c2005
or ebx, 0xffffffff
push 0x388
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4c1ff0
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.004c0020
jmp 0x4c1ff2
xor eax, eax
mov edx, dword [esi + 0x2c]
inc edi
mov dword [esp + 0x18], ebx
mov dword [edx + edi*4 - 4], eax
mov eax, dword [esi + 0x28]
cmp edi, eax
jl 0x4c1fc3
xor edi, edi
lea ecx, [esi + 0x3e4]
xor eax, eax
mov dword [esi + 0x3d4], edi
mov dword [esi + 0x3e0], edi
mov dword [ecx], eax
lea edi, [esi + 0x3ec]
mov dword [ecx + 4], eax
mov ecx, 0x54
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x53c]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x5bc]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x63c]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x6bc]
rep stosd dword es:[edi], eax
mov al, byte [esi]
xor edi, edi
test al, 0x10
mov dword [esi + 0x73c], edi
mov dword [esi + 0x740], edi
je 0x4c209a
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, edi
je 0x4c2092
lea edx, [esi + 0x18]
push 1
push edx
mov ecx, eax
call fcn.00495db0
jmp 0x4c2094
xor eax, eax
mov dword [esi + 0x73c], eax
test dword [esi], 0x10000
je 0x4c20e4
cmp dword [esi + 0x3d0], edi
je 0x4c20e4
push 0x24
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov dword [esp + 0x18], 1
je 0x4c20da
mov ecx, dword [esi + 0x3d0]
push ecx
mov ecx, eax
call fcn.00485d40
mov dword [esi + 0x3d0], eax
jmp 0x4c20ea
xor eax, eax
mov dword [esi + 0x3d0], eax
jmp 0x4c20ea
mov dword [esi + 0x3d0], edi
mov edx, dword [0x6d7478]
mov dword [esi + 0x3d8], edx
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8