Function at 0x140004a90
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 [0x140117240]
xor rax, rsp
mov qword [rbp + 0x568], rax
mov r14, qword [rbp + 0x5a0]
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x30], r15d
add r14, 0x90
lea r8, str.PersistentStorage.reg
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140006320
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 r12, [0x1400f9a88]
mov qword [rbp - 0x80], r12
lea r13, [0x14006ca70]
mov qword [rbp - 0x78], r13
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x508]
call fcn.14006c7d0
nop
lea rcx, [rbp + 0x508]
call fcn.140008760
nop
lea rcx, [rsp + 0x40]
call fcn.140008760
lea r8, str.Icarus.reg
mov rdx, r14
lea rcx, [rbp + 0x508]
call fcn.140006320
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 0x140004bbc
test al, 0x10
jne 0x140004bbc
mov al, 1
jmp 0x140004bbe
xor al, al
test al, al
je 0x140004f55
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.140007750
or esi, 0xc
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r13
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14006c7d0
nop
lea rcx, [rsp + 0x60]
call fcn.140008760
xorps xmm0, xmm0
movups xmmword [rbp + 0x548], xmm0
call fcn.1400511a0
mov edx, dword [rax + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14004ecf0
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140004c55
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.140006830
mov qword [rbp + 0x2b8], r15
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x548]
call fcn.140005b70
nop
lea rcx, [rbp - 0x80]
call fcn.140008760
lea rax, str.DataFolder
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0xa
mov rdi, qword [rbp + 0x548]
mov qword [rbp + 0x80], rdi
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.140006610
nop
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 7
cmova rcx, qword [rbp + 0x120]
mov qword [rsp + 0x30], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004d20
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.140069bf0
or esi, 0x10
mov dword [rsp + 0x30], esi
lea rcx, [rbp + 0x2c0]
call fcn.140007b60
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.1400b2790
nop
mov qword [rbp - 0x40], rdi
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.140006610
nop
or esi, 0x20
mov dword [rsp + 0x30], esi
lea rax, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rax, qword [rbp + 0x60]
mov qword [rsp + 0x40], rax
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140004de2
mov qword [rsp + 0x48], rbx
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 0x14000507a
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.14006a610
nop
lea rcx, [rbp + 0x2c0]
call fcn.140007b60
nop
mov r8, qword [rbp + 0x78]
cmp r8, 7
jbe 0x140004e79
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.140005ca0
movdqa xmm0, xmmword [0x1400fb140]
movdqa xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r15w
cmp byte [rbp - 0x38], 0
jne 0x140004e9a
mov rcx, r15
mov qword [rbp - 0x40], rcx
jmp 0x140004e9e
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140004eb5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140004eb5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp - 0x40], r15
lea rcx, [rbp - 0x80]
call fcn.140008760
nop
mov r8, qword [rbp + 0x138]
cmp r8, 7
jbe 0x140004ee3
mov rdx, qword [rbp + 0x120]
lea rcx, [rbp + 0x118]
call fcn.140005ca0
movdqa xmm0, xmmword [0x1400fb140]
movdqa xmmword [rbp + 0x130], xmm0
mov word [rbp + 0x120], r15w
cmp byte [rbp + 0x88], 0
jne 0x140004f10
mov rcx, r15
mov qword [rbp + 0x80], rcx
jmp 0x140004f17
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140004f2f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140004f2f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [rbp + 0x550], 0
cmove rdi, r15
test rdi, rdi
je 0x140004f55
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140004f55
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rbp + 0x508]
call fcn.140008760
call fcn.140051e10
mov rsi, rax
cmp qword [rax + 0x18], 7
jbe 0x140004f73
mov rsi, qword [rax]
mov rbx, qword [rax + 0x10]
xor r8d, r8d
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x60]
call fcn.1400080a0
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.1400b20f0
mov rax, qword [str..reg]
mov qword [rbx + rdi], rax
lea r8, [rsp + 0x60]
mov rdx, r14
lea rcx, [rbp + 0x548]
call fcn.140005f40
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], r12
mov qword [rbp + 0x510], r13
lea rax, [rbp + 0x508]
mov qword [rbp + 0x540], rax
lea rdx, [rbp + 0x508]
lea rcx, [rbp - 0x80]
call fcn.14006c7d0
nop
lea rcx, [rbp - 0x80]
call fcn.140008760
nop
lea rcx, [rbp + 0x548]
call fcn.140008760
nop
lea rcx, [rsp + 0x60]
call fcn.140008760
mov rcx, qword [rbp + 0x568]
xor rcx, rsp
call fcn.1400827b0
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.140027550
lea rdx, [0x1401147d8]
lea rcx, [rsp + 0x60]
call fcn.1400850a4
int3