Function at 0x1400575dc
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp r8d, 2
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
jle 0x140057604
call qword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
test eax, eax
je 0x140057627
movzx eax, word [rdi]
cmp word [rsi], ax
jne 0x140057625
movzx eax, word [rdi + 2]
cmp word [rsi + 2], ax
jne 0x140057625
mov ecx, 0x3a
cmp cx, ax
jne 0x140057625
lea ebx, [rcx - 0x38]
jmp 0x140057627
xor ebx, ebx
movsxd rax, ebx
xor r8d, r8d
mov rcx, rdi
lea rdx, [rsi + rax*2]
call fcn.1400574c8
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_CopyFileW]
push rsi
push rdi
xor ecx, ecx
mov dword [rbp - 0x48], ecx
mov dword [rbp - 0x4c], ecx
mov dword [rbp - 0x44], ecx
mov esp, 0x89d44d89
ror byte [r9 + 0x4d89d84d], 0xdc
mov esp, 0x89d44d89
ror byte [r9 + 0x4d89d84d], 0xdc
mov dword [rbp - 0x20], ecx
mov dword [rbp - 8], edx
clc
clc
mov dword [rbp - 4], eax
xor eax, eax
push rbp
push 0x4f6b49
push qword fs:[rax]
mov dword fs:[rax], esp
mov eax, dword [rbp - 4]
call 0x140d3c0fc
test al, al
je 0x140d41635
mov eax, dword [rbp - 4]
mov eax, dword [rax + 0x2fc]
lea edx, [rax + 0x70]
movabs eax, dword [0xf0fd67e800500044]
dec dword [rbp + 0x6ca1e055]
cli
add r8b, r13b
pop rdx
std
lock dec dword [rbx + 0x458be055]
cld
mov eax, dword [rax + 0x2fc]
add eax, 0x60
mov ecx, 0x4f6b60
call 0x140c4f45c
mov eax, dword [rbp - 4]
mov eax, dword [rax + 0x2fc]
add eax, 0x78
call 0x140c4f150
mov eax, dword [rbp - 4]
mov eax, dword [rax + 0x2fc]
mov edx, dword [rax]
call qword [rdx + 0x3c]
test al, al
je 0x140d41635
push pe_nt_image_headers64
lea edx, [rbp - 0x24]
mov eax, dword [rbp - 4]
mov eax, dword [rax + 0x2fc]
call 0x140c80890
mov ecx, dword [rbp - 0x24]
mov dl, 1
movabs eax, dword [0xf26080e800417b7c]
dec dword [rcx - 0x3fcc0bbb]
push rbp
push 0x4f6a34
push qword fs:[rax]
mov dword fs:[rax], esp
mov dl, 1
movabs eax, dword [0xf95d23e80048a7e0]
dec dword [rcx - 0x3fcc0fbb]
push rbp
push 0x4f6a17
push qword fs:[rax]
mov dword fs:[rax], esp
mov edx, dword [rbp - 0x10]
mov eax, dword [rbp - 0xc]
call 0x140cd7284
xor eax, eax
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x10]
call 0x140cd71f0
test rax, rax
jl 0x140d4152d
mov dword [rbp - 0x1c], eax
xor ebx, ebx
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
movzx eax, word [rax + 0xc]
lea edx, [rbp - 0x28]
call 0x140c53b00
mov eax, dword [rbp - 0x28]
push rax
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
mov eax, dword [rax + 8]
push rax
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
mov edx, dword [rax + 4]
mov eax, dword [rbp - 4]
mov eax, dword [rax + 0x498]
pop rcx
call 0x140ce648c
mov esi, eax
test esi, esi
je 0x140d41523
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
mov edx, dword [rax + 0x14]
xor ecx, ecx
mov eax, dword [rbp - 0xc]
mov edi, dword [rax]
call qword [rdi + 0x14]
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
mov eax, dword [rax + 0x10]
call 0x140c4d584
mov dword [rbp - 0x18], eax
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
mov ecx, dword [rax + 0x10]
mov edx, dword [rbp - 0x18]
mov eax, dword [rbp - 0xc]
mov edi, dword [rax]
call qword [rdi + 0xc]
push 1
mov edx, ebx
mov eax, dword [rbp - 0x10]
call 0x140cd71dc
mov ecx, dword [rax + 0x10]
mov edx, dword [rbp - 0x18]
mov eax, esi
call 0x140ce45ac
inc dword [rbp - 0x14]
dec dword [r13 - 0x1c]
jne 0x140d41479
xor eax, eax
pop rdx
pop rcx
pop rcx
mov dword fs:[rax], edx
push 0x4f6a1e
mov eax, dword [rbp - 0x10]
call 0x140c4e300
ret
xor eax, eax
pop rdx
pop rcx
pop rcx
mov dword fs:[rax], edx
push 0x4f6b50
lea eax, [rbp - 0x4c]
call 0x140c4f150
lea eax, [rbp - 0x48]
mov edx, 3
call 0x140c4f174
lea eax, [rbp - 0x2c]
mov edx, 2
call 0x140c4f174
lea eax, [rbp - 0x24]
call 0x140c4f150
lea eax, [rbp - 0x20]
call 0x140c4f150
ret