Function at 0x4f9070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x20]
push ebx
mov ebx, eax
sub esp, 0x38
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
sub esp, 0x14
mov eax, ebx
test edx, edx
je 0x4f91e8
call fcn.004f6080
xor eax, eax
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x4f9134
xor eax, eax
cmp edx, 0xea
sete al
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], str.ReadFile_returned:__x___lu__n
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.read_bytes__lu_expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], ebx
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
test esi, esi
je 0x4f92e0
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.GetOverlappedResult_returned:__x___lu__n
mov dword [esp], eax
call fcn.004f6800
jmp 0x4f928e
call fcn.004f6080
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x30], ecx
mov dword [esp + 4], str.ReadFile_failed:__lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.004f6800
mov eax, ebx
call fcn.004f6080
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.read_bytes__lu_expected__lu_n
cmp eax, edx
mov dword [esp + 8], eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov ecx, dword [ebp - 0x30]
mov dword [eax], 0x5ead94
mov dword [eax + 4], ebx
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.GetOverlappedResult_failed:__lu_n
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.004f6800
call fcn.0057d110
mov edi, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov dword [eax], 0x5ead94
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], edi
cmp eax, edi
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.read_bytes__lu_expected__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [eax + 0x34], 0xea
sete al
movzx eax, al
jmp 0x4f91c5