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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x4e2d38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov edi, eax
mov eax, dword [0x4e2d5c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
mov eax, dword [0x4e2d5c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004cca8e
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
mov ecx, dword [0x4e2d60]
mov eax, 0
cmp word [ebx], 0
je 0x4ccb64
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x4ccb5a
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4ccb7d
mov word [ebx + eax*2], 0
sub eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
jne 0x4ccb6c
movzx edx, byte [ecx]
lea esi, [ebx + eax*2]
lea eax, [ecx + 1]
test dl, dl
je 0x4ccb9e
movsx dx, dl
mov word [esi], dx
movzx edx, byte [eax]
add esi, 2
add eax, 1
test dl, dl
jne 0x4ccb8a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x4ccdb1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov ebp, eax
mov eax, dword [0x4e2d68]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
sub esp, 0x10
mov esi, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4ccdb1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov ebx, dword [0x4e2d50]
add ebx, esi
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
test edx, edx
je 0x4ccc83
mov eax, 0
add dword [ebx + eax*4 + 8], ecx
add eax, 1
cmp eax, edx
jne 0x4ccc78
mov eax, dword [0x4e2d34]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov ebp, eax
test eax, eax
je 0x4ccdb1
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov edi, eax
test eax, eax
je 0x4ccdb1
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4ccdb1
add esi, dword [esp + 0x24]
movsx edx, byte [ebx]
add ebx, edx
lea ecx, [ebx + 0xc]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov ebp, dword [ebx + 8]
mov dword [esp + 0x24], ecx
lea ebx, [ecx + ebp]
mov dword [esp + 0x2c], ebx
mov edx, dword [eax + 0x3c]
add eax, dword [eax + edx + 0x2c]
mov ebx, eax
mov dword [esp + 0x48], 0
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebp
mov dword [esp], ebx
call edi
sub esp, 0x10
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004ccaad
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call edi
sub esp, 0x10
add ebx, dword [esp + 0x28]
mov eax, dword [0x4e2d64]
cmp byte [eax], 0
je 0x4ccdb9
mov edx, 0
mov eax, dword [0x4e2d64]
movsx ax, byte [eax + edx]
mov word [esi + edx*2], ax
add edx, 1
mov ecx, dword [0x4e2d64]
mov eax, edx
cmp byte [ecx + edx], 0
jne 0x4ccd72
mov word [esi + eax*2], 0
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x44], 1
lea eax, [esp + 0x3c]
mov dword [esp], eax
call ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0
jmp 0x4ccd91