Function at 0x4aad20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ccfa8
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 0x4aad51
or eax, 0xffffffff
jmp 0x4ab0da
mov ebp, 1
mov ecx, esi
push ebp
call fcn.004ad030
lea eax, [esi + 0x76]
push edi
push eax
mov dword [esi + 0x62794], ebp
call dword [sym.imp.MSVCRT.dll_wcscpy]
push 0x4e89fc
push edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4aad9a
mov ecx, esi
call fcn.004ab900
mov ecx, esi
call fcn.004b9d50
or eax, 0xffffffff
jmp 0x4ab0da
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 0x4aafd8
mov eax, dword [esp + 0x18]
cmp eax, 0x2711
jne 0x4aae11
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 0x4aafe5
jmp 0x4aafaa
cmp eax, 0x2712
jne 0x4aae26
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [esi + 0x30]
push 1
push eax
jmp 0x4aadfb
cmp eax, 0x2713
jne 0x4aae43
push ebx
mov ecx, esi
call fcn.004aa990
cmp eax, 0xffffffff
je 0x4aafe5
jmp 0x4aafaa
cmp eax, 0x2714
jne 0x4aae60
push ebx
push 1
lea ecx, [esi + 0x62c]
push 4
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x2715
jne 0x4aae7d
push ebx
push 1
lea edx, [esi + 0x630]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x2716
jne 0x4aae9d
push ebx
push 0x14
lea eax, [esi + 0x388]
push 2
push eax
call ebp
add esp, 0x10
cmp eax, 0x14
jmp 0x4aae06
cmp eax, 0x2717
jne 0x4aaebd
push ebx
push 1
lea ecx, [esi + 0x604]
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x271a
jne 0x4aaedd
push ebx
push 1
lea edx, [esi + 0x384]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x2719
jne 0x4aaefd
push ebx
push 1
lea eax, [esi + 0x3b0]
push 0x10
push eax
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x2718
jne 0x4aaf1d
push ebx
push 1
lea ecx, [esi + 0x3c0]
push 0x10
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x271b
jne 0x4aaf3d
push ebx
push 1
lea edx, [esi + 0x5fc]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4aae06
cmp eax, 0x271c
jne 0x4aafd1
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 0x4aafe5
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
call fcn.004a9d50
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 2
jne 0x4aafaa
call fcn.004a1c10
add eax, 0x8c
lea edx, [esp + 0x24]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4aafe5
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 0x4aade4
jmp 0x4aafd8
cmp eax, 0x2af8
jne 0x4aafe5
push ebx
mov ecx, esi
call fcn.004aab10
cmp eax, 0xffffffff
jne 0x4ab02a
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.004ad030
mov ecx, esi
call fcn.004ab900
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004b9d50
xor eax, eax
jmp 0x4ab0da
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 0x4ab05a
mov ebx, dword [esp + 0x1c]
push ebx
call edi
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.004ab900
jmp 0x4ab080
push 0x4aa120
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.004b14e0
mov ebx, dword [esp + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x14], 1
push ecx
mov ecx, esi
call fcn.004ab100
cmp dword [esp + 0x20], ebp
je 0x4ab09f
push ebx
call edi
mov dword [esp + 0x20], ebp
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004b9d50
mov ecx, esi
call fcn.004ba010
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4ab0c4
cmp dword [esi + 8], eax
je 0x4ab0cc
push eax
mov ecx, esi
call fcn.004b9d80
cmp dword [esp + 0x20], ebp
je 0x4ab0d5
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