Function at 0x5e9c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2774
call fcn.00609d40
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], ebx
call fcn.005eb2c0
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov esi, 0x2710
jg 0x5e9d11
jl 0x5e9ce4
cmp ecx, esi
jae 0x5e9d11
mov edx, dword [edi + 0x14]
test edx, edx
jne 0x5e9d0d
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.005eb2f0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ecx
mov ebx, eax
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x2c]
push 0
push eax
lea ecx, [ebp - 0x2784]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e9e91
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5e9e91
push ebx
lea eax, [ebp - 0x2784]
push esi
push eax
lea ecx, [ebp - 0x74]
call fcn.005eb300
cmp eax, 0xa
jne 0x5e9ea4
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x6c]
push eax
mov eax, dword [0x6fda20]
push ecx
add edi, 8
push edx
push eax
push edi
mov dword [ebp - 0x28], edi
call fcn.0061fae1
xor eax, eax
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], ax
mov esi, dword [edi]
mov ebx, dword [0x6fca90]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
test esi, esi
je 0x5e9deb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e9deb
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push ebx
call edi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x5e9deb
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5e9dee
mov edx, dword [ebp - 0x14]
push edx
push eax
push 0xffffffffffffffff
push esi
push 0
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x20], ecx
test eax, eax
mov byte [ebp - 4], 3
jne 0x5e9e02
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
test esi, esi
jle 0x5e9e5a
push esi
lea ecx, [ebp - 0x20]
call fcn.00623157
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x5e9e35
lea ecx, [ebp - 0x18]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
mov byte [edx + 0xc], 1
call fcn.00622ec3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00622d8a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.005eb2f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, edi
call fcn.005ea960
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.005eb2f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret