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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f9020
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
mov dword [esp + 0x70], edi
push eax
xor esi, esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c6492
call fcn.0040f010
cmp eax, edi
jl 0x4c64fc
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4c6348
call fcn.0040f010
cmp eax, edi
jl 0x4c6352
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0x30], edx
push edi
lea eax, [esp + 0x1c]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x4c6373
call fcn.0040f010
cmp dword [esp + 0x30], edi
ja 0x4c6382
cmp esi, 8
jbe 0x4c64ec
mov eax, dword [esp + 0x24]
cmp eax, 0x46534353
je 0x4c6398
cmp eax, 0x44534353
jne 0x4c64ec
cmp dword [esp + 0x28], 0x2000000
ja 0x4c64ec
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0x80
push edi
push esi
lea esi, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.0046bad0
push edi
push edi
lea edx, [esp + 0x1c]
push edx
xor edx, edx
call fcn.00433e80
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
call fcn.00417460
cmp ebx, edi
je 0x4c63fe
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x1c], eax
call fcn.005d1ef5
mov ecx, eax
mov eax, dword [0x678fcc]
add esp, 4
cmp eax, edi
mov dword [esp + 0x1c], ecx
je 0x4c64e3
mov edx, dword [esp + 0x38]
add esi, 0xfffffff8
push esi
add edx, 8
push edx
lea edx, [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x10
cmp eax, edi
jne 0x4c64e3
mov eax, dword [ebp + 0xc]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c649d
call fcn.0040f010
mov ebx, eax
cmp ebx, edi
jge 0x4c64a1
lea esi, [esp + 0x34]
call fcn.004d3770
lea esi, [esp + 0x14]
call fcn.0044b230
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x4c6326
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00433ec0
lea esi, [esp + 0x14]
call fcn.0044b230
lea esi, [esp + 0x34]
call fcn.004d3770
lea esi, [esp + 0x14]
call fcn.0044b230
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x34]
call fcn.004d3770
cmp ebx, edi
je 0x4c64f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret