Function at 0x1400c5610
Capabilities:
Create directory
Create process memory minidump
Get common file path
Query or enumerate registry value
Terminate process

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x5b8]
sub rsp, 0x6a8
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rbx, rcx
cmp edx, 0x1c
ja 0x1400c591f
mov qword [r11 + 0x18], rdi
cmp edx, 3
jne 0x1400c58d2
mov r9d, 0x208
mov qword [r11 + 0x20], r14
lea r8, [rbp + 0x170]
xor edx, edx
call sub.KERNEL32.dll_K32GetModuleBaseNameW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r9d, 1
lea rdx, str.SOFTWAREMicrosoftWindowsWindows_Error_ReportingLocalDumps
mov r14d, eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c5863
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.DumpFolder
lea rax, [rsp + 0x60]
mov qword [rsp + 0x6a0], r15
mov qword [rsp + 0x28], rax
xor r15d, r15d
lea rax, [rsp + 0x44]
mov dword [rsp + 0x48], 0x208
mov r9d, 0xffff
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x44], r15d
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400c5739
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140116368]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rax, qword [rsp + 0x50]
lea r9, str._lsCrashDumps
mov edx, 0x208
mov qword [rsp + 0x20], rax
lea r8, [r15 - 1]
lea rcx, [rsp + 0x60]
call fcn.1400c4790
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rbp + 0x170]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea r9, str._ls_ls._d.dmp
lea rax, [rsp + 0x60]
mov edx, 0x208
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x380]
call fcn.1400c4790
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x380]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c585b
mov r9d, 1
mov qword [rsp + 0x6c8], rsi
lea r8, [rsp + 0x40]
mov byte [rsp + 0x40], 1
mov rcx, rax
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
call qword [sym.imp.dbghelp.dll_SymGetOptions]
mov ecx, eax
mov esi, eax
bts ecx, 0x1e
call qword [sym.imp.dbghelp.dll_SymSetOptions]
mov qword [rsp + 0x30], r15
mov r9d, 0x220002
mov qword [rsp + 0x28], r15
mov r8, rdi
mov edx, r14d
mov qword [rsp + 0x20], r15
mov rcx, rbx
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
je 0x1400c5842
mov r9d, 1
mov byte [rsp + 0x41], r15b
lea r8, [rsp + 0x41]
mov rcx, rdi
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov ecx, esi
call qword [sym.imp.dbghelp.dll_SymSetOptions]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x6c8]
mov r15, qword [rsp + 0x6a0]
mov r14, qword [rsp + 0x6d8]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400c591b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 5
jne 0x1400c58aa
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400c58aa
cmp dword [rsp + 0x44], 0x103
jne 0x1400c5914
mov ecx, edi
call fcn.1400b5700
mov rdi, qword [rsp + 0x6d0]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0x6a8
pop rbx
pop rbp
ret
test edx, edx
je 0x1400c58f1
sub edx, 2
je 0x1400c586b
sub edx, 1
je 0x1400c586b
sub edx, 6
je 0x1400c586b
cmp edx, 6
je 0x1400c586b
mov eax, 0xfffff02a
jmp 0x1400c58b1
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400c590a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x1400c58ac
cmp dword [rsp + 0x44], 0x103
je 0x1400c591b
mov eax, 0xfffff038
jmp 0x1400c58b1
xor eax, eax
jmp 0x1400c58b1
mov eax, 0xfffff019
jmp 0x1400c58b9