Function at 0x41f450
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x51e9cc
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x590]
mov dword fs:[0], eax
push str..PSTServer.cpp
push 0x735
mov edi, ecx
mov ecx, dword [0x5b6bb0]
push str.CPSTServer::Embed
call fcn.00402490
mov ecx, dword [0x5b6cac]
test ecx, ecx
je 0x41f4f9
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x18]
push edx
call eax
mov dword [esp + 0x598], 0
lea esi, [edi + 0x1f0]
push eax
mov ecx, esi
call dword [0x539434]
mov dword [esp + 0x598], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x53bbe4
mov ecx, esi
call dword [0x539464]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x14]
push ecx
push 0
mov esi, eax
push esi
push 0x414400
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
push 0xffffffffffffffff
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x598], 1
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x598], 2
push 0x80
lea edx, [esp + 0x8c]
push edx
lea eax, [edi + 0x138]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.LocalService
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x598], 3
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x38]
push str.APPID_
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x5a4], 4
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push bind
call fcn.00517d00
add esp, 0x1c
mov bl, al
mov byte [esp + 0x598], 3
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x598], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x41f65e
push 0xffffffffffffffff
lea ecx, [edi + 0x180]
mov byte [edi + 0x374], 1
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [esp + 0x194]
push 0x200
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x18c]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0x41eef0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x41f65e
mov byte [edi + 0x374], al
cmp byte [edi + 0x374], 0
jne 0x41f66e
mov ecx, edi
call fcn.0041e520
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 0x364]
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call esi
mov ecx, dword [0x5b6bb0]
push edi
push str.retval
push str..PSTServer.cpp
push 0x77a
push str.CPSTServer::Embed
call fcn.00402520
mov byte [esp + 0x598], 1
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x598], 0xffffffff
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x590]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.0051973e
add esp, 0x588
ret