Function at 0x1401733f0
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4e8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x2a0]
call fcn.140173210
nop
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x74], 0
mov rcx, qword [rsp + 0x4f8]
call fcn.14000c690
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140173498
lea rdx, [rsp + 0x2a0]
mov rcx, qword [rsp + 0x4f0]
call fcn.1401732b0
mov eax, dword [rsp + 0x4c]
or eax, 1
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x2a0]
call fcn.14002c840
mov rax, qword [rsp + 0x4f0]
jmp 0x140173ec1
mov rcx, qword [rsp + 0x4f8]
call fcn.14000c690
lea rdx, [rsp + 0x74]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140173d69
mov eax, dword [rsp + 0x58]
mov ecx, eax
call fcn.140222dcc
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x4f8]
call fcn.14000c690
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140173c4a
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x5c], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140318c5c]
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140173741
cmp qword [rsp + 0x38], 0
je 0x14017363c
mov rax, qword [rsp + 0x38]
cmp dword [rax + 8], 0
je 0x14017363c
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xc]
shr rcx, 0x10
and rcx, 0xffff
movzx ecx, cx
mov rdx, qword [rsp + 0x38]
mov edx, dword [rdx + 8]
and rdx, 0xffff
movzx edx, dx
mov r8, qword [rsp + 0x38]
mov r8d, dword [r8 + 8]
shr r8, 0x10
and r8, 0xffff
movzx r8d, r8w
mov dword [rsp + 0x78], r8d
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov r8d, edx
mov eax, dword [rsp + 0x78]
mov edx, eax
lea rcx, [rsp + 0x2a0]
call fcn.140172fe0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x2bc], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x2c0], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
and eax, 1
test eax, eax
je 0x140173609
mov byte [rsp + 0x2b9], 1
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
and eax, 4
test eax, eax
je 0x140173620
mov byte [rsp + 0x2ba], 1
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
and eax, 0x20
test eax, eax
je 0x140173637
mov byte [rsp + 0x2b8], 1
jmp 0x14017373c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x390]
call fcn.1400f1870
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
lea rdx, [0x140318cc0]
lea rcx, [rsp + 0x370]
call fcn.14002b570
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x350]
call fcn.1400c7e70
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x200]
call fcn.140175290
lea rdx, [0x1408c8660]
lea rcx, [rsp + 0x200]
call fcn.140224078
nop
lea rcx, [rsp + 0x350]
call fcn.140015480
lea rcx, [rsp + 0x370]
call fcn.140015480
lea rcx, [rsp + 0x390]
call fcn.140015480
nop
jmp 0x140173841
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x3d0]
call fcn.1400f1870
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf0], rax
lea rdx, [0x140318cd0]
lea rcx, [rsp + 0x3b0]
call fcn.14002b570
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x4b0]
call fcn.1400c7e70
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x218]
call fcn.140175290
lea rdx, [0x1408c8660]
lea rcx, [rsp + 0x218]
call fcn.140224078
nop
lea rcx, [rsp + 0x4b0]
call fcn.140015480
lea rcx, [rsp + 0x3b0]
call fcn.140015480
lea rcx, [rsp + 0x3d0]
call fcn.140015480
nop
mov qword [rsp + 0x80], 0
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x80]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140173c45
mov dword [rsp + 0x48], 0
jmp 0x140173887
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x110], rax
mov ecx, dword [rsp + 0x5c]
xor edx, edx
mov eax, ecx
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
cmp rcx, rax
jae 0x140173c45
lea rcx, [rsp + 0x280]
call fcn.14000a280
nop
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*4 + 2]
mov edx, eax
lea rcx, [rsp + 0x1a0]
call fcn.1400486c0
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*4]
mov edx, eax
lea rcx, [rsp + 0x1b0]
call fcn.1400486c0
lea r9, [rsp + 0x1a0]
lea r8, [rsp + 0x1b0]
lea rdx, str._04x_04x
lea rcx, [rsp + 0x280]
call fcn.14001d950
lea rcx, [rsp + 0x260]
call fcn.14000a280
nop
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x280]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.14001e490
lea r8, [rsp + 0x1c0]
lea rdx, str.StringFileInfo_SFileVersion
lea rcx, [rsp + 0x260]
call fcn.140014cf0
lea rcx, [rsp + 0x260]
call fcn.14000c690
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401739e7
cmp dword [rsp + 0x30], 0
jbe 0x1401739e7
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1401739c6
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x60], eax
jmp 0x1401739ce
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x2c8]
call fcn.140016460
lea rcx, [rsp + 0x260]
call fcn.140016540
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x280]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x1d0]
call fcn.14001e490
lea r8, [rsp + 0x1d0]
lea rdx, str.StringFileInfo_SSpecialBuild
lea rcx, [rsp + 0x260]
call fcn.140014cf0
lea rcx, [rsp + 0x260]
call fcn.14000c690
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140173aa6
cmp dword [rsp + 0x30], 0
jbe 0x140173aa6
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140173a85
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x64], eax
jmp 0x140173a8d
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x2e8]
call fcn.140016460
lea rcx, [rsp + 0x260]
call fcn.140016540
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x280]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.14001e490
lea r8, [rsp + 0x1e0]
lea rdx, str.StringFileInfo_SFileDescription
lea rcx, [rsp + 0x260]
call fcn.140014cf0
lea rcx, [rsp + 0x260]
call fcn.14000c690
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140173b65
cmp dword [rsp + 0x30], 0
jbe 0x140173b65
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140173b44
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x68], eax
jmp 0x140173b4c
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x308]
call fcn.140016460
lea rcx, [rsp + 0x260]
call fcn.140016540
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x280]
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.14001e490
lea r8, [rsp + 0x1f0]
lea rdx, str.StringFileInfo_SProductName
lea rcx, [rsp + 0x260]
call fcn.140014cf0
lea rcx, [rsp + 0x260]
call fcn.14000c690
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140173c25
cmp dword [rsp + 0x30], 0
jbe 0x140173c25
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140173c03
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x6c], eax
jmp 0x140173c0b
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x328]
call fcn.140016460
nop
lea rcx, [rsp + 0x260]
call fcn.14000a800
nop
lea rcx, [rsp + 0x280]
call fcn.14000a800
jmp 0x14017387d
jmp 0x140173d4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x430]
call fcn.1400f1870
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x138], rax
lea rdx, [0x140318e38]
lea rcx, [rsp + 0x410]
call fcn.14002b570
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x3f0]
call fcn.1400c7e70
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x230]
call fcn.140175290
lea rdx, [0x1408c8660]
lea rcx, [rsp + 0x230]
call fcn.140224078
nop
lea rcx, [rsp + 0x3f0]
call fcn.140015480
lea rcx, [rsp + 0x410]
call fcn.140015480
lea rcx, [rsp + 0x430]
call fcn.140015480
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.140222778
jmp 0x140173e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x140173e8c
cmp dword [rsp + 0x70], 0x714
je 0x140173e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x490]
call fcn.1400f1870
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x180], rax
lea rdx, str.Invalid_file:
lea rcx, [rsp + 0x470]
call fcn.14002b570
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x188], rax
mov r8, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x450]
call fcn.1400c7e70
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x248]
call fcn.140175290
lea rdx, [0x1408c8660]
lea rcx, [rsp + 0x248]
call fcn.140224078
nop
lea rcx, [rsp + 0x450]
call fcn.140015480
lea rcx, [rsp + 0x470]
call fcn.140015480
lea rcx, [rsp + 0x490]
call fcn.140015480
nop
lea rdx, [rsp + 0x2a0]
mov rcx, qword [rsp + 0x4f0]
call fcn.1401732b0
mov eax, dword [rsp + 0x4c]
or eax, 1
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x2a0]
call fcn.14002c840
mov rax, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x4e8
ret