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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rbp + 0x568], rax
mov r14, qword [rbp + 0x5a0]
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x30], r15d
add r14, 0x90
lea r8, str.PersistentStorage.reg
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1400061b0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x508], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x518], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x508], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x518], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea r13, [0x1400f9600]
mov qword [rbp - 0x80], r13
lea rbx, [0x14006d7f0]
mov qword [rbp - 0x78], rbx
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x508]
call fcn.14006d550
nop
lea rcx, [rbp + 0x508]
call fcn.140008480
nop
lea rcx, [rsp + 0x40]
call fcn.140008480
lea r8, str.Icarus.reg
mov rdx, r14
lea rcx, [rbp + 0x508]
call fcn.1400061b0
nop
lea rcx, [rbp + 0x508]
cmp qword [rbp + 0x520], 7
cmova rcx, qword [rbp + 0x508]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004a1c
test al, 0x10
jne 0x140004a1c
mov al, 1
jmp 0x140004a1e
xor al, al
mov r12, 0xffffffffffffffff
test al, al
je 0x140004db8
lea rdx, [rbp + 0x508]
cmp qword [rbp + 0x520], 7
cmova rdx, qword [rbp + 0x508]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov r8, qword [rbp + 0x518]
lea rcx, [rsp + 0x60]
call fcn.1400075e0
or edi, 0xc
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], rbx
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14006d550
nop
lea rcx, [rsp + 0x60]
call fcn.140008480
xorps xmm0, xmm0
movups xmmword [rbp + 0x548], xmm0
call fcn.140051050
mov edx, dword [rax]
lea rcx, [rbp - 0x80]
call fcn.14004ec10
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140004abb
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x80], 0xffffffff80000002
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x88]
call fcn.1400066c0
mov qword [rbp + 0x2b8], r15
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x548]
call fcn.140005a00
nop
lea rcx, [rbp - 0x80]
call fcn.140008480
lea rax, str.DataFolder
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0xa
mov rbx, qword [rbp + 0x548]
mov qword [rbp + 0x80], rbx
mov byte [rbp + 0x88], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x90]
call fcn.1400064a0
nop
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 7
cmova rcx, qword [rbp + 0x120]
mov qword [rsp + 0x30], rcx
mov rax, r12
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004b80
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x2c0], rax
mov byte [rbp + 0x2c8], 0
mov byte [rbp + 0x500], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp - 0x80]
call fcn.14006afe0
or edi, 0x10
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x2c0]
call fcn.140007880
nop
lea rax, str.OverrideDataFolder
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x12
xor edx, edx
mov r8d, 0xc0
lea rcx, [rbp - 0x40]
call fcn.1400b1de0
nop
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], 0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400064a0
nop
or edi, 0x20
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rcx, qword [rbp + 0x60]
mov qword [rsp + 0x40], rcx
mov rax, r12
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004c45
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x2c0], rax
mov byte [rbp + 0x2c8], 0
mov byte [rbp + 0x500], 0
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r8, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
lea r9, [rax*2 + 2]
mov eax, r9d
cmp rax, r9
jne 0x140004eeb
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x2c0]
call fcn.14006b960
nop
lea rcx, [rbp + 0x2c0]
call fcn.140007880
nop
mov r8, qword [rbp + 0x78]
cmp r8, 7
jbe 0x140004cdc
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.140005b30
movdqa xmm0, xmmword [0x1400fab10]
movdqa xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r15w
cmp byte [rbp - 0x38], 0
jne 0x140004cfd
mov rcx, r15
mov qword [rbp - 0x40], rcx
jmp 0x140004d01
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140004d18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140004d18
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp - 0x40], r15
lea rcx, [rbp - 0x80]
call fcn.140008480
nop
mov r8, qword [rbp + 0x138]
cmp r8, 7
jbe 0x140004d46
mov rdx, qword [rbp + 0x120]
lea rcx, [rbp + 0x118]
call fcn.140005b30
movdqa xmm0, xmmword [0x1400fab10]
movdqa xmmword [rbp + 0x130], xmm0
mov word [rbp + 0x120], r15w
cmp byte [rbp + 0x88], 0
jne 0x140004d73
mov rcx, r15
mov qword [rbp + 0x80], rcx
jmp 0x140004d7a
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140004d92
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140004d92
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [rbp + 0x550], 0
cmove rbx, r15
test rbx, rbx
je 0x140004db8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140004db8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rbp + 0x508]
call fcn.140008480
call fcn.140051d10
mov rsi, rax
cmp qword [rax + 0x18], 7
jbe 0x140004dd6
mov rsi, qword [rax]
mov rbx, qword [rax + 0x10]
xor r8d, r8d
mov rdx, rbx
add rdx, 4
cmovb rdx, r12
lea rcx, [rsp + 0x60]
call fcn.140007dc0
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdi, qword [rsp + 0x60]
lea rbx, [rsi + rbx*2]
sub rbx, rsi
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400b15c0
mov rax, qword [str..reg]
mov qword [rbx + rdi], rax
lea r8, [rsp + 0x60]
mov rdx, r14
lea rcx, [rbp + 0x548]
call fcn.140005dd0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov qword [rbp + 0x508], r13
lea rax, [0x14006d7f0]
mov qword [rbp + 0x510], rax
lea rax, [rbp + 0x508]
mov qword [rbp + 0x540], rax
lea rdx, [rbp + 0x508]
lea rcx, [rbp - 0x80]
call fcn.14006d550
nop
lea rcx, [rbp - 0x80]
call fcn.140008480
nop
lea rcx, [rbp + 0x548]
call fcn.140008480
nop
lea rcx, [rsp + 0x60]
call fcn.140008480
mov rcx, qword [rbp + 0x568]
xor rcx, rsp
call fcn.140081ef0
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
call fcn.1400275a0
lea rdx, [0x140114598]
lea rcx, [rsp + 0x60]
call fcn.140084768
int3