Function at 0x140033b3c
Capabilities:
Copy file
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rbx, rcx
lea rcx, [rsp + 0x52]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], r12w
call fcn.14005bab0
mov r8d, dword [rbx + 1]
mov dil, byte [rbx]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140033bbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PrepareReport___couldnt_get_callers_process_handle_to_find_tmp_folder:__x_n
mov edx, eax
call fcn.1400300fc
jmp 0x140033e6a
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140033e4d
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, str._TMP_
mov r9d, 0x104
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.14005d25c
cmp word [rsp + rax*2 + 0x4e], 0x5c
je 0x140033c2c
lea rdx, [0x14009debc]
lea rcx, [rsp + 0x50]
call fcn.14005ea78
lea rdx, str.BtwReportFiles_
lea rcx, [rsp + 0x50]
call fcn.14005ea78
lea rcx, [rsp + 0x50]
call fcn.14005d25c
xor ecx, ecx
mov rsi, rax
call fcn.1400519d8
call fcn.1400516d8
mov rbx, rax
call fcn.140051678
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.14005ea78
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140033c94
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RepareReport____.etl_log_file_copy_failed:__x_n
mov edx, eax
call fcn.1400300fc
movsxd rsi, esi
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov word [rsp + rsi*2 + 0x50], r12w
call fcn.14005eaa4
mov rcx, rbx
call fcn.14005d25c
lea rdx, str.btwinlog.txt
mov rcx, rbx
mov word [rbx + rax*2 - 0x1e], r12w
call fcn.14005ea78
mov rcx, rbx
call fcn.14002f33c
lea rdx, str.btwinlog.txt
lea rcx, [rsp + 0x50]
call fcn.14005ea78
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140033d09
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RepareReport____BTW_install_log_file_copy_failed:__x_n
mov edx, eax
call fcn.1400300fc
test dil, dil
je 0x140033e6a
lea rax, [rsp + 0x38]
lea rdx, str.SYSTEMCurrentControlSetControlCrashControl
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov word [rbx], r12w
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140033e09
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.MinidumpDir
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x160]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140033dfe
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x160]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x370]
xor r8d, r8d
mov word [rbp + 0x160], r12w
call fcn.14002f3ec
cmp word [rbp + 0x160], r12w
je 0x140033dfe
lea rdx, [rbp + 0x370]
mov rcx, rbx
call fcn.14005eaa4
mov rcx, rbx
call fcn.14005d25c
cmp word [rbx + rax*2 - 2], 0x5c
je 0x140033def
lea rdx, [0x14009debc]
mov rcx, rbx
call fcn.14005ea78
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.14005ea78
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], r12w
je 0x140033e6a
lea rdx, str.Minidump.dmp
lea rcx, [rsp + 0x50]
mov word [rsp + rsi*2 + 0x50], r12w
call fcn.14005ea78
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140033e6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RepareReport____mini_dump_file_copy_failed:__x_n
jmp 0x140033bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PrepareReport___couldnt_get_callers_process_token_to_find_tmp_folder:__x_n
mov edx, eax
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret