Function at 0x4225a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444e0d
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x56211c]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
mov eax, dword [0x56211c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test esi, esi
jne 0x4225f3
xor eax, eax
jmp 0x4227e9
mov eax, dword [ecx + 0x24]
cmp eax, 0xffffffff
jne 0x4226d8
push str...Win32IoHandle.cpp_297__:_Win32::IoHandle::doRead
lea ecx, [esp + 0x1c]
call fcn.00422c20
mov dword [esp + 0xc0], 0
push str.:_Throwing_Lang::Exception__IoHandle_not_open___r_n
push str...Win32IoHandle.cpp_297__:_Win32::IoHandle::doRead
push str._s_s
push eax
call fcn.00422d30
add esp, 0x10
mov dword [esp + 0xc0], 0xffffffff
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc0], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x422662
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [esp + 0xf]
mov dword [esp + 0x2c], 0xf
push eax
push str.IoHandle_not_open
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00408ab0
mov dword [esp + 0xc0], 3
call fcn.00403900
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
call fcn.00403980
mov byte [esp + 0xc0], 4
push str...Win32IoHandle.cpp_297__:_Win32::IoHandle::doRead
push eax
call fcn.0040d2d0
add esp, 8
lea ecx, [esp + 0x30]
push eax
call fcn.00403a30
push 0x55e310
lea eax, [esp + 0x34]
push eax
call sub.MSVCR120.dll__CxxThrowException
test edx, edx
jne 0x422786
push str...Win32IoHandle.cpp_302__:_Win32::IoHandle::doRead
lea ecx, [esp + 0x1c]
call fcn.00422c20
mov dword [esp + 0xc0], 5
push str.:_Throwing_Lang::Exception__read_buffer_is_NULL___r_n
push str...Win32IoHandle.cpp_302__:_Win32::IoHandle::doRead
push str._s_s
push eax
call fcn.00422d30
add esp, 0x10
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004049a0
lea eax, [esp + 0xf]
push eax
push str.read_buffer_is_NULL
lea ecx, [esp + 0x20]
call fcn.00408ab0
mov dword [esp + 0xc0], 6
call fcn.00403900
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
call fcn.00403980
mov byte [esp + 0xc0], 7
push str...Win32IoHandle.cpp_302__:_Win32::IoHandle::doRead
push eax
call fcn.0040d2d0
add esp, 8
lea ecx, [esp + 0x30]
push eax
call fcn.00403a30
push 0x55e310
lea eax, [esp + 0x34]
push eax
call sub.MSVCR120.dll__CxxThrowException
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4227e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0xf]
push eax
push str...Win32IoHandle.cpp_313__:_Win32::IoHandle::doRead
call fcn.00408ab0
mov dword [esp + 0xc0], 8
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.0041f420
push 0x55e414
lea eax, [esp + 0x70]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0043babe
mov esp, ebp
pop ebp
ret 0xc