Function at 0x140004c30
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0x70], rax
lea r15, vtable.CTracePie.0
mov qword [rbp - 0x50], r15
xor edi, edi
mov qword [rbp + 0x58], rdi
mov word [rbp + 0x60], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x5c], eax
lea r9d, [rdi + 0x38]
lea r8, str.PIE_Migration::CopyMurocApi
lea edx, [rdi + 0x78]
lea rcx, [rbp - 0x48]
call fcn.1400133b0
lea r9d, [rdi + 0x2c]
lea r8, str.PIE_SERVICE_MIGRATION
lea edx, [rdi + 0x28]
lea rcx, [rbp + 0x30]
call fcn.1400133b0
cmp byte [rbp + 0x61], 1
jne 0x140004cce
lea r8, [0x14005a24c]
lea edx, [rdi + 5]
lea rcx, [rbp - 0x50]
call fcn.1400134a0
lea rax, vtable.CTracePieServiceMigration.0
mov qword [rbp - 0x50], rax
mov ebx, 1
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x14006fad0], eax
jle 0x140004d2c
lea rcx, [0x14006fad0]
call fcn.140022568
cmp dword [0x14006fad0], 0xffffffff
jne 0x140004d2c
call fcn.14001d600
lea rcx, [0x140045570]
call fcn.1400228ec
nop
lea rcx, [0x14006fad0]
call fcn.140022508
mov eax, dword [0x14006faa8]
mov qword [rsp + 0x30], rax
lea rax, [0x14006f8a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1c
lea r9, [0x140055680]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
call fcn.14001c110
lea rcx, [rbp - 0x50]
test eax, eax
je 0x14000502f
mov r14, qword [rsp + 0x40]
mov r9, r14
lea r8, str.murocApiDllPath___ws
mov edx, 4
call fcn.1400134a0
lea rdx, [rbp - 0x70]
call fcn.140005cb0
nop
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
lea r8, str.murocApiPathProgramFilesPath___ws
mov edx, 4
lea rcx, [rbp - 0x50]
call fcn.1400134a0
mov eax, dword [rsi]
cmp dword [0x14006fad0], eax
jle 0x140004df1
lea rcx, [0x14006fad0]
call fcn.140022568
cmp dword [0x14006fad0], 0xffffffff
jne 0x140004df1
call fcn.14001d600
lea rcx, [0x140045570]
call fcn.1400228ec
nop
lea rcx, [0x14006fad0]
call fcn.140022508
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov r8d, 0x10
lea rdx, str.IntelWiFi_bin_
lea rcx, [rsp + 0x50]
call fcn.140009ed0
nop
mov eax, dword [rsi]
cmp dword [0x14006fad0], eax
jle 0x140004e63
lea rcx, [0x14006fad0]
call fcn.140022568
cmp dword [0x14006fad0], 0xffffffff
jne 0x140004e63
call fcn.14001d600
lea rcx, [0x140045570]
call fcn.1400228ec
nop
lea rcx, [0x14006fad0]
call fcn.140022508
lea rdx, [rsp + 0x70]
call fcn.14001cc30
nop
lea r8, [rsp + 0x50]
mov rdx, rax
call fcn.14001cdd0
test eax, eax
jne 0x140004ec8
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140004ebf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050cd
call fcn.140022904
movzx eax, byte [rbp + 0x60]
jmp 0x14000507e
lea r8, str.Copy_MurocApi.dll_file_to_Proset_directory
mov edx, 4
lea rcx, [rbp - 0x50]
call fcn.1400134a0
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140004fed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, eax
lea r8, str.Failed_to_copy_MurocAPI.dll__error_code:__d
mov edx, 4
lea rcx, [rbp - 0x50]
call fcn.1400134a0
cmp ebx, 0x20
jne 0x140004feb
lea r8, str.File_is_in_use__trying_to_rename_MurocApi.dll_file_to_MurocAPI.dll.old_and_then_copy_PIEs_MurocAPI.dll
lea edx, [rbx - 0x1c]
lea rcx, [rbp - 0x50]
call fcn.1400134a0
mov eax, dword [rsi]
cmp dword [0x14006fad0], eax
jle 0x140004f78
lea rcx, [0x14006fad0]
call fcn.140022568
cmp dword [0x14006fad0], 0xffffffff
jne 0x140004f78
call fcn.14001d600
lea rcx, [0x140045570]
call fcn.1400228ec
nop
lea rcx, [0x14006fad0]
call fcn.140022508
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov rdx, r14
call fcn.14001c650
mov ebx, eax
test eax, eax
jne 0x140004fed
mov eax, dword [rsi]
cmp dword [0x14006fad0], eax
jle 0x140004fd1
lea rcx, [0x14006fad0]
call fcn.140022568
cmp dword [0x14006fad0], 0xffffffff
jne 0x140004fd1
call fcn.14001d600
lea rcx, [0x140045570]
call fcn.1400228ec
nop
lea rcx, [0x14006fad0]
call fcn.140022508
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov rdx, r14
call fcn.14001c930
mov ebx, eax
jmp 0x140004fed
mov ebx, edi
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140005042
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005028
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050cd
call fcn.140022904
jmp 0x140005042
mov ebx, edi
lea r8, str.Failed_to_get_MurocAPI.dll_path
mov edx, 2
call fcn.1400134a0
lea rcx, str.TRUE
lea rax, str.FALSE
test ebx, ebx
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.result
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rbp - 0x50]
call fcn.1400134a0
mov al, 1
mov byte [rbp + 0x60], al
mov edi, ebx
mov qword [rbp - 0x50], r15
cmp byte [rbp + 0x61], 1
jne 0x1400050a2
test al, al
jne 0x1400050a2
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rbp - 0x50]
call fcn.1400134a0
nop
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400223c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14002c5b4
nop
int3