Function at 0x4b0170
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d1e08
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 0x4b01a1
or eax, 0xffffffff
jmp 0x4b052a
mov ebp, 1
mov ecx, esi
push ebp
call fcn.004b2480
lea eax, [esi + 0x76]
push edi
push eax
mov dword [esi + 0x62794], ebp
call dword [sym.imp.MSVCRT.dll_wcscpy]
push 0x4edc1c
push edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4b01ea
mov ecx, esi
call fcn.004b0d50
mov ecx, esi
call fcn.004bea80
or eax, 0xffffffff
jmp 0x4b052a
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 0x4b0428
mov eax, dword [esp + 0x18]
cmp eax, 0x2711
jne 0x4b0261
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 0x4b0435
jmp 0x4b03fa
cmp eax, 0x2712
jne 0x4b0276
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [esi + 0x30]
push 1
push eax
jmp 0x4b024b
cmp eax, 0x2713
jne 0x4b0293
push ebx
mov ecx, esi
call fcn.004afde0
cmp eax, 0xffffffff
je 0x4b0435
jmp 0x4b03fa
cmp eax, 0x2714
jne 0x4b02b0
push ebx
push 1
lea ecx, [esi + 0x62c]
push 4
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x2715
jne 0x4b02cd
push ebx
push 1
lea edx, [esi + 0x630]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x2716
jne 0x4b02ed
push ebx
push 0x14
lea eax, [esi + 0x388]
push 2
push eax
call ebp
add esp, 0x10
cmp eax, 0x14
jmp 0x4b0256
cmp eax, 0x2717
jne 0x4b030d
push ebx
push 1
lea ecx, [esi + 0x604]
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x271a
jne 0x4b032d
push ebx
push 1
lea edx, [esi + 0x384]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x2719
jne 0x4b034d
push ebx
push 1
lea eax, [esi + 0x3b0]
push 0x10
push eax
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x2718
jne 0x4b036d
push ebx
push 1
lea ecx, [esi + 0x3c0]
push 0x10
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x271b
jne 0x4b038d
push ebx
push 1
lea edx, [esi + 0x5fc]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jmp 0x4b0256
cmp eax, 0x271c
jne 0x4b0421
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 0x4b0435
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
call fcn.004af1c0
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 2
jne 0x4b03fa
call fcn.004a7080
add eax, 0x8c
lea edx, [esp + 0x24]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4b0435
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 0x4b0234
jmp 0x4b0428
cmp eax, 0x2af8
jne 0x4b0435
push ebx
mov ecx, esi
call fcn.004aff60
cmp eax, 0xffffffff
jne 0x4b047a
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.004b2480
mov ecx, esi
call fcn.004b0d50
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004bea80
xor eax, eax
jmp 0x4b052a
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 0x4b04aa
mov ebx, dword [esp + 0x1c]
push ebx
call edi
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.004b0d50
jmp 0x4b04d0
push 0x4af570
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.004b6930
mov ebx, dword [esp + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x14], 1
push ecx
mov ecx, esi
call fcn.004b0550
cmp dword [esp + 0x20], ebp
je 0x4b04ef
push ebx
call edi
mov dword [esp + 0x20], ebp
mov ecx, esi
mov dword [esi + 0x634], 1
call fcn.004bea80
mov ecx, esi
call fcn.004bed40
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4b0514
cmp dword [esi + 8], eax
je 0x4b051c
push eax
mov ecx, esi
call fcn.004beab0
cmp dword [esp + 0x20], ebp
je 0x4b0525
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