Function at 0x140002640
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x430
mov rbp, rdx
mov qword [rax + 0x18], 0x22
mov rdx, rcx
xor r14d, r14d
lea rcx, [rsp + 0x30]
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rbx, rax
lea ecx, [r14 + 0x2f]
lea r12d, [r14 + 0x20]
movzx eax, word [rax]
test ax, ax
je 0x140002795
lea rsi, [rbx + 2]
lea ebp, [rcx - 0xd]
cmp ax, cx
jne 0x140002779
add rbx, 2
add rsi, 2
movzx ecx, word [rbx]
cmp ecx, 0x64
ja 0x1400026e8
je 0x1400026d6
sub ecx, 0x44
je 0x1400026d6
sub ecx, 1
je 0x140002702
sub ecx, 3
je 0x1400026f6
sub ecx, 6
je 0x1400026ed
cmp ecx, 1
jne 0x140002774
mov dword [0x140022040], ecx
jmp 0x1400026e0
mov dword [0x140022048], 1
mov rdi, rsi
jmp 0x140002774
sub ecx, 0x65
jmp 0x1400026b9
mov dword [0x140022044], r14d
jmp 0x1400026e0
mov dword [0x14002204c], 1
jmp 0x1400026e0
add rbx, 2
add rsi, 2
cmp word [rbx], 0x3a
jne 0x140002774
add rbx, 2
add rsi, 2
cmp word [rbx], bp
jne 0x14000272d
mov word [rbx], r12w
mov edx, ebp
add rbx, 2
add rsi, 2
jmp 0x140002730
mov edx, r12d
mov rcx, rbx
call fcn.140006f28
mov rdi, rax
test rax, rax
je 0x140002744
mov word [rax], r14w
mov rdx, rbx
lea rcx, [0x140021f40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rdi, rdi
je 0x14000275f
mov word [rdi], r12w
jmp 0x140002770
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
cdqe
lea rdi, [rbx + rax*2]
add rdi, 2
mov ecx, 0x2f
add rbx, 2
add rsi, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140002696
mov rbp, qword [rsp + 0x468]
movzx eax, word [0x140021f40]
mov edx, 0x22
neg ax
sbb ecx, ecx
and dword [0x140022048], ecx
lea rcx, [rsp + 0x30]
call fcn.140006f28
test rax, rax
jne 0x1400027d2
test rdi, rdi
jne 0x140002868
lea rdx, [rsp + 0x30]
jmp 0x1400028a6
add rax, 2
cmp word [rax], r12w
je 0x1400027ce
xor r8d, r8d
lea rdx, [rsp + 0x470]
mov rcx, rax
call fcn.14000c2b8
test rax, rax
je 0x1400028af
cmp word [rax], r14w
je 0x1400028af
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r8d, r8d
lea rdx, [rsp + 0x470]
xor ecx, ecx
call fcn.14000c2b8
test rax, rax
je 0x1400028af
cmp word [rax], r12w
jne 0x1400028af
xor r8d, r8d
lea rdx, [rsp + 0x470]
xor ecx, ecx
call fcn.14000c2b8
mov rbx, rax
test rax, rax
je 0x1400028af
cmp word [rax], r14w
je 0x1400028af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400028af
mov rdx, rbx
lea rcx, [0x140021d38]
jmp 0x1400028a9
cmp word [rdi], r14w
jne 0x14000289d
mov edx, 0x2f
lea rcx, [rsp + 0x30]
call fcn.140006f28
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov word [rax], r14w
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbp
call fcn.1400039fc
jmp 0x1400028af
add rdi, 2
cmp word [rdi], r12w
je 0x140002899
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [rbp], r14w
je 0x1400028ee
mov rcx, rbp
call fcn.1400039fc
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1400028ea
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400028ee
xor eax, eax
jmp 0x1400028f3
mov eax, 1
mov rbx, qword [rsp + 0x460]
add rsp, 0x430
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret