Function at 0x1400df610
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 [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0xa18], rax
mov dword [rsp + 0x9d0], 0
lea rcx, [rsp + 0x858]
call fcn.140002d50
nop
lea rcx, [rsp + 0x840]
call fcn.140002d50
nop
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x890]
call fcn.1400a8070
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 0x1400df70a
mov dword [rsp + 0x890], 0x114
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400df70a
lea rdx, [0x140213ad0]
mov rcx, qword [rsp + 0xa30]
call fcn.140002090
mov eax, dword [rsp + 0x9d0]
or eax, 1
mov dword [rsp + 0x9d0], eax
lea rcx, [rsp + 0x840]
call fcn.140001470
nop
lea rcx, [rsp + 0x858]
call fcn.140001470
mov rax, qword [rsp + 0xa30]
jmp 0x1400dfa6d
mov eax, dword [rsp + 0x8a0]
mov dword [rsp + 0x9e0], eax
cmp dword [rsp + 0x9e0], 2
je 0x1400df727
jmp 0x1400df7f4
cmp dword [rsp + 0x894], 5
jne 0x1400df74f
cmp dword [rsp + 0x898], 2
jne 0x1400df74f
lea rdx, str.Microsoft_Windows_Server_2003_
lea rcx, [rsp + 0x840]
call fcn.140002060
cmp dword [rsp + 0x894], 5
jne 0x1400df777
cmp dword [rsp + 0x898], 1
jne 0x1400df777
lea rdx, str.Microsoft_Windows_XP
lea rcx, [rsp + 0x840]
call fcn.140002060
cmp dword [rsp + 0x894], 5
jne 0x1400df79f
cmp dword [rsp + 0x898], 0
jne 0x1400df79f
lea rdx, str.Microsoft_Windows_2000
lea rcx, [rsp + 0x840]
call fcn.140002060
cmp dword [rsp + 0x894], 4
ja 0x1400df7bd
lea rdx, str.Microsoft_Windows_NT
lea rcx, [rsp + 0x840]
call fcn.14000f260
lea rcx, [rsp + 0x840]
call fcn.1400019f0
test eax, eax
jne 0x1400df7f2
mov r9d, dword [rsp + 0x898]
mov r8d, dword [rsp + 0x894]
lea rdx, str.Windows__d._d
lea rcx, [rsp + 0x840]
call fcn.140002be0
jmp 0x1400df810
mov r8d, dword [rsp + 0x8a0]
lea rdx, str.PlatformId__u
lea rcx, [rsp + 0x840]
call fcn.140002be0
lea rcx, [rsp + 0x838]
call fcn.140002d50
nop
lea rcx, str.C:WindowsSysWOW64
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400df845
lea rdx, str._x64
lea rcx, [rsp + 0x838]
call fcn.140002060
jmp 0x1400df859
lea rdx, str._x86
lea rcx, [rsp + 0x838]
call fcn.140002060
lea rcx, [rsp + 0x850]
call fcn.140002d50
nop
lea r8, [rsp + 0x840]
lea rdx, [rsp + 0x858]
lea rcx, [rsp + 0x9b8]
call fcn.140006b70
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.140006b70
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.140002d20
nop
lea rcx, [rsp + 0x9c0]
call fcn.140001470
nop
lea rcx, [rsp + 0x9b8]
call fcn.140001470
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.14000d0b0
mov r11, rax
xor eax, eax
mov word [r11], ax
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x30]
call fcn.14000d0b0
mov rdx, rax
add rdx, 2
lea rcx, [rsp + 0x9b0]
call fcn.140002090
nop
lea rcx, [rsp + 0x9b0]
call fcn.140006910
lea rcx, [rsp + 0x848]
call fcn.140002d50
nop
mov edx, 3
lea rcx, [rsp + 0x9c8]
call fcn.1400de920
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.140002be0
nop
lea rcx, [rsp + 0x9c8]
call fcn.140001470
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x850]
call fcn.140005f70
lea rdx, [rsp + 0x850]
mov rcx, qword [rsp + 0xa30]
call fcn.140001440
mov eax, dword [rsp + 0x9d0]
or eax, 1
mov dword [rsp + 0x9d0], eax
lea rcx, [rsp + 0x848]
call fcn.140001470
nop
lea rcx, [rsp + 0x9b0]
call fcn.140001470
nop
lea rcx, [rsp + 0x850]
call fcn.140001470
nop
lea rcx, [rsp + 0x838]
call fcn.140001470
nop
lea rcx, [rsp + 0x840]
call fcn.140001470
nop
lea rcx, [rsp + 0x858]
call fcn.140001470
mov rax, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0xa18]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0xa28
ret