Function at 0x4c1b90
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x101c
call fcn.00563290
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
lea eax, [ebp + 0x58]
mov esi, 0x582c20
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4c1bd4
test cl, cl
je 0x4c1bd0
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4c1bd4
add eax, 2
add esi, 2
test cl, cl
jne 0x4c1bac
xor eax, eax
jmp 0x4c1bd9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c1edc
mov eax, dword [ebp + 0xa4]
xor edi, edi
test eax, eax
jle 0x4c1c36
mov edx, dword [ebp + 0xa0]
lea esi, [ebp + 0x58]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4c1c1c
test cl, cl
je 0x4c1c18
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4c1c1c
add eax, 2
add esi, 2
test cl, cl
jne 0x4c1bf8
xor eax, eax
jmp 0x4c1c21
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c1c36
mov eax, dword [ebp + 0xa4]
inc edi
add edx, 0x148
cmp edi, eax
jl 0x4c1bf3
cmp edi, dword [ebp + 0xa4]
jge 0x4c1edc
mov ecx, dword [ebp + 0xa0]
lea eax, [edi + edi*4]
lea esi, [edi + eax*8]
shl esi, 3
mov al, byte [ecx + esi + 0x40]
test al, al
je 0x4c1edc
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0xa0]
push 0x581660
lea eax, [edx + esi + 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
xor edi, edi
add esp, 8
cmp ebx, edi
je 0x4c1ed5
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea ecx, [ebp + 0x98]
push 4
push ecx
call esi
add esp, 0x10
cmp eax, 1
push ebx
jne 0x4c1ecc
push 1
lea edx, [esp + 0x18]
push 8
push edx
call esi
add esp, 0x10
cmp eax, 1
jne 0x4c1ecb
cmp dword [esp + 0x10], edi
jl 0x4c1ecb
cmp dword [esp + 0x14], edi
jl 0x4c1ecb
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
push ebx
call fcn.004c1a30
test eax, eax
je 0x4c1ecb
mov edx, dword [ebp + 0xb0]
cmp edx, edi
je 0x4c1d46
mov ecx, dword [edx - 4]
lea edi, [edx - 4]
lea eax, [ecx*8]
sub eax, ecx
dec ecx
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
js 0x4c1d3b
lea esi, [eax + 0x84]
lea ebp, [ecx + 1]
mov eax, dword [esi - 0x8c]
sub esi, 0x8c
test eax, eax
je 0x4c1d34
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi], 0
dec ebp
jne 0x4c1d15
mov ebp, dword [esp + 0x18]
push edi
call fcn.004c2eb0
add esp, 4
xor edi, edi
mov ecx, dword [ebp + 0xa8]
cmp ecx, edi
je 0x4c1d90
mov eax, dword [ecx - 4]
lea ebp, [ecx - 4]
lea edx, [eax + eax*2]
dec eax
lea ecx, [ecx + edx*4]
js 0x4c1d81
lea esi, [ecx + 4]
lea edi, [eax + 1]
mov eax, dword [esi - 0xc]
sub esi, 0xc
test eax, eax
je 0x4c1d7e
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi], 0
dec edi
jne 0x4c1d65
push ebp
call fcn.004c2eb0
mov ebp, dword [esp + 0x1c]
add esp, 4
xor edi, edi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
sub eax, esi
lea eax, [eax + eax*4]
lea ecx, [eax*4 + 4]
push ecx
call fcn.004c2e90
add esp, 4
cmp eax, edi
je 0x4c1de1
lea ecx, [esi - 1]
lea edx, [eax + 4]
mov dword [eax], esi
cmp ecx, edi
mov eax, edx
jl 0x4c1ddd
inc ecx
mov dword [eax], edi
mov dword [eax + 0x84], edi
mov dword [eax + 0x88], edi
mov byte [eax + 4], 0
add eax, 0x8c
dec ecx
jne 0x4c1dc3
mov eax, edx
jmp 0x4c1de3
xor eax, eax
mov dword [ebp + 0xb0], eax
mov eax, dword [esp + 0x14]
mov esi, eax
lea edx, [eax + eax*2]
lea eax, [edx*4 + 4]
push eax
call fcn.004c2e90
add esp, 4
cmp eax, edi
je 0x4c1e27
lea ecx, [esi - 1]
lea edx, [eax + 4]
mov dword [eax], esi
cmp ecx, edi
mov eax, edx
jl 0x4c1e23
inc ecx
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
add eax, 0xc
dec ecx
jne 0x4c1e15
mov eax, edx
jmp 0x4c1e29
xor eax, eax
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea ecx, [esp + 0x24]
push 0xc
push ecx
mov dword [ebp + 0xa8], eax
mov dword [ebp + 0xbc], edi
mov dword [ebp + 0xb4], edi
mov dword [ebp + 0xac], edi
call esi
add esp, 0x10
cmp eax, 1
jne 0x4c1ecb
mov eax, dword [esp + 0x1c]
sub eax, edi
je 0x4c1ea5
dec eax
je 0x4c1e87
dec eax
jne 0x4c1ecb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004c21d0
jmp 0x4c1eb7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
mov ecx, ebp
call fcn.004c2030
jmp 0x4c1eb7
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004c1ef0
push ebx
push 1
lea eax, [esp + 0x24]
push 0xc
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x4c1e5b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret