Function at 0x10017a40
Capabilities:
Check if file exists
Get file attributes
Get file version info
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e3f2c
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0xa98]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
test esi, esi
je 0x10017da4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10017da4
test al, 0x10
jne 0x10017da4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x10017da4
push ebx
mov dword [esp + 0x24], 0
call fcn.101875f8
add esp, 4
mov dword [esp + 0x14], eax
push eax
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x10017d95
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0
push eax
push 0x102285e4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10017d95
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0x94], ax
lea eax, [esp + 0x96]
push eax
call fcn.101a01b0
mov ecx, dword [esp + 0x28]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x1022aa68
push 0xffffffffffffffff
lea eax, [esp + 0xb0]
push 0x100
push eax
call fcn.101a197d
add esp, 0x2c
cmp word [esp + 0x8c], 0
jne 0x10017b85
xor ecx, ecx
jmp 0x10017b9f
lea ecx, [esp + 0x8c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017b90
sub ecx, edx
sar ecx, 1
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x8c]
push ecx
push eax
mov ecx, ebx
call fcn.10003c10
cmp edi, ebx
je 0x10017bc3
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.100040d0
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x10017d8d
cmp dword [esp + 0x10], 4
jb 0x10017d8d
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x294], ax
lea eax, [esp + 0x296]
push eax
call fcn.101a01b0
mov ecx, dword [esp + 0x24]
push str.ProductVersion
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [esp + 0x2ac]
push 0x400
push eax
call fcn.101a197d
add esp, 0x28
mov dword [esp + 0x14], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x294]
push eax
push esi
call ebx
test eax, eax
je 0x10017d8d
push dword [esp + 0x14]
mov ecx, edi
call fcn.100032d0
push 0x1022a5e4
lea ecx, [esp + 0x60]
call fcn.100031d0
push 0x1022aad8
lea ecx, [esp + 0x30]
mov dword [esp + 0xaa4], 0
call fcn.100031d0
lea eax, [esp + 0x5c]
mov byte [esp + 0xaa0], 1
push eax
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.10013e00
add esp, 4
cmp dword [esp + 0x40], 8
jb 0x10017cd6
push dword [esp + 0x2c]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0xaa0], 0xffffffff
cmp dword [esp + 0x70], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x10017d0b
push dword [esp + 0x5c]
call fcn.101a02f0
add esp, 4
push 0x102285f0
lea ecx, [esp + 0x78]
call fcn.100031d0
push 0x1022aadc
lea ecx, [esp + 0x48]
mov dword [esp + 0xaa4], 2
call fcn.100031d0
lea eax, [esp + 0x74]
mov byte [esp + 0xaa0], 3
push eax
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.10013e00
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x10017d60
push dword [esp + 0x44]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
cmp dword [esp + 0x88], 8
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
jb 0x10017d8d
push dword [esp + 0x74]
call fcn.101a02f0
add esp, 4
mov dword [esp + 0x20], 1
push esi
call fcn.101a1ad1
mov eax, dword [esp + 0x24]
add esp, 4
jmp 0x10017da6
xor eax, eax
mov ecx, dword [esp + 0xa98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret