Function at 0x140004710
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, r8
lea rcx, [rsp + 0x20]
mov esi, edx
lea r8, str._MSPDBSRV_ENDPOINT_
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140004790
mov rcx, qword [0x140027768]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x140027768], rdi
test rbx, rbx
je 0x14000478b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [0x140027768], rax
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
mov r8, r14
mov edx, esi
call fcn.140003e70
test al, al
je 0x140004c34
lea r8, str._MSPDBSRV_
mov qword [rsp + 0x20], rdi
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1400047ec
call fcn.140004380
mov rcx, qword [rsp + 0x20]
movzx ebx, al
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bl, bl
je 0x140004c34
cmp byte [0x140027052], dil
je 0x140004a67
mov rdx, qword [0x1400270a0]
lea rax, [0x140027040]
mov qword [0x1400270b8], rax
test rdx, rdx
je 0x14000484e
lea r8, [0x14001d350]
lea rcx, [0x1400270a8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
je 0x14000483e
mov rdx, qword [0x1400270a0]
lea rcx, str.MSPDBSRV:_warning:_unable_to_open_log_file__s_n
call fcn.140003310
mov rax, qword [0x1400270a8]
mov qword [0x1400279c0], rax
jmp 0x140004855
mov rax, qword [0x1400270a8]
cmp byte [0x140027054], dil
jne 0x140004867
test rax, rax
je 0x1400049df
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea r8, [0x14001d3c0]
lea rdx, str.Microsoft__R__PDBServer_Version__s_n
lea rcx, [0x140027050]
call fcn.140003d90
lea rdx, str.Copyright__C__Microsoft_Corporation.__All_rights_reserved._n_n
lea rcx, [0x140027050]
call fcn.140003d90
lea rdx, str._n
lea rcx, [0x140027050]
call fcn.140003d90
lea rdx, str._Server_Start_n
lea rcx, [0x140027050]
call fcn.140003d90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str._Process_Id___:__d_n
lea rcx, [0x140027050]
call fcn.140003d90
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
lea rdx, str._Command_Line_:__s_n
lea rcx, [0x140027050]
call fcn.140003d90
lea r8, str._MSPDBSRV_
mov qword [rsp + 0x20], rdi
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov r8, qword [rsp + 0x20]
test r8, r8
je 0x14000493e
lea rdx, str._Env_Line_____:__s_n
lea rcx, [0x140027050]
call fcn.140003d90
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__wctime64]
mov r8, rax
lea rdx, str._Time_________:__s
lea rcx, [0x140027050]
call fcn.140003d90
mov r8d, dword [0x14002705c]
lea rdx, str._Cache_Time___:__d_msec_n
lea rcx, [0x140027050]
call fcn.140003d90
mov r8d, dword [0x140027060]
lea rdx, str._Shutdown_Time:__d_sec_n
lea rcx, [0x140027050]
call fcn.140003d90
mov r8d, dword [0x140027064]
lea rdx, str._Priority_____:__d_n
lea rcx, [0x140027050]
call fcn.140003d90
mov r8, qword [0x140027768]
test r8, r8
je 0x1400049cc
lea rdx, str._Endpoint_Suffix:__s_n
lea rcx, [0x140027050]
call fcn.140003d90
lea rdx, str._n
lea rcx, [0x140027050]
call fcn.140003d90
call fcn.140005440
cmp byte [0x140027054], dil
mov ebx, eax
jne 0x1400049f8
cmp qword [0x1400270a8], rdi
je 0x140004a60
lea rdx, str.___________________________________________________n
lea rcx, [0x140027050]
call fcn.140003d90
lea rdx, str.Server_Stop_n
lea rcx, [0x140027050]
call fcn.140003d90
mov r8d, ebx
lea rdx, str.Return_code:__d_n
lea rcx, [0x140027050]
call fcn.140003d90
lea rdx, str.___________________________________________________n
lea rcx, [0x140027050]
call fcn.140003d90
mov rcx, qword [0x1400270a8]
test rcx, rcx
je 0x140004a60
mov qword [0x1400279c0], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
jmp 0x140004c3b
cmp byte [0x140027053], dil
je 0x140004c34
lea rdx, str.Stopping_server
lea rcx, [0x140027050]
call fcn.140003d10
mov rax, qword [0x140027768]
lea r14, [0x14001e8e8]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
test rax, rax
jne 0x140004abd
mov edx, 0x68
lea ebx, [rax + 0x33]
mov qword [rsp + 0x38], rdx
lea rsi, [rsp + 0x48]
jmp 0x140004b1d
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x140004ac4
add rbx, 0xd
movabs rax, 0x7ffffffffffffff8
cmp rbx, rax
ja 0x140004bfe
lea rdx, [rbx + rbx]
cmp rdx, 0xfffffffffffffff0
jae 0x140004b1a
add rdx, 7
and rdx, 0xfffffffffffffff8
cmp rdx, 0x100
ja 0x140004b0b
lea rsi, [rsp + 0x48]
mov qword [rsp + 0x38], rdx
jmp 0x140004b1d
lea rcx, [rsp + 0x30]
call fcn.140005f40
mov rsi, rax
jmp 0x140004b1d
mov rsi, rdi
test rsi, rsi
je 0x140004bfe
lea r8, str.mspdb_event_
mov rdx, rbx
mov rcx, rsi
call fcn.140003b60
test eax, eax
jns 0x140004b77
mov edx, eax
lea rcx, str.MSPDBSRV:_fatal_error:_Unable_to_stop_server:_unable_to_get_authentication_ID__0x_08x__n
call fcn.140003310
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
test rbx, rbx
je 0x140004c30
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400142d4
test rbx, rbx
jne 0x140004b60
mov eax, edi
jmp 0x140004c3b
mov r8, rsi
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140004bc4
lea rcx, str.MSPDBSRV:_fatal_error:_Unable_to_stop_server:_server_not_found_n
call fcn.140003310
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
test rbx, rbx
je 0x140004c30
nop
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400142d4
test rbx, rbx
jne 0x140004bb0
mov eax, edi
jmp 0x140004c3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
test rbx, rbx
je 0x140004bf5
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400142d4
test rbx, rbx
jne 0x140004be5
mov edi, 1
mov eax, edi
jmp 0x140004c3b
lea rcx, str.MSPDBSRV:_fatal_error:_out_of_memory_n
call fcn.140003310
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
test rbx, rbx
je 0x140004c30
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400142d4
test rbx, rbx
jne 0x140004c20
mov eax, edi
jmp 0x140004c3b
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400142a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret