Function at 0x140008220
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2ff70]
mov eax, 0x30070
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rbp + 0x2ff60], rax
movsd xmm0, qword [str._:__]
mov r13, r8
movzx eax, word [0x140056478]
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov r8d, 0xfff4
mov r12d, ecx
xor edx, edx
lea rcx, [rbp + 0xff6a]
movsd qword [rbp + 0xff60], xmm0
mov word [rbp + 0xff68], ax
call fcn.140042d50
mov rax, qword [r13]
xor esi, esi
mov r15d, esi
mov rdi, qword [rax]
cmp rdi, rax
je 0x14000860f
lea r14, [0x14008332c]
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
cmp dword [r8 + 0x14], 0
jne 0x1400085e5
mov r8, qword [r8 + 0x58]
lea rdx, [rsp + 0x60]
mov ecx, 0x7fff
nop dword [rax]
lea rax, [rcx + 0x7fff7fff]
test rax, rax
je 0x140008306
movzx eax, word [r8]
test ax, ax
je 0x140008306
mov word [rdx], ax
add r8, 2
add rdx, 2
sub rcx, 1
jne 0x1400082e0
test rcx, rcx
lea rax, [rdx - 2]
lea rcx, [rsp + 0x60]
cmovne rax, rdx
mov word [rax], si
call fcn.140022f20
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008518
test r15, r15
je 0x140008346
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x60]
mov r15, rsi
lea rax, [rbp + 0xff60]
mov edx, 0x7fff
sub r8, rax
lea rcx, [rbp + 0xff60]
lea rax, [rdx + 0x7fff7fff]
test rax, rax
je 0x140008387
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140008387
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140008364
test rdx, rdx
mov qword [rsp + 0x20], rbx
lea rax, [rcx - 2]
mov edx, 0x7fff
cmovne rax, rcx
lea r9, [rsp + 0x60]
lea r8, str._s_s
lea rcx, [rbp + 0x1ff60]
mov word [rax], si
call fcn.14000a100
cmp dword [0x140083324], 0
je 0x1400083d4
lea rcx, [rbp + 0x1ff60]
call fcn.1400215a0
test eax, eax
jne 0x1400085e5
lea rcx, [rbp + 0x1ff60]
mov ebx, 0x80
call fcn.1400215a0
test eax, eax
je 0x1400083f8
lea rcx, [rbp + 0x1ff60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x1ff60]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140008607
mov rcx, rax
call fcn.140024dd0
test eax, eax
je 0x140008607
test r12d, r12d
jne 0x14000845e
cmp dword [0x1400815dc], r12d
je 0x14000845e
mov rcx, r15
call fcn.140025320
mov ebx, eax
test eax, eax
jne 0x1400085fa
cmp dword [0x140081a24], 0
je 0x140008518
mov rbx, rdi
nop
mov rcx, qword [rbx + 0x10]
cmp dword [rcx + 0x14], 0
jne 0x14000849e
mov rsi, qword [rcx + 0x58]
mov rcx, qword [rcx + 0x60]
call fcn.140021d70
mov rdx, qword [rbx + 0x10]
sub rax, rsi
sar rax, 1
mov rcx, r15
mov r8d, eax
call fcn.140024e50
xor esi, esi
mov rbx, qword [rbx]
cmp rbx, qword [r13]
je 0x140008518
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x60]
mov r8, qword [rax + 0x58]
mov eax, 0x7fff
nop dword [rax]
lea rcx, [rax + 0x7fff7fff]
test rcx, rcx
je 0x1400084e6
movzx ecx, word [r8]
test cx, cx
je 0x1400084e6
mov word [rdx], cx
add r8, 2
add rdx, 2
sub rax, 1
jne 0x1400084c0
test rax, rax
lea rcx, [rdx - 2]
cmovne rcx, rdx
mov word [rcx], si
lea rcx, [rsp + 0x60]
call fcn.140022f20
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008470
test r15, r15
je 0x1400085e5
cmp dword [r14 + r12*4], 0
mov rcx, qword [rdi + 0x10]
mov rsi, qword [rcx + 0x60]
jne 0x14000853f
mov rcx, rsi
call fcn.140021d70
mov rcx, qword [rdi + 0x10]
mov rsi, rax
mov dword [rsp + 0x44], r12d
lea r14, [rcx + 0x78]
mov rdx, qword [r14]
mov rbx, rdx
mov rcx, qword [rdx + 8]
cmp byte [rcx + 0x19], 0
jne 0x14000857b
cmp dword [rcx + 0x20], r12d
jge 0x140008564
mov rcx, qword [rcx + 0x10]
jmp 0x14000856a
mov rbx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140008558
cmp rbx, rdx
je 0x14000857b
cmp r12d, dword [rbx + 0x20]
jge 0x1400085bc
lea rax, [rsp + 0x44]
mov rcx, r14
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, [0x14005590a]
call fcn.140005a60
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, r14
lea r9, [rax + 0x20]
call fcn.140005e20
mov rbx, qword [rsp + 0x50]
mov r8, qword [rbx + 0xa8]
xor r9d, r9d
test r12d, r12d
mov rdx, rsi
mov rcx, r15
sete r9b
call fcn.1400250f0
mov ebx, eax
test eax, eax
jne 0x1400085fa
lea r14, [0x14008332c]
mov rdi, qword [rdi]
cmp rdi, qword [r13]
je 0x14000860f
mov rbx, qword [rsp + 0x58]
xor esi, esi
jmp 0x1400082c0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14000861a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000861a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x2ff60]
xor rcx, rsp
call fcn.140041820
mov rbx, qword [rsp + 0x300c0]
add rsp, 0x30070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret