Function at 0x1400584a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor edi, edi
mov qword [rsp + 0x48], rdi
mov r15d, edi
mov r14d, edi
test ecx, ecx
jne 0x140058609
mov ecx, 0x42ea
call fcn.140057150
test eax, eax
je 0x1400585d5
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
call fcn.1400725e0
lea rcx, [rsp + 0x70]
call fcn.1400568d0
cmp di, word [rsp + 0x70]
je 0x1400585d5
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400585d5
test al, 0x10
je 0x1400585d5
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x140058542
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140058609
lea rcx, [rbx - 1]
mov edx, 0x7ffffffe
cmp rcx, rdx
ja 0x1400585c0
sub rdx, rbx
lea r8, [rsp + 0x70]
sub r8, rax
mov rcx, rax
lea rax, [rdx + rbx]
test rax, rax
je 0x1400585a5
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400585a5
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140058585
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14005860b
test rbx, rbx
je 0x1400585c8
mov word [rax], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14005860b
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x50], 0x20
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x1770
call fcn.140057150
test eax, eax
jne 0x140058631
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x1400d0940]
test rax, rax
jne 0x140058657
xor edx, edx
lea rcx, [0x1400a5f70]
call fcn.140057380
mov qword [0x1400d0940], rax
test rax, rax
je 0x140058609
cmp qword [0x1400d0968], rdi
jne 0x140058683
lea rdx, [0x1400a5fd8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0968], rax
test rax, rax
je 0x140058609
mov rax, qword [0x1400d0940]
cmp qword [0x1400d0978], rdi
jne 0x1400586b3
lea rdx, [0x1400a5ff8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0978], rax
test rax, rax
je 0x140058609
mov rax, qword [0x1400d0940]
cmp qword [0x1400d0970], rdi
jne 0x1400586dc
lea rdx, [0x1400a5fb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0970], rax
test rax, rax
je 0x140058609
lea r8, [rsp + 0x50]
xor ecx, ecx
lea rdx, [rsp + 0x48]
call fcn.140056580
test eax, eax
je 0x140058609
mov dword [rsp + 0x38], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x2c8], r12
lea r8, [0x1400a5b88]
mov r12, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov rcx, r12
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
call qword [0x1400d0968]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400588d9
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400588d9
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov dword [rsp + 0x38], edi
lea r8, [0x1400a5b88]
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [0x1400d0968]
test eax, eax
je 0x1400588d9
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
mov rcx, r15
call qword [0x1400d0978]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400588d9
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400588d9
mov ecx, dword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov rcx, r15
call qword [0x1400d0978]
test eax, eax
je 0x1400588d9
mov edx, 0x5c
mov rcx, r14
call fcn.140072988
lea rsi, [rax + 2]
test rax, rax
jne 0x140058821
mov rsi, r14
sub rsi, r14
sar rsi, 1
sub rsi, 1
js 0x1400588d9
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [r14 + rbx*2], di
jne 0x140058840
cmp rsi, rbx
mov ecx, 0x40
cmovb rbx, rsi
inc rbx
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rax
test rax, rax
je 0x1400588d9
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x1400588c1
cmp rsi, rdx
ja 0x1400588c6
sub rsi, rbx
mov rdx, r14
sub rdx, r8
mov rcx, r8
nop word [rax + rax]
lea rax, [rsi + rbx]
test rax, rax
je 0x1400588af
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400588af
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140058890
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
jne 0x1400588d6
jmp 0x1400588ca
test rbx, rbx
je 0x1400588ca
mov word [r8], di
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, rdi
mov rdi, r8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x1400588f9
mov rcx, r12
call qword [0x1400d0970]
mov r12, qword [rsp + 0x2c8]
test rdi, rdi
je 0x14005890e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x14005860b