Function at 0x1400012f0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov edi, 0x48
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001615
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rbx + 0x10], 1
lea rax, fcn.1400056d0
mov qword [rbx], rax
lea rax, [0x14000eb70]
mov qword [rbx + 8], rax
and qword [rbx + 0x18], 0
and qword [rbx + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x30], rax
and dword [rbx + 0x38], 0
and dword [rbx + 0x3c], 0
and dword [rbx + 0x40], 0
and dword [rbx + 0x44], 0
mov rcx, rbx
call fcn.1400057bc
lea rdx, str.Running_MessageLoop...
lea r14, str.CSkypeSDK::RunMessagePump
mov rcx, r14
call fcn.1400063a4
lea edx, [rdi - 0x46]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
or edi, 0xffffffff
test eax, eax
js 0x140001444
inc dword [rbx + 0x38]
cmp dword [rbx + 0x20], 1
je 0x1400013d3
lea rdx, str.Invalid_Server_State
mov rcx, r14
call fcn.1400063a4
jmp 0x140001456
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memset
jmp 0x14000141e
cmp eax, edi
jne 0x14000140a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x4c], eax
lea r8, [rbp - 0x4c]
lea rdx, str.GetMessageW_returned_ErrorNo__u
lea rcx, str.MessagePump::RunGetMessageLoops
call fcn.140007394
jmp 0x14000141e
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400013e4
mov dword [rbx + 0x20], 2
lea rdx, str.Complete___MessageLoop_stopped
jmp 0x1400013c6
mov r8d, eax
lea rdx, str.HrCoInit_error
mov rcx, r14
call fcn.140007fdc
lea rdx, str.Running...
lea r14, str.CSkypeSDK::ShutdownServer
mov rcx, r14
call fcn.1400063a4
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140001482
inc dword [rbx + 0x38]
jmp 0x140001494
mov r8d, eax
lea rdx, str.HrCoInit_error
mov rcx, r14
call fcn.140007fdc
cmp dword [rbx + 0x20], 2
je 0x1400014ca
lea rdx, str.Posting_PostShutdownEvent
lea rcx, str.CSkypeSDK::PostShutdownEvent
call fcn.1400063a4
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, str.Posted_PostShutdownEvent
lea rcx, str.CSkypeSDK::PostShutdownEvent
call fcn.1400063a4
mov dword [rbx + 0x20], 3
lea rdx, str.Waiting_for_PostShutdownEvent...
lea rcx, str.CSkypeSDK::WaitForShutdownEvent
call fcn.1400063a4
mov edx, 0xafc80
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, str.Processed_PostShutdownEvent
lea rcx, str.CSkypeSDK::WaitForShutdownEvent
call fcn.1400063a4
mov qword [rbp - 0x48], rbx
lea r8, [rbp - 0x48]
lea rcx, str.CSkypeSDK::CoDisconnectObject
call fcn.140006db8
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoDisconnectObject]
mov dword [rbp - 0x60], eax
lea r8, [rbp - 0x60]
lea rdx, str.HResult:0x_08x
lea rcx, str.CSkypeSDK::CoDisconnectObject
call fcn.140006690
mov r8d, dword [rbp - 0x60]
test r8d, r8d
jns 0x140001558
lea rdx, [0x140010aa8]
mov rcx, r14
call fcn.140007fdc
mov eax, dword [rbx + 0x44]
mov dword [rbp - 0x58], eax
lea r8, [rbp - 0x58]
lea rdx, str.__x_
lea rcx, str.CSkypeSDK::CoRevokeClassObject
call fcn.140006e98
mov ecx, dword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov dword [rbp - 0x50], eax
lea r8, [rbp - 0x50]
lea rdx, str.HResult:0x_08x
lea rcx, str.CSkypeSDK::CoRevokeClassObject
call fcn.140006690
mov r8d, dword [rbp - 0x50]
test r8d, r8d
jns 0x1400015b0
lea rdx, [0x140010ad0]
mov rcx, r14
call fcn.140007fdc
and dword [rbx + 0x44], 0
lea rdx, str.Complete
mov rcx, r14
call fcn.1400063a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lock xadd dword [rbx + 0x10], edi
lea eax, [rdi - 1]
test eax, eax
jne 0x1400015fc
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14000bd9e.0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140008220
int3