Function at 0x4c15c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e3818
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 0x4c15f1
or eax, 0xffffffff
jmp 0x4c197a
mov ebp, 1
mov ecx, esi
push ebp
call fcn.004c38f0
lea eax, [esi + 0x76]
push edi
push eax
mov dword [esi + 0x62794], ebp
call dword [sym.imp.MSVCRT.dll_wcscpy]
push 0x5013c4
push edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4c163a
mov ecx, esi
call fcn.004c21c0
mov ecx, esi
call fcn.004d05b0
or eax, 0xffffffff
jmp 0x4c197a
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 0x4c1878
mov eax, dword [esp + 0x18]
cmp eax, 0x2711
jne 0x4c16b1
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 0x4c1885
jmp 0x4c184a
cmp eax, 0x2712
jne 0x4c16c6
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [esi + 0x30]
push 1
push eax
jmp 0x4c169b
cmp eax, 0x2713
jne 0x4c16e3
push ebx
mov ecx, esi
call fcn.004c1230
cmp eax, 0xffffffff
je 0x4c1885
jmp 0x4c184a
cmp eax, 0x2714
jne 0x4c1700
push ebx
push 1
lea ecx, [esi + 0x62c]
push 4
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x2715
jne 0x4c171d
push ebx
push 1
lea edx, [esi + 0x630]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x2716
jne 0x4c173d
push ebx
push 0x14
lea eax, [esi + 0x388]
push 2
push eax
call ebp
add esp, 0x10
cmp eax, 0x14
jmp 0x4c16a6
cmp eax, 0x2717
jne 0x4c175d
push ebx
push 1
lea ecx, [esi + 0x604]
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x271a
jne 0x4c177d
push ebx
push 1
lea edx, [esi + 0x384]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x2719
jne 0x4c179d
push ebx
push 1
lea eax, [esi + 0x3b0]
push 0x10
push eax
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x2718
jne 0x4c17bd
push ebx
push 1
lea ecx, [esi + 0x3c0]
push 0x10
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x271b
jne 0x4c17dd
push ebx
push 1
lea edx, [esi + 0x5fc]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4c16a6
cmp eax, 0x271c
jne 0x4c1871
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 0x4c1885
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
call fcn.004c05d0
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 2
jne 0x4c184a
call fcn.004b8490
add eax, 0x8c
lea edx, [esp + 0x24]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4c1885
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 0x4c1684
jmp 0x4c1878
cmp eax, 0x2af8
jne 0x4c1885
push ebx
mov ecx, esi
call fcn.004c13b0
cmp eax, 0xffffffff
jne 0x4c18ca
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.004c38f0
mov ecx, esi
call fcn.004c21c0
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004d05b0
xor eax, eax
jmp 0x4c197a
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 0x4c18fa
mov ebx, dword [esp + 0x1c]
push ebx
call edi
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.004c21c0
jmp 0x4c1920
push 0x4c09c0
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.004c7f50
mov ebx, dword [esp + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x14], 1
push ecx
mov ecx, esi
call fcn.004c19c0
cmp dword [esp + 0x20], ebp
je 0x4c193f
push ebx
call edi
mov dword [esp + 0x20], ebp
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004d05b0
mov ecx, esi
call fcn.004d0870
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4c1964
cmp dword [esi + 8], eax
je 0x4c196c
push eax
mov ecx, esi
call fcn.004d05e0
cmp dword [esp + 0x20], ebp
je 0x4c1975
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