Function at 0x479350
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a477d
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x47953e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x78]
mov esi, eax
mov dword [ebp - 0xc8], 0x4ae248
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 4
push 0x4b1f3c
push esi
push 0x442c30
push str.:_ProcessIdToSessionId_failed__0x
push str.deepsoft::dsGetProcessSessionId
lea eax, [ebp - 0xc8]
push 0x4ae26c
push eax
mov dword [ebp - 4], 3
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::ios_base_____cdecl___class_std::ios_base___]
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___unsigned_long_int_]
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
jb 0x4794a9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
jb 0x4794c1
push dword [ebp - 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], 0xf
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x18], 0
mov ecx, dword [eax + 4]
mov byte [ebp - 0x28], 0
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.00438c60
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret