Function at 0x140004e10
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
mov dword [rsp + 0x50], edx
mov rbx, rcx
lea rdx, str.Servicing_debugger_files
mov edi, r8d
mov ebp, esi
mov r12d, esi
lea ecx, [rsi + 2]
call fcn.14000b134
lea rdx, str.SYSPARTDEST
mov rcx, rbx
call fcn.14000bd98
mov r13, rax
test rax, rax
je 0x1400050cd
lea rdx, str.SOURCEBootDebuggerFiles.ini
mov rcx, rbx
call fcn.14000bd98
mov qword [rsp + 0x58], rax
mov r15, rax
test rax, rax
je 0x140005087
lea rdx, str.SYSROOT
mov rcx, rbx
call fcn.14000bd98
mov r12, rax
test rax, rax
je 0x140005073
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000505f
test al, 0x50
jne 0x14000505f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rsi + 8]
mov r8d, 0x4000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x140004f05
lea rdx, str.ServiceDebuggerFiles:_Failed_to_allocate_config_buffer
lea ecx, [rsi + 4]
call fcn.14000b134
jmp 0x140005073
lea rax, str.BootDebuggerFiles.UEFI
test edi, edi
lea rcx, str.BootDebuggerFiles.PCAT
mov r9, r15
cmove rcx, rax
mov r8d, 0x2000
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov r14d, eax
test eax, eax
jne 0x140004f40
lea rdx, str.List_of_debugger_files_is_empty
mov ecx, 2
jmp 0x140004efb
cmp r14d, 0x1ffe
jb 0x140004f5a
lea rdx, str.ServiceDebuggerFiles:_ConfigBuffer_is_too_small
mov ecx, 4
call fcn.14000b134
mov rdi, rbp
test r14d, r14d
je 0x140005053
mov r15d, dword [rsp + 0x50]
cmp word [rdi], si
je 0x14000504e
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140004f78
mov r8, r12
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.1400019b8
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
xor ecx, ecx
mov rsi, rax
test rax, rax
je 0x140004fc6
mov word [rax], cx
add rsi, 2
lea rcx, [rsp + 0x60]
mov r8, rdi
mov edx, 0x104
call fcn.140001a40
jmp 0x140004fc9
mov rsi, rdi
mov r9, r13
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x60]
mov ecx, 2
lea rdx, str.Copying_boot_debugging_files_from__ws_to__ws___ws_
call fcn.14000b134
xor eax, eax
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x40], eax
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov r8, rsi
mov dword [rsp + 0x28], r15d
mov rdx, r13
mov dword [rsp + 0x20], r15d
call fcn.140003fec
test eax, eax
jne 0x14000503a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov r9, r13
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
lea rdx, str.Error_copying_boot_debugging_files_from__ws_to__ws___ws_._Last_Error___x
mov ecx, 4
call fcn.14000b134
inc ebx
mov esi, 0
lea rdi, [rdi + rbx*2]
sub r14d, ebx
jne 0x140004f6b
mov r15, qword [rsp + 0x58]
lea rdx, str.Done_servicing_debugger_files.
jmp 0x140004f39
mov r8, r15
lea rdx, str.ServiceDebuggerFiles:__ws_does_not_exist
mov ecx, 3
call fcn.14000b134
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbp, rbp
je 0x1400050b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x1400050cd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001fbe0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret