Function at 0x497fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
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 edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], esi
test edx, edx
jne 0x498058
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 - 0x64]
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 - 0x64]
push eax
mov dword [ebp - 0x64], vtable.std::invalid_argument.0
call sub.MSVCR110.dll__CxxThrowException
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4980a4
push str.nNumberOfBytesToWrite__0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0x57
call fcn.00422e50
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x49807f
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x58]
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 edi, edi
jne 0x498196
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], 3
jb 0x4980cc
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c5208
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], vtable.std::invalid_argument.0
call sub.MSVCR110.dll__CxxThrowException
push 1
push 2
lea ecx, [ebp - 0x10c]
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], 5
call dword [eax + 4]
push eax
push 0x4adf14
push str.deepsoft::CSvcComm::WriteFile
lea eax, [ebp - 0x10c]
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 - 0x10c]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x49816f
mov eax, dword [eax]
push eax
call fcn.0043ccb0
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.0042a460
lea ecx, [ebp - 0x10c]
call fcn.00432780
mov eax, 0x498191
ret
push 0
push edi
push eax
push edx
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4981b0
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