Function at 0x1400df680
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 [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0xa18], rax
mov dword [rsp + 0x9d0], 0
lea rcx, [rsp + 0x858]
call fcn.140002db0
nop
lea rcx, [rsp + 0x840]
call fcn.140002db0
nop
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x890]
call fcn.1400a8080
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 0x1400df77a
mov dword [rsp + 0x890], 0x114
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400df77a
lea rdx, [0x140212ad0]
mov rcx, qword [rsp + 0xa30]
call fcn.1400020d0
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 0x1400dfadd
mov eax, dword [rsp + 0x8a0]
mov dword [rsp + 0x9e0], eax
cmp dword [rsp + 0x9e0], 2
je 0x1400df797
jmp 0x1400df864
cmp dword [rsp + 0x894], 5
jne 0x1400df7bf
cmp dword [rsp + 0x898], 2
jne 0x1400df7bf
lea rdx, str.Microsoft_Windows_Server_2003_
lea rcx, [rsp + 0x840]
call fcn.1400020a0
cmp dword [rsp + 0x894], 5
jne 0x1400df7e7
cmp dword [rsp + 0x898], 1
jne 0x1400df7e7
lea rdx, str.Microsoft_Windows_XP
lea rcx, [rsp + 0x840]
call fcn.1400020a0
cmp dword [rsp + 0x894], 5
jne 0x1400df80f
cmp dword [rsp + 0x898], 0
jne 0x1400df80f
lea rdx, str.Microsoft_Windows_2000
lea rcx, [rsp + 0x840]
call fcn.1400020a0
cmp dword [rsp + 0x894], 4
ja 0x1400df82d
lea rdx, str.Microsoft_Windows_NT
lea rcx, [rsp + 0x840]
call fcn.14000e950
lea rcx, [rsp + 0x840]
call fcn.140001a40
test eax, eax
jne 0x1400df862
mov r9d, dword [rsp + 0x898]
mov r8d, dword [rsp + 0x894]
lea rdx, str.Windows__d._d
lea rcx, [rsp + 0x840]
call fcn.140002c40
jmp 0x1400df880
mov r8d, dword [rsp + 0x8a0]
lea rdx, str.PlatformId__u
lea rcx, [rsp + 0x840]
call fcn.140002c40
lea rcx, [rsp + 0x838]
call fcn.140002db0
nop
lea rcx, str.C:WindowsSysWOW64
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400df8b5
lea rdx, str._x64
lea rcx, [rsp + 0x838]
call fcn.1400020a0
jmp 0x1400df8c9
lea rdx, str._x86
lea rcx, [rsp + 0x838]
call fcn.1400020a0
lea rcx, [rsp + 0x850]
call fcn.140002db0
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.140002d80
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.1400020d0
nop
lea rcx, [rsp + 0x9b0]
call fcn.140006970
lea rcx, [rsp + 0x848]
call fcn.140002db0
nop
mov edx, 3
lea rcx, [rsp + 0x9c8]
call fcn.1400de990
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.140002c40
nop
lea rcx, [rsp + 0x9c8]
call fcn.140001490
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x850]
call fcn.140005fd0
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.1400a8050
add rsp, 0xa28
ret