Function at 0x140038650
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400514f0
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.1400514f0
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x104
call fcn.1400514f0
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x104
call fcn.1400514f0
mov edx, 0x104
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor r15d, r15d
mov ecx, r15d
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x390]
mov byte [rsp + rcx + 0x20], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400386e0
lea r9, [rbp + 0x588]
mov r8, rdi
lea rdx, [rbp + 0x140]
mov rcx, r14
call fcn.1400390e0
cmp dword [rbp + 0x588], r15d
jne 0x140038723
cmp dword [rbp + 0x58c], r15d
je 0x140038a14
lea rdx, [rbp + 0x140]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140038742
inc rbx
test eax, eax
jne 0x140038730
test ecx, ecx
je 0x140038a14
lea rcx, [rbp + 0x30]
dec rcx
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140038751
lea r8, [rbp + 0x390]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140038770
lea rax, [rbp + 0x30]
dec rax
nop word [rax + rax]
cmp byte [rax + 1], r15b
lea rax, [rax + 1]
jne 0x140038790
movups xmm0, xmmword [str.System32AMDACRDumps_]
lea rcx, [rbp + 0x30]
xor edx, edx
movsd xmm1, qword [0x1400b3260]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400387f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400387f7
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140038a14
mov r9d, eax
lea r8, str.CreateDirectory_failed_0x_x.
mov edx, 0x40000000
call fcn.140040750
jmp 0x140038a14
lea rcx, [rbp + 0x30]
dec rcx
nop
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140038800
lea r8, [rbp + 0x140]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140038820
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140038840
movups xmm0, xmmword [str.LiveKernelReports_]
mov eax, dword [0x1400b3248]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140038865
xor edx, edx
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140038871
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140038890
movzx eax, word [0x1400a709c]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x1400388b0
lea r9, [rbp + 0x140]
xor r8d, r8d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 + r8]
mov byte [rcx + r8], al
lea r8, [r8 + 1]
test al, al
jne 0x1400388d0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call sym.atieclxx.exe_dumpanalyze_acquirefile
mov rbx, rax
test rax, rax
je 0x1400389f2
xor edx, edx
mov qword [rsp + 0x670], rsi
mov r8d, 0x140
lea rcx, [rbp + 0x250]
call fcn.1400514f0
lea rdx, [rbp + 0x250]
mov rcx, rbx
call sym.atieclxx.exe_dumpanalyze_getbsodsummary
cmp dword [rbp + 0x37c], 1
sete sil
jne 0x14003899b
mov eax, dword [rbp + 0x250]
mov rdi, qword [rbp + 0x388]
mov dword [r14 + 0x890], eax
mov eax, dword [rbp + 0x380]
mov dword [r14 + 0x88c], eax
test rdi, rdi
jle 0x140038994
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
call fcn.14007c260
mov ecx, dword [rax]
neg ecx
cmp ecx, 0xa8c0
lea edx, [rcx - 0x15180]
cmovle edx, ecx
cmp edx, 0xffff6550
lea eax, [rdx + 0x15180]
cmovge eax, edx
movsxd r15, eax
add r15, rdi
mov qword [r14 + 0x880], r15
mov rcx, rbx
call sym.atieclxx.exe_dumpanalyze_releasefile
test sil, sil
mov rsi, qword [rsp + 0x670]
je 0x1400389f2
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1400389ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140038a14
mov r9d, eax
lea r8, str.CopyFile_failed_0x_x.
mov edx, 0x40000000
call fcn.140040750
jmp 0x140038a14
mov al, 1
jmp 0x140038a16
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140038a14
lea r9, [rsp + 0x20]
mov edx, 0x40000000
lea r8, str.Latest_dump_is_not_an_ACR_dump___s
call fcn.140040750
xor al, al
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret