Function at 0x14000db30
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x368]
sub rsp, 0x450
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003d880]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov r13, rcx
lea rcx, [0x14003e798]
mov rax, qword [0x14003e798]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r9, str.mobo.genie
mov r8, qword [r13 + 8]
lea rdx, [0x140034d90]
lea rcx, [rsp + 0x20]
call fcn.14000cb70
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000dbdc
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14000dbd2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 1
jmp 0x14000de0b
lea rcx, [0x14003e798]
mov rax, qword [0x14003e798]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x28], rdi
test rbx, rbx
je 0x14000dc25
test rbx, 0xffffffffffff0000
jne 0x14000dc25
movzx ebx, bx
mov ecx, ebx
call fcn.140008320
test rax, rax
je 0x14000dc37
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000c1b0
jmp 0x14000dc32
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000b310
mov rdi, qword [rsp + 0x28]
lea rdx, [0x140034ff0]
mov rcx, rdi
call fcn.1400181bc
mov rsi, rax
lea rdx, [rdi - 0x18]
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000dc67
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
test rsi, rsi
jne 0x14000dc93
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14000dc89
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 2
jmp 0x14000de0b
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x41]
call fcn.14001b8e0
mov r9, rsi
mov edx, 1
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call fcn.1400184a8
mov rbx, rax
mov rcx, rsi
call fcn.140017c4c
xor esi, esi
mov ecx, esi
mov eax, esi
movsxd rdx, ebx
test ebx, ebx
jle 0x14000dcff
nop word [rax + rax]
cmp byte [rsp + rax + 0x40], 0xa
je 0x14000dcf3
inc ecx
inc rax
cmp rax, rdx
jl 0x14000dce0
jmp 0x14000dcff
test ecx, ecx
je 0x14000dcff
movsxd rax, ecx
mov byte [rsp + rax + 0x40], sil
lea rcx, [0x14003e798]
mov rax, qword [0x14003e798]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
test rax, 0xffffffffffff0000
jne 0x14000dd4e
movzx r12d, cx
mov ecx, r12d
call fcn.140008320
test rax, rax
je 0x14000dd62
mov r8d, r12d
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000c2f0
jmp 0x14000dd5d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000d5f0
mov rbx, qword [rsp + 0x30]
lea rcx, [r13 + 0x10]
mov r9, rbx
mov r8, qword [r13 + 8]
lea rdx, [0x140034d90]
call fcn.14000cb70
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000dd94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov rbx, rax
lea rdx, str..exe
mov rcx, rax
call fcn.140027714
test eax, eax
jne 0x14000ddba
lea esi, [rax + 4]
jmp 0x14000ddeb
lea rdx, str..msi
mov rcx, rbx
call fcn.140027714
test eax, eax
jne 0x14000ddd2
lea esi, [rax + 5]
jmp 0x14000ddeb
lea rdx, str..inf
mov rcx, rbx
call fcn.140027714
mov ecx, 3
test eax, eax
cmove esi, ecx
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14000de09
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140014a20
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret