Function at 0x49e160
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x57fa20
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
push str..PSTServer.cpp
push 0x45e
mov esi, ecx
mov ecx, dword [0x63dd80]
push str.CPSTServer::Embed
call fcn.0041ac10
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push 0x496060
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
push 0xffffffffffffffff
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea ecx, [esp + 0x30]
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 + 0x378], ebx
lea ecx, [esp + 0x4c]
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 + 0x378], 1
push 0x80
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esi + 0x90]
push edx
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
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__]
lea ecx, [esp + 0x4c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.LocalService
mov byte [esi + 0x2c8], bl
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 + 0x398], 2
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x64], esp
lea eax, [esp + 0x6c]
push eax
push str.APPID_
push edx
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__]
add esp, 0xc
mov byte [esp + 0x3b4], 3
mov byte [esp + 0x3b4], 1
mov ecx, esi
call fcn.004975b0
cmp al, bl
je 0x49e2a3
mov byte [esi + 0x2c8], 1
cmp dword [esi + 0xf0], 8
jb 0x49e2b4
mov eax, dword [esi + 0xdc]
jmp 0x49e2ba
lea eax, [esi + 0xdc]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x174]
push 0x100
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
lea edx, [esp + 0x16c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0x49df40
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp byte [esi + 0x2c8], bl
je 0x49e313
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x49e30b
mov byte [esi + 0x2c8], bl
cmp byte [esi + 0x2c8], bl
jne 0x49e31a
mov ecx, esi
call fcn.0049d570
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x2b8]
push ebx
push ebx
push 0x401
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call edi
mov ecx, dword [0x63dd80]
push esi
push str.retval
push str..PSTServer.cpp
push 0x491
push str.CPSTServer::Embed
call fcn.0041aca0
mov byte [esp + 0x378], bl
lea ecx, [esp + 0x4c]
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 + 0x378], 0xffffffff
lea ecx, [esp + 0x30]
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, esi
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0051ed00
add esp, 0x368
ret