Function at 0x47a760
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cca7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x70], 0x20
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x34], 0
je 0x47a7b9
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x28]
call fcn.00409640
mov dword [ebp - 4], 0
push str._D__FA___NU_
lea ecx, [ebp - 0x28]
call fcn.00416420
push str._A__FRFW___WD_
lea ecx, [ebp - 0x28]
call fcn.00414b50
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00470f50
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x34], eax
mov dword [ebp - 0x34], 0
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x30], 0
jne 0x47aaea
lea eax, [ebp - 0x34]
push eax
push 0x1388
push 0x20
push 0x20
push 0xff
push 6
push 0x40003
push 0x5e4360
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x47a930
push 0xfa0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx ecx, al
test ecx, ecx
jne 0x47a878
jmp 0x47a923
push 0x5e4398
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e43b0
push 0x5e43f0
push str.CAgentSvc::Run
push 0x5e43ac
push 0x5e43f8
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push eax
call fcn.00409d00
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00402a50
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47a81c
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x50], 1
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x47a985
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x217
je 0x47a978
cmp dword [ebp - 0x40], 0x218
je 0x47a978
mov dword [ebp - 0x4c], 0
jmp 0x47a97f
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
je 0x47aadb
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x30], 0
jne 0x47aadb
push 0x7d0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx eax, al
test eax, eax
jne 0x47a9ba
jmp 0x47aa54
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__threadID_0x
push 0x5e4410
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x416260
push str.Client_connected_hPipe__0x
lea edx, [ebp - 0x1c0]
push edx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const__]
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call fcn.00402a50
push 8
call fcn.00544038
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x44], 0
je 0x47aa86
push 8
mov ecx, dword [ebp - 0x44]
call fcn.004029d0
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004d2130
mov dword [ebp - 0x54], eax
jmp 0x47aa8d
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x47aad9
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
push 0x474c80
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x47aad9
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47aae5
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47a81c
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x30], 0xffffffff
je 0x47ab00
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a7f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret