Function at 0x140005c80
Capabilities:
Check if file exists
Create process on windows
Set console window title

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1420
call fcn.140007420
sub rsp, rax
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x618
rep stosb byte [rdi], al
lea rax, [rsp + 0x7e0]
mov rdi, rax
xor eax, eax
mov ecx, 0x618
rep stosb byte [rdi], al
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov dword [rsp + 0xa0], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rsp + 0x100], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rsp + 0xf8], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0xdc]
bts eax, 8
mov dword [rsp + 0xdc], eax
movzx eax, byte [0x140098471]
test eax, eax
jne 0x140005e5a
cmp qword [0x140098478], 0
je 0x140005e37
lea rax, [rsp + 0xe00]
mov rdi, rax
xor eax, eax
mov ecx, 0x618
rep stosb byte [rdi], al
mov r8, qword [0x140098478]
mov edx, 0x30c
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, qword [0x140098478]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov qword [rsp + 0x68], rax
lea rax, [0x14000aee4]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x68], 3
jbe 0x140005df9
lfence
mov rax, qword [0x140098478]
mov rcx, qword [rsp + 0x68]
lea rax, [rax + rcx*2 - 2]
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
je 0x140005df9
lea r8, [0x14000aee0]
mov edx, 0x30c
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r9, qword [rsp + 0x1430]
lea r8, str.kd.exe__z___s_
mov edx, 0x30c
lea rcx, [rsp + 0xe00]
call fcn.140001130
lea r8, [rsp + 0xe00]
mov edx, 0x30c
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x140005e58
mov r9, qword [rsp + 0x1430]
lea r8, [0x14000aea0]
mov edx, 0x30c
lea rcx, [rsp + 0x1c0]
call fcn.140001130
jmp 0x140005e7b
mov r9, qword [rsp + 0x1430]
lea r8, str.windbg.exe__z___s_
mov edx, 0x30c
lea rcx, [rsp + 0x1c0]
call fcn.140001130
lea rdx, [rsp + 0x1c0]
lea rcx, str.CommandLine:__s_n
call fcn.140001060
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x140005f19
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140005efe
lea rcx, str.___You_must_put_LiveCloudKd.exe_in_the_WinDbg_directory_or_launch_with__y_parameter_n
call fcn.140007270
jmp 0x140005f12
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [0x14000ad60]
call fcn.140001060
xor eax, eax
jmp 0x1400060f8
mov qword [rsp + 0x70], 0
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x1438]
call qword [sym.imp.hvlib.dll_SdkGetData]
lea r8, str.LiveCloudKd:
mov edx, 0x30c
lea rcx, [rsp + 0x7e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, qword [rsp + 0x70]
mov edx, 0x30c
lea rcx, [rsp + 0x7e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x7e0]
call qword [sym.imp.KERNEL32.DLL_SetConsoleTitleW]
mov eax, dword [rsp + 0x94]
lea rcx, [0x140018440]
mov rdx, qword [rsp + 0x88]
mov qword [rcx + rax*8], rdx
xor eax, eax
cmp eax, 1
je 0x1400060cc
mov edx, 0xffffffff
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.DLL_WaitForDebugEvent]
mov dword [rsp + 0x58], 0x80010001
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 1
je 0x140005fe7
cmp dword [rsp + 0x54], 2
je 0x140006077
cmp dword [rsp + 0x54], 5
je 0x140006093
jmp 0x1400060ae
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x80000003
je 0x140005ffe
jmp 0x140006075
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov rdx, qword [0x14000e110]
mov rcx, rax
call qword [0x1400984a0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140006049
jmp 0x1400060cc
mov rax, qword [rsp + 0x78]
mov qword [0x14000e110], rax
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140004ee0
mov byte [rsp + 0x50], al
mov dword [rsp + 0x58], 0x10002
jmp 0x1400060ae
mov eax, dword [rsp + 0x118]
lea rcx, [0x140018440]
mov rdx, qword [rsp + 0x120]
mov qword [rcx + rax*8], rdx
jmp 0x1400060ae
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x118]
mov ecx, dword [rsp + 0x114]
call qword [sym.imp.KERNEL32.DLL_ContinueDebugEvent]
jmp 0x1400060cc
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x118]
mov ecx, dword [rsp + 0x114]
call qword [sym.imp.KERNEL32.DLL_ContinueDebugEvent]
jmp 0x140005f94
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
add rsp, 0x1420
pop rdi
ret