Function at 0x1400dfc30
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 [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0xa18], rax
mov dword [rsp + 0x9d0], 0
lea rcx, [rsp + 0x858]
call fcn.140002d10
nop
lea rcx, [rsp + 0x840]
call fcn.140002d10
nop
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x890]
call fcn.1400a9850
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 0x1400dfd2a
mov dword [rsp + 0x890], 0x114
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400dfd2a
lea rdx, [0x140229a70]
mov rcx, qword [rsp + 0xa30]
call fcn.140002050
mov eax, dword [rsp + 0x9d0]
or eax, 1
mov dword [rsp + 0x9d0], eax
lea rcx, [rsp + 0x840]
call fcn.140007060
nop
lea rcx, [rsp + 0x858]
call fcn.140007060
mov rax, qword [rsp + 0xa30]
jmp 0x1400e008d
mov eax, dword [rsp + 0x8a0]
mov dword [rsp + 0x9e0], eax
cmp dword [rsp + 0x9e0], 2
je 0x1400dfd47
jmp 0x1400dfe14
cmp dword [rsp + 0x894], 5
jne 0x1400dfd6f
cmp dword [rsp + 0x898], 2
jne 0x1400dfd6f
lea rdx, str.Microsoft_Windows_Server_2003_
lea rcx, [rsp + 0x840]
call fcn.140002020
cmp dword [rsp + 0x894], 5
jne 0x1400dfd97
cmp dword [rsp + 0x898], 1
jne 0x1400dfd97
lea rdx, str.Microsoft_Windows_XP
lea rcx, [rsp + 0x840]
call fcn.140002020
cmp dword [rsp + 0x894], 5
jne 0x1400dfdbf
cmp dword [rsp + 0x898], 0
jne 0x1400dfdbf
lea rdx, str.Microsoft_Windows_2000
lea rcx, [rsp + 0x840]
call fcn.140002020
cmp dword [rsp + 0x894], 4
ja 0x1400dfddd
lea rdx, str.Microsoft_Windows_NT
lea rcx, [rsp + 0x840]
call fcn.14000d900
lea rcx, [rsp + 0x840]
call fcn.1400019a0
test eax, eax
jne 0x1400dfe12
mov r9d, dword [rsp + 0x898]
mov r8d, dword [rsp + 0x894]
lea rdx, str.Windows__d._d
lea rcx, [rsp + 0x840]
call fcn.140002ba0
jmp 0x1400dfe30
mov r8d, dword [rsp + 0x8a0]
lea rdx, str.PlatformId__u
lea rcx, [rsp + 0x840]
call fcn.140002ba0
lea rcx, [rsp + 0x838]
call fcn.140002d10
nop
lea rcx, str.C:WindowsSysWOW64
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400dfe65
lea rdx, str._x64
lea rcx, [rsp + 0x838]
call fcn.140002020
jmp 0x1400dfe79
lea rdx, str._x86
lea rcx, [rsp + 0x838]
call fcn.140002020
lea rcx, [rsp + 0x850]
call fcn.140002d10
nop
lea r8, [rsp + 0x840]
lea rdx, [rsp + 0x858]
lea rcx, [rsp + 0x9b8]
call fcn.140006c50
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.140006c50
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.140002ce0
nop
lea rcx, [rsp + 0x9c0]
call fcn.140007060
nop
lea rcx, [rsp + 0x9b8]
call fcn.140007060
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.14000b150
mov r11, rax
xor eax, eax
mov word [r11], ax
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x30]
call fcn.14000b150
mov rdx, rax
add rdx, 2
lea rcx, [rsp + 0x9b0]
call fcn.140002050
nop
lea rcx, [rsp + 0x9b0]
call fcn.1400069f0
lea rcx, [rsp + 0x848]
call fcn.140002d10
nop
mov edx, 3
lea rcx, [rsp + 0x9c8]
call fcn.1400def40
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.140002ba0
nop
lea rcx, [rsp + 0x9c8]
call fcn.140007060
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x850]
call fcn.140006050
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.140007060
nop
lea rcx, [rsp + 0x9b0]
call fcn.140007060
nop
lea rcx, [rsp + 0x850]
call fcn.140007060
nop
lea rcx, [rsp + 0x838]
call fcn.140007060
nop
lea rcx, [rsp + 0x840]
call fcn.140007060
nop
lea rcx, [rsp + 0x858]
call fcn.140007060
mov rax, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0xa18]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0xa28
ret