Function at 0x140007744
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x690
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov r14, r8
mov rdi, rdx
mov rbp, rcx
call qword [sym.imp.ole32.dll_CoImpersonateClient]
nop dword [rax + rax]
xor r15d, r15d
test eax, eax
js 0x1400077ef
mov qword [rsp + 0x30], r15
lea r12d, [r15 + 1]
mov r8d, r12d
mov dword [rsp + 0x28], Ordinal_134
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoRevertToSelf]
nop dword [rax + rax]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400077ef
mov rcx, rdi
call fcn.14000827c
mov rsi, rax
cmp rax, rdi
jne 0x140007817
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140001580
add rsp, 0x690
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
or r9d, 0xffffffff
lea rax, [rsp + 0x250]
mov edi, 0x104
mov r8, rbp
mov dword [rsp + 0x28], edi
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
jne 0x140007895
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140007875
jg 0x140007875
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov edi, eax
cmove edi, r12d
jmp 0x140007997
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r12d
movzx edi, ax
or edi, 0x80070000
jmp 0x140007997
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s.dat
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140004494
mov edi, eax
test eax, eax
js 0x140007997
lea rcx, [rsp + 0x40]
call fcn.140006e44
mov edi, eax
test eax, eax
js 0x140007997
movzx eax, word [rsp + 0x40]
lea rcx, [rsp + 0x40]
jmp 0x1400078f5
cmp ax, 0x2f
jne 0x1400078ee
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400078e0
xor r9d, r9d
lea rdx, [rsp + 0x460]
mov r8d, 0x10c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
nop dword [rax + rax]
cmp eax, 3
je 0x1400079e2
cmp eax, 8
je 0x1400079e2
cmp eax, 0x57
je 0x1400079e2
mov r8d, r12d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400079ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14000797b
jg 0x14000797b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r12d
jmp 0x140007995
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r12d
movzx eax, ax
or eax, 0x80070000
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
jmp 0x1400077f4
lea rcx, [rsp + 0x40]
call fcn.140009814
mov edi, eax
test eax, eax
js 0x140007997
mov rcx, qword [r14]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [r14], rax
jmp 0x140007997
mov edi, 0x80004005
jmp 0x140007997