Function at 0x14001ea30
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
cmp qword [rcx + 0x18], 8
jb 0x14001ea78
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14001ea8a
xor al, al
jmp 0x14001edf7
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001ea97
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x1401241f8]
test rax, rax
cmovne rdx, rax
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 0x71], xmm0
mov word [rsp + 0x28], r14w
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14001ead0
lea rcx, [rsp + 0x28]
call fcn.1400149d0
nop
mov dword [rsp + 0x20], 9
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x61]
mov rcx, rsi
call fcn.14001c430
nop
mov dword [rsp + 0x20], ntohs
cmp qword [rax + 0x18], 8
jb 0x14001eb11
mov rax, qword [rax]
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r14w
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001eb23
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.1400149d0
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x14001eb7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001eb78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ee21
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], r14w
mov rdx, qword [rbp - 0x69]
cmp rdx, 8
jb 0x14001ebd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ebcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ee21
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 0x71], xmm0
mov word [rsp + 0x28], r14w
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001ebf0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ec04
test al, 0x10
je 0x14001ec04
mov dil, 1
jmp 0x14001ec07
xor dil, dil
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.14001ce30
test dil, dil
jne 0x14001ecac
test eax, eax
jne 0x14001ec28
mov dil, 1
jmp 0x14001edb7
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14001c1b0
mov rcx, rax
call fcn.14001c3c0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14001ec7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ec78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ee27
call fcn.1400ccd64
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
cmp qword [rbx + 0x18], 8
jb 0x14001ec95
mov rbx, qword [rbx]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dil
jmp 0x14001edb7
test eax, eax
jne 0x14001ecb8
mov dil, 1
jmp 0x14001edb7
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14001ecf8
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ecf3
test al, 0x10
je 0x14001ecf3
mov dil, 1
jmp 0x14001ed17
xor dil, dil
jmp 0x14001ed17
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete dil
lea rax, [rbp - 0x19]
mov qword [rbp + 0xf], rax
mov dword [rbp + 0x17], 1
lea rax, [0x14001ea10]
mov qword [rbp + 7], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0x2f], 0
xor edx, edx
xor ecx, ecx
call fcn.14001f480
mov rsi, rax
xor edx, edx
xor ecx, ecx
call fcn.14001f480
mov r14, rax
mov rcx, qword [rbp + 0x1f]
cmp rcx, rax
je 0x14001ed79
cmp byte [rbp + 0x2f], 0
je 0x14001ed75
test rcx, rcx
je 0x14001ed75
mov r8, qword [rcx]
mov edx, 1
call qword [rreloc.WS2_32.dll_htonl + 8]
mov qword [rbp + 0x1f], r14
mov rcx, qword [rbp + 0x27]
cmp rcx, rsi
je 0x14001ed9c
cmp byte [rbp + 0x2f], 0
je 0x14001ed98
test rcx, rcx
je 0x14001ed98
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x27], rsi
mov byte [rbp + 0x2f], 1
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.14001f6d0
nop
lea rcx, [rbp + 7]
call fcn.14001f3d0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14001edf3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001edee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ee1b
call fcn.1400ccd64
movzx eax, dil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400ccd40
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
int3