Function at 0x1400deb80
Capabilities:
Check if file exists
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa28
mov qword [rsp + 0x9d8], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0xa18], rax
mov dword [rsp + 0x9d0], 0
lea rcx, [rsp + 0x858]
call fcn.140002de0
nop
lea rcx, [rsp + 0x840]
call fcn.140002de0
nop
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x890]
call fcn.1400a87c0
mov dword [rsp + 0x890], 0x11c
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x830], eax
cmp dword [rsp + 0x830], 0
jne 0x1400dec7a
mov dword [rsp + 0x890], 0x114
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400dec7a
lea rdx, [0x140219a88]
mov rcx, qword [rsp + 0xa30]
call fcn.140002100
mov eax, dword [rsp + 0x9d0]
or eax, 1
mov dword [rsp + 0x9d0], eax
lea rcx, [rsp + 0x840]
call fcn.140001490
nop
lea rcx, [rsp + 0x858]
call fcn.140001490
mov rax, qword [rsp + 0xa30]
jmp 0x1400defdd
mov eax, dword [rsp + 0x8a0]
mov dword [rsp + 0x9e0], eax
cmp dword [rsp + 0x9e0], 2
je 0x1400dec97
jmp 0x1400ded64
cmp dword [rsp + 0x894], 5
jne 0x1400decbf
cmp dword [rsp + 0x898], 2
jne 0x1400decbf
lea rdx, str.Microsoft_Windows_Server_2003_
lea rcx, [rsp + 0x840]
call fcn.1400020d0
cmp dword [rsp + 0x894], 5
jne 0x1400dece7
cmp dword [rsp + 0x898], 1
jne 0x1400dece7
lea rdx, str.Microsoft_Windows_XP
lea rcx, [rsp + 0x840]
call fcn.1400020d0
cmp dword [rsp + 0x894], 5
jne 0x1400ded0f
cmp dword [rsp + 0x898], 0
jne 0x1400ded0f
lea rdx, str.Microsoft_Windows_2000
lea rcx, [rsp + 0x840]
call fcn.1400020d0
cmp dword [rsp + 0x894], 4
ja 0x1400ded2d
lea rdx, str.Microsoft_Windows_NT
lea rcx, [rsp + 0x840]
call fcn.14000cb30
lea rcx, [rsp + 0x840]
call fcn.140001a40
test eax, eax
jne 0x1400ded62
mov r9d, dword [rsp + 0x898]
mov r8d, dword [rsp + 0x894]
lea rdx, str.Windows__d._d
lea rcx, [rsp + 0x840]
call fcn.140002c70
jmp 0x1400ded80
mov r8d, dword [rsp + 0x8a0]
lea rdx, str.PlatformId__u
lea rcx, [rsp + 0x840]
call fcn.140002c70
lea rcx, [rsp + 0x838]
call fcn.140002de0
nop
lea rcx, str.C:WindowsSysWOW64
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400dedb5
lea rdx, str._x64
lea rcx, [rsp + 0x838]
call fcn.1400020d0
jmp 0x1400dedc9
lea rdx, str._x86
lea rcx, [rsp + 0x838]
call fcn.1400020d0
lea rcx, [rsp + 0x850]
call fcn.140002de0
nop
lea r8, [rsp + 0x840]
lea rdx, [rsp + 0x858]
lea rcx, [rsp + 0x9b8]
call fcn.140006bd0
mov qword [rsp + 0x9e8], rax
mov rax, qword [rsp + 0x9e8]
mov qword [rsp + 0x9f0], rax
lea r8, [rsp + 0x838]
mov rdx, qword [rsp + 0x9f0]
lea rcx, [rsp + 0x9c0]
call fcn.140006bd0
mov qword [rsp + 0x9f8], rax
mov rax, qword [rsp + 0x9f8]
mov qword [rsp + 0xa00], rax
mov rdx, qword [rsp + 0xa00]
lea rcx, [rsp + 0x850]
call fcn.140002db0
nop
lea rcx, [rsp + 0x9c0]
call fcn.140001490
nop
lea rcx, [rsp + 0x9b8]
call fcn.140001490
lea rcx, [rsp + 0x860]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, 0x400
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x2e
lea rcx, [rsp + 0x30]
call fcn.140001460
mov r11, rax
xor eax, eax
mov word [r11], ax
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x30]
call fcn.140001460
mov rdx, rax
add rdx, 2
lea rcx, [rsp + 0x9b0]
call fcn.140002100
nop
lea rcx, [rsp + 0x9b0]
call fcn.140006970
lea rcx, [rsp + 0x848]
call fcn.140002de0
nop
mov edx, 3
lea rcx, [rsp + 0x9c8]
call fcn.1400dde90
mov qword [rsp + 0xa08], rax
mov rax, qword [rsp + 0xa08]
mov qword [rsp + 0xa10], rax
mov r9, qword [rsp + 0xa10]
mov r9, qword [r9]
mov r8d, dword [rsp + 0x864]
lea rdx, str.__PageSize__d___s
lea rcx, [rsp + 0x848]
call fcn.140002c70
nop
lea rcx, [rsp + 0x9c8]
call fcn.140001490
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x850]
call fcn.1400060a0
lea rdx, [rsp + 0x850]
mov rcx, qword [rsp + 0xa30]
call fcn.140001430
mov eax, dword [rsp + 0x9d0]
or eax, 1
mov dword [rsp + 0x9d0], eax
lea rcx, [rsp + 0x848]
call fcn.140001490
nop
lea rcx, [rsp + 0x9b0]
call fcn.140001490
nop
lea rcx, [rsp + 0x850]
call fcn.140001490
nop
lea rcx, [rsp + 0x838]
call fcn.140001490
nop
lea rcx, [rsp + 0x840]
call fcn.140001490
nop
lea rcx, [rsp + 0x858]
call fcn.140001490
mov rax, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0xa18]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0xa28
ret