Function at 0x4c1290
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e3488
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
mov esi, ecx
test edi, edi
jne 0x4c12c1
or eax, 0xffffffff
jmp 0x4c164a
mov ebp, 1
mov ecx, esi
push ebp
call fcn.004c35c0
lea eax, [esi + 0x76]
push edi
push eax
mov dword [esi + 0x62794], ebp
call dword [sym.imp.MSVCRT.dll_wcscpy]
push 0x5011d4
push edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4c130a
mov ecx, esi
call fcn.004c1e90
mov ecx, esi
call fcn.004d02c0
or eax, 0xffffffff
jmp 0x4c164a
lea eax, [esi + 0x62750]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], ebp
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
lea ecx, [esp + 0x20]
push 4
push ecx
mov dword [esp + 0xa0], 0
call ebp
push ebx
push 1
lea edx, [esp + 0x28]
push 4
push edx
mov edi, eax
call ebp
add esp, 0x20
add eax, edi
je 0x4c1548
mov eax, dword [esp + 0x18]
cmp eax, 0x2711
jne 0x4c1381
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esi + 0x1c]
push 1
push ecx
call ebp
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x4c1555
jmp 0x4c151a
cmp eax, 0x2712
jne 0x4c1396
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [esi + 0x30]
push 1
push eax
jmp 0x4c136b
cmp eax, 0x2713
jne 0x4c13b3
push ebx
mov ecx, esi
call fcn.004c0f00
cmp eax, 0xffffffff
je 0x4c1555
jmp 0x4c151a
cmp eax, 0x2714
jne 0x4c13d0
push ebx
push 1
lea ecx, [esi + 0x62c]
push 4
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x2715
jne 0x4c13ed
push ebx
push 1
lea edx, [esi + 0x630]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x2716
jne 0x4c140d
push ebx
push 0x14
lea eax, [esi + 0x388]
push 2
push eax
call ebp
add esp, 0x10
cmp eax, 0x14
jmp 0x4c1376
cmp eax, 0x2717
jne 0x4c142d
push ebx
push 1
lea ecx, [esi + 0x604]
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x271a
jne 0x4c144d
push ebx
push 1
lea edx, [esi + 0x384]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x2719
jne 0x4c146d
push ebx
push 1
lea eax, [esi + 0x3b0]
push 0x10
push eax
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x2718
jne 0x4c148d
push ebx
push 1
lea ecx, [esi + 0x3c0]
push 0x10
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x271b
jne 0x4c14ad
push ebx
push 1
lea edx, [esi + 0x5fc]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c1376
cmp eax, 0x271c
jne 0x4c1541
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x32
lea eax, [esp + 0x2c]
push 2
push eax
call ebp
add esp, 0x10
cmp eax, 0x32
jne 0x4c1555
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
call fcn.004c02a0
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 2
jne 0x4c151a
call fcn.004b8150
add eax, 0x8c
lea edx, [esp + 0x24]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4c1555
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
call ebp
push ebx
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
mov edi, eax
call ebp
add esp, 0x20
add eax, edi
jne 0x4c1354
jmp 0x4c1548
cmp eax, 0x2af8
jne 0x4c1555
push ebx
mov ecx, esi
call fcn.004c1080
cmp eax, 0xffffffff
jne 0x4c159a
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, esi
push 1
call fcn.004c35c0
mov ecx, esi
call fcn.004c1e90
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004d02c0
xor eax, eax
jmp 0x4c164a
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x624]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
add esp, 4
cmp eax, ebp
jne 0x4c15ca
mov ebx, dword [esp + 0x1c]
push ebx
call edi
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.004c1e90
jmp 0x4c15f0
push 0x4c0690
push 0xc80
push eax
mov eax, dword [esi + 0x60c]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov ecx, esi
call fcn.004c7c20
mov ebx, dword [esp + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x14], 1
push ecx
mov ecx, esi
call fcn.004c1690
cmp dword [esp + 0x20], ebp
je 0x4c160f
push ebx
call edi
mov dword [esp + 0x20], ebp
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004d02c0
mov ecx, esi
call fcn.004d0580
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4c1634
cmp dword [esi + 8], eax
je 0x4c163c
push eax
mov ecx, esi
call fcn.004d02f0
cmp dword [esp + 0x20], ebp
je 0x4c1645
push ebx
call edi
mov eax, 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 4