Function at 0x4c7a4442
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x21e]
push ebx
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov word [ebp - 0x220], bx
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c7a44ca
cmp esi, 0x10
jbe 0x4c7a44ca
cmp dword [ebp - 8], ebx
jne 0x4c7a44ca
push 0x270
push 0x40
sub esi, 0x10
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov dword [ebp + 0xc], eax
call fcn.4c7a3b00
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
jne 0x4c7a41a4
mov dword [ebp - 4], ebx
jmp 0x4c7a44ad
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x4c7a41be
add eax, 0x10
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4c7a41c6
mov dword [ebp - 4], ebx
jmp 0x4c7a4484
add esi, eax
mov edi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ecx]
movzx eax, byte [edi]
add eax, 0xffffffff
cmp eax, 0xfe
ja case.0x4c7a41e8.5
movzx edx, byte [eax + 0x4c7a44e8]
jmp dword [edx*4 + 0x4c7a44d4]
add edi, 1
cmp byte [edi], 0
je 0x4c7a4387
mov ebx, dword [ebp + 8]
push edi
add ebx, 0x234
push ebx
lea eax, [ebp - 0x220]
push eax
call fcn.4c7a3800
test eax, eax
jne 0x4c7a4219
mov dword [ebp - 4], eax
push 0
push 0x100
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c7a4385
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x10]
push edx
push 0x270
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c7a4260
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7a428b
push 0x65e
push 0x4c7827b0
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push edx
call fcn.4c7a3ad0
test eax, eax
jne 0x4c7a42d3
call esi
cmp eax, 2
je 0x4c7a42f1
push 0x666
push 0x4c7827b0
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
lea eax, [ebp - 0x220]
push eax
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
jmp 0x4c7a42f1
push 0x66e
push 0x4c7827b0
lea ecx, [ebp - 0x220]
push ecx
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
mov edx, dword [ebp + 0xc]
add edx, 0x21a
push edx
push ebx
lea eax, [ebp - 0x220]
push eax
call fcn.4c7a3800
test eax, eax
jne 0x4c7a430f
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push edx
call fcn.4c7a3ad0
test eax, eax
jne 0x4c7a4367
call esi
cmp eax, 2
je 0x4c7a4385
push 0x67d
push 0x4c7827b0
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
lea eax, [ebp - 0x220]
push eax
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
jmp 0x4c7a444d
push 0x685
push 0x4c7827b0
lea ecx, [ebp - 0x220]
push ecx
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
jmp 0x4c7a444d
add edi, 1
cmp byte [edi], 0
je 0x4c7a4435
mov esi, dword [ebp + 8]
push edi
lea edx, [esi + 0x234]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.4c7a3800
test eax, eax
jne 0x4c7a43c1
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x220]
push ecx
push esi
call fcn.4c7a3ad0
test eax, eax
jne 0x4c7a4417
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x4c7a4435
push 0x69c
push 0x4c7827b0
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
lea edx, [ebp - 0x220]
push edx
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
jmp 0x4c7a444d
push 0x6a4
push 0x4c7827b0
lea eax, [ebp - 0x220]
push eax
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
jmp 0x4c7a444d
add edi, 5
jmp 0x4c7a444d
mov dword [ebp - 4], ebx
add edi, 1
cmp edi, dword [ebp - 0x18]
jb 0x4c7a41d0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.4c7a3ba0
test eax, eax
jne 0x4c7a4481
push 0x6bf
push 0x4c7827b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov edi, dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7a44ad
push 0x6c5
push 0x4c7827b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 4], ebx
jne 0x4c7a44ca
mov eax, dword [ebp + 8]
push 0x36b2
push eax
call fcn.4c7a38a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8