Function at 0x497340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a77b3
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x4973d8
push 0x10
push str.lpBuffer__NULL
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0x57
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
call fcn.00439eb0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c5208
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], vtable.std::invalid_argument.0
call sub.MSVCR110.dll__CxxThrowException
test edx, edx
jne 0x4974ca
push str.lpNumberOfBytesWritten__NULL
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0x57
call fcn.00422e50
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x497400
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c5208
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], vtable.std::invalid_argument.0
call sub.MSVCR110.dll__CxxThrowException
push 1
push 2
lea ecx, [ebp - 0x100]
call fcn.00422b90
mov ecx, dword [ebp - 0x68]
push dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [ecx]
mov byte [ebp - 4], 4
call dword [eax + 4]
push eax
push 0x4adf14
push str.deepsoft::CSvcComm::ReadFile
lea eax, [ebp - 0x100]
push 0x4ae26c
push eax
call fcn.00409c40
add esp, 8
push eax
call fcn.00409c40
add esp, 8
push eax
call fcn.00409c40
add esp, 8
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x100]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x4974a3
mov eax, dword [eax]
push eax
call fcn.0043ccb0
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.0042a460
lea ecx, [ebp - 0x100]
call fcn.00432780
mov eax, 0x4974c5
ret
push 0
push edx
push dword [ebp + 0xc]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4974e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret 0xc