Function at 0x14002e64c
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r14, rcx
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14002e6b5
test byte [rcx + 0x1c], 4
je 0x14002e6b5
cmp byte [rcx + 0x19], 5
jb 0x14002e6b5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c310]
mov edx, 0x8f
call fcn.1400042fc
lea rcx, [0x14009f340]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [0x14009f528]
lea rcx, [rbp + 0x3c0]
xor ebx, ebx
mov edi, 0x104
mov rdx, qword [rax + 0x30]
lea r12d, [rbx + 2]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14002e708
movzx eax, word [rdx]
test ax, ax
je 0x14002e708
mov word [rcx], ax
add rdx, r12
add rcx, r12
sub rdi, 1
jne 0x14002e6e5
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
lea rcx, [0x14009f340]
mov word [rax], bx
mov rax, rdi
neg rax
sbb esi, esi
not esi
and esi, 0x8007007a
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov r15d, 0xc
test rdi, rdi
jne 0x14002e799
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14002e77b
test byte [rcx + 0x1c], 4
je 0x14002e77b
cmp byte [rcx + 0x19], r12b
jb 0x14002e77b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c310]
mov edx, 0x90
mov r9d, esi
call fcn.140004328
mov eax, esi
movzx edi, si
and eax, 0x1fff0000
mov word [rbp + 0x3c0], bx
cmp eax, 0x70000
cmovne edi, esi
jmp 0x14002e97a
mov r8, qword [r14 + 0x248]
lea rax, [rbp + 0x3c0]
mov rdx, qword [r14 + 0x10]
mov r9d, 1
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r8, qword [r8 + 0x198]
call fcn.140005dfc
mov edi, eax
test eax, eax
je 0x14002e85a
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14002e80f
test byte [rcx + 0x1c], 4
je 0x14002e80f
cmp byte [rcx + 0x19], r12b
jb 0x14002e80f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c310]
mov edx, SysAllocStringByteLen
mov r9d, edi
call fcn.1400046fc
mov r9d, edi
mov dword [rsp + 0x40], edi
lea r8, [0x14008b4c0]
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004280
test eax, eax
lea rcx, [rsp + 0x44]
mov edx, 1
mov r9d, 0xc0007d2f
cmovs rcx, rbx
mov r8d, edx
mov qword [rsp + 0x20], rcx
mov ecx, r12d
call fcn.140069d80
jmp 0x14002e97a
mov rcx, qword [r14 + 0x48]
lea rdx, [rbp + 0x1b0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e9f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
lea rsi, [0x14009b020]
cmp rcx, rsi
je 0x14002e8d2
test byte [rcx + 0x1c], 4
je 0x14002e8d2
cmp byte [rcx + 0x19], r12b
jb 0x14002e8d2
mov r9, qword [r14 + 0x48]
lea r8, [0x14008c310]
mov rcx, qword [rcx + 0x10]
mov edx, SysAllocStringByteLen
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
call fcn.140036f90
mov r9d, edi
mov dword [rsp + 0x40], edi
lea r8, [0x14008b4c0]
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004280
test eax, eax
lea rcx, [rsp + 0x44]
mov edx, 1
mov r9d, 0xc0007d2f
cmovs rcx, rbx
mov r8d, edx
mov qword [rsp + 0x20], rcx
mov ecx, r12d
call fcn.140069d80
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e97a
mov rax, qword [0x14009b020]
cmp rax, rsi
je 0x14002e97a
test byte [rax + 0x1c], 4
je 0x14002e97a
cmp byte [rax + 0x19], r12b
jb 0x14002e97a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r9, [rbp + 0x1b0]
mov edx, SysAllocStringByteLen
mov dword [rsp + 0x20], eax
lea r8, [0x14008c310]
mov rcx, qword [rcx + 0x10]
call fcn.1400045e8
mov r9d, edi
mov dword [rsp + 0x40], edi
lea r8, str.0x_08X
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004280
test eax, eax
lea r8, [rsp + 0x44]
mov edx, 1
lea rax, [rbp + 0x3c0]
cmovs r8, rbx
mov r9d, 0xc0007d14
mov qword [rsp + 0x30], r8
mov ecx, r12d
mov qword [rsp + 0x28], rax
mov rax, qword [r14 + 0x48]
lea r8d, [rdx + 2]
mov qword [rsp + 0x20], rax
call fcn.140069d80
test edi, edi
je 0x14002ec56
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002ec54
mov rdx, r14
lea rcx, [rbp + 0x1b0]
call fcn.140035ab4
test eax, eax
jne 0x14002eaa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14002ea55
test byte [rcx + 0x1c], 4
je 0x14002ea55
cmp byte [rcx + 0x19], r12b
jb 0x14002ea55
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x1b0]
mov edx, SysAllocStringByteLen
mov dword [rsp + 0x20], esi
lea r8, [0x14008c310]
call fcn.1400045e8
mov r9d, esi
mov dword [rsp + 0x40], esi
lea r8, str.0x_08X
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004280
test eax, eax
lea rcx, [rsp + 0x44]
lea rax, [rbp + 0x1b0]
mov r9d, 0xc0007d4a
cmovs rcx, rbx
mov r8d, r12d
mov qword [rsp + 0x28], rcx
mov edx, 1
mov ecx, r12d
mov qword [rsp + 0x20], rax
call fcn.140069d80
mov r9, qword [r14 + 0x248]
xor r8d, r8d
mov rcx, qword [r14 + 0x10]
mov r9, qword [r9 + 0x198]
lea edx, [r8 + 0x40]
call fcn.140058b24
test eax, eax
je 0x14002eb03
mov rcx, qword [0x14009b020]
lea r15, [0x14009b020]
cmp rcx, r15
je 0x14002eb0a
test byte [rcx + 0x1c], 4
je 0x14002eb0a
cmp byte [rcx + 0x19], r12b
jb 0x14002eb0a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c310]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
movzx r9d, ax
call fcn.14000c678
jmp 0x14002eb0a
lea r15, [0x14009b020]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002eb8c
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x14002ec29
test byte [rax + 0x1c], 4
je 0x14002ec29
cmp byte [rax + 0x19], r12b
jb 0x14002ec29
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, [rbp + 0x1b0]
mov edx, reloc.OLEAUT32.dll_DllRegisterServer
mov qword [rsp + 0x20], rcx
lea r8, [0x14008c310]
mov rcx, qword [0x14009b020]
movzx r9d, ax
mov rcx, qword [rcx + 0x10]
call fcn.14002371c
jmp 0x14002ec29
lea rcx, [0x14009f340]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov r8, qword [0x14009f528]
cmp qword [r8 + 0x38], 0xffffffffffffffff
je 0x14002ebbf
mov edx, dword [rsp + 0x7c]
mov eax, dword [rbp - 0x80]
shl rdx, 0x20
or rdx, rax
add qword [r8 + 0x38], rdx
lea rcx, [0x14009f340]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14002ec29
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x14002ec29
test byte [rax + 0x1c], 4
je 0x14002ec29
cmp byte [rax + 0x19], r12b
jb 0x14002ec29
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008c310]
mov edx, 0x97
movzx r9d, ax
mov rcx, qword [rcx + 0x10]
call fcn.14000c678
mov rcx, qword [r14 + 0x48]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
mov r9d, 0x40007d13
mov qword [rsp + 0x20], rcx
mov r8d, r12d
mov ecx, r12d
mov edx, 3
call fcn.140069d80
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret