Function at 0x10174f9
Capabilities:
Check os version
Get common file path
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x102e0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x119], bl
mov byte [ebp - 0x11a], bl
mov esi, 0x102e488
push esi
call fcn.01016955
push 0x102e588
call fcn.01016a35
push 0x1001ae8
mov dword [0x102e010], esi
call fcn.01016b2f
mov eax, dword [0x102e440]
or eax, dword [0x102e444]
jne 0x1017661
cmp byte [0x102e434], bl
jne 0x1017600
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101759e
cmp dword [ebp - 0x114], 6
setb al
mov byte [0x102e435], al
test al, al
jne 0x10175f9
push 0x1001564
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
cmp edi, ebx
je 0x10175f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001558
push edi
call esi
mov dword [0x102e438], eax
cmp eax, ebx
je 0x10175f2
push 0x1001548
push edi
call esi
mov dword [section..data], eax
cmp eax, ebx
je 0x10175e8
push 0x1001538
push edi
call esi
mov dword [0x102e43c], eax
cmp eax, ebx
jne 0x10175f9
mov dword [section..data], 0x10160ee
mov byte [0x102e435], 1
mov byte [0x102e434], 1
cmp byte [0x102e435], bl
jne 0x1017624
push 0x102e440
push 0x102e448
push 0x1016097
push 0x1001294
call dword [section..data]
jmp 0x1017661
mov ecx, 0x102e448
push ecx
push ebx
mov eax, ecx
cdq
push ebx
mov dword [0x102e444], edx
lea edx, [ebp - 0x12c]
push edx
push 1
mov dword [0x102e440], eax
mov eax, 0x1001294
push eax
push ecx
push 0x1016025
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101769a
test dword [eax + 0x9c], 0x4000
je 0x101769a
cmp byte [eax + 0x99], 4
jb 0x101769a
push 0x1001590
push 0x11
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010165d0
push dword [ebp - 0x124]
lea ecx, [ebp - 0x148]
push dword [ebp + 8]
call fcn.01016bc2
push dword [ebp - 0x138]
call fcn.01016efe
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x102e478
push ebx
push 0x1001aa8
push dword [ebp - 0x138]
call fcn.01016ebf
mov ecx, 0x102e014
call fcn.010171e1
mov esi, eax
cmp esi, ebx
jl 0x101782c
push 0x102e5b4
push dword [ebp - 0x130]
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
mov edi, 0x80070000
test eax, eax
je 0x1017756
mov esi, eax
jle 0x1017714
and esi, 0xffff
or esi, edi
mov ecx, dword [0x102e010]
cmp ecx, 0x102e010
je 0x1017756
test dword [ecx + 0x9c], 0x4000
je 0x1017756
cmp byte [ecx + 0x99], 1
jb 0x1017756
push eax
push dword [ebp - 0x130]
push 0x1001590
push 0x12
push dword [ecx + 0x94]
push dword [ecx + 0x90]
call fcn.010168e2
test esi, esi
jl 0x101782c
mov ebx, 0x104
push ebx
push 0x102e5c8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x102e5c4], eax
test eax, eax
jne 0x10177c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jle 0x101778c
and esi, 0xffff
or esi, edi
mov ecx, dword [0x102e010]
cmp ecx, 0x102e010
je 0x10177c8
test dword [ecx + 0x9c], 0x4000
je 0x10177c8
cmp byte [ecx + 0x99], 1
jb 0x10177c8
push eax
push 0x1001590
push 0x13
push dword [ecx + 0x94]
push dword [ecx + 0x90]
call fcn.010164b8
test esi, esi
jl 0x101782c
push 0x102e5c8
push ebx
mov edi, 0x102e7d8
push edi
call fcn.0102b905
add esp, 0xc
push 0x1001a88
push ebx
push edi
call fcn.0101735d
mov esi, eax
test esi, esi
jge 0x101785a
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101782c
test dword [eax + 0x9c], 0x4000
je 0x101782c
cmp byte [eax + 0x99], 1
jb 0x101782c
push esi
push 0x1001590
push 0x14
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
cmp dword [0x102e46c], 0
je 0x1017b91
cmp byte [0x102e435], 0
mov al, byte [0x102e470]
je 0x1017b3b
cmp al, 2
jae 0x1017b70
test al, al
jmp 0x1017b6e
push 0x102e5ac
push 0x102e5b4
push 0x1001a74
push 0x1001a58
push edi
push 4
call sub.WUDFPlatform.dll_GetAndInitializePlatformObject
mov esi, eax
test esi, esi
jl 0x101782c
push dword [0x102e5ac]
call fcn.0102c3b1
mov esi, eax
test esi, esi
jl 0x101782c
push dword [0x102e5ac]
call sub.WUDFPlatform.dll_InitializePlatformLibrary
mov esi, eax
test esi, esi
jl 0x101782c
push 0x102e5b0
call sub.WUDFPlatform.dll_WdfGetLpcInterface
test eax, eax
jge 0x10178ed
or eax, 0x10000000
mov esi, eax
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x10178ed
test dword [eax + 0x9c], 0x4000
je 0x10178ed
cmp byte [eax + 0x99], 1
jb 0x10178ed
push esi
push 0x1001590
push 0x15
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
test esi, esi
jl 0x101782c
push dword [0x102e5ac]
mov byte [ebp - 0x11a], 1
push dword [ebp - 0x138]
call fcn.0101745e
cmp dword [0x102e46c], 0
je 0x101797f
cmp byte [0x102e435], 0
mov al, byte [0x102e470]
je 0x101792c
cmp al, 4
jae 0x101795f
test al, al
jmp 0x101795d
cmp al, 4
jae 0x1017934
test al, al
jne 0x101797f
mov ecx, dword [0x102e45c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x101797f
mov ecx, dword [0x102e464]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x102e460]
jne 0x101797f
cmp eax, ecx
jne 0x101797f
push 0x102e5b4
push 0x10012a4
push 0x10012f8
push dword [0x102e444]
push dword [0x102e440]
call fcn.01017047
mov eax, dword [0x102e5c4]
add eax, 0xf
xor ecx, ecx
push 2
pop edx
mov dword [0x102e7d4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102af97
pop ecx
mov dword [0x102e7d0], eax
test eax, eax
jne 0x10179ec
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x10179e2
test byte [eax + 0x9c], 4
je 0x10179e2
cmp byte [eax + 0x99], 1
jb 0x10179e2
push 0xe
push 0x1001590
push 0x16
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
mov esi, 0x8007000e
jmp 0x101782c
push 0x1001a38
push 0x102e5c8
push 0x1001a2c
push dword [0x102e7d4]
push eax
call fcn.010173ff
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x101782c
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jge 0x1017a5d
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x1017a64
test byte [eax + 0x9c], 4
je 0x1017a64
cmp byte [eax + 0x99], 1
jb 0x1017a64
push esi
push 0x1001590
push 0x17
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
jmp 0x1017a64
mov byte [ebp - 0x119], 1
test esi, esi
jl 0x101782c
call fcn.01026f96
mov esi, eax
test esi, esi
jl 0x101782c
call fcn.0101efd9
mov esi, eax
test esi, esi
jl 0x101782c
call fcn.01023be9
mov esi, eax
test esi, esi
jl 0x101782c
lea eax, [ebp - 0x120]
push eax
call fcn.0101cc20
mov esi, eax
test esi, esi
jl 0x101782c
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x148]
push eax
call fcn.0101a14c
mov esi, eax
test esi, esi
jl 0x101782c
cmp dword [0x102e46c], 0
je 0x1017b91
cmp byte [0x102e435], 0
mov al, byte [0x102e470]
je 0x1017aee
cmp al, 4
jae 0x1017b29
test al, al
jmp 0x1017b27
cmp al, 4
jae 0x1017afa
test al, al
jne 0x1017b91
mov ecx, dword [0x102e45c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x1017b91
mov ecx, dword [0x102e464]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x102e460]
jne 0x1017b91
cmp eax, ecx
jne 0x1017b91
push esi
push 0x102e5b4
push 0x10012a4
push 0x1001308
jmp 0x1017b80
cmp al, 2
jae 0x1017b43
test al, al
jne 0x1017b91
mov ecx, dword [0x102e45c]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x1017b91
mov ecx, dword [0x102e464]
mov eax, ecx
xor edx, edx
and eax, 0x80000000
cmp edx, dword [0x102e460]
jne 0x1017b91
cmp eax, ecx
jne 0x1017b91
push esi
push 0x102e5b4
push 0x10012a4
push 0x1001318
push dword [0x102e444]
push dword [0x102e440]
call fcn.01016fac
xor edi, edi
cmp esi, edi
jl 0x1017ba2
mov ecx, dword [ebp - 0x120]
call fcn.010198c5
mov ecx, dword [ebp - 0x120]
cmp ecx, edi
je 0x1017bb3
push 1
call fcn.010170cf
mov ecx, dword [0x102e484]
mov dword [ebp - 0x120], edi
cmp ecx, edi
je 0x1017c20
cmp dword [ecx], edi
je 0x1017c15
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x102e484]
mov ecx, dword [eax + 0x10]
push edi
call fcn.010170f5
test eax, eax
setne al
movzx eax, al
push eax
push 0x1001a14
push edi
push edi
push edi
push 0x1001988
push dword [0x102e5ac]
push 4
call fcn.0102c428
mov eax, dword [0x102e484]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x102e484]
cmp ecx, edi
je 0x1017c20
push 1
call fcn.010171bb
push dword [0x102e7d0]
call fcn.0102afb2
cmp byte [ebp - 0x11a], 0
pop ecx
je 0x1017c3f
call sub.WUDFPlatform.dll_ShutdownPlatformLibrary
call fcn.0102c3d2
cmp dword [0x102e46c], edi
je 0x1017cb0
cmp byte [0x102e435], 0
mov al, byte [0x102e470]
je 0x1017c5d
cmp al, 4
jae 0x1017c90
test al, al
jmp 0x1017c8e
cmp al, 4
jae 0x1017c65
test al, al
jne 0x1017cb0
mov ecx, dword [0x102e45c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x1017cb0
mov ecx, dword [0x102e464]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x102e460]
jne 0x1017cb0
cmp eax, ecx
jne 0x1017cb0
push 0x102e5b4
push 0x10012d4
push 0x1001418
push dword [0x102e444]
push dword [0x102e440]
call fcn.01017047
mov ecx, dword [0x102e5b0]
cmp ecx, edi
je 0x1017cc5
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x102e5b0], edi
mov eax, dword [0x102e5ac]
cmp eax, edi
je 0x1017cda
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x102e5ac], edi
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x1017d13
test dword [eax + 0x9c], 0x4000
je 0x1017d13
cmp byte [eax + 0x99], 4
jb 0x1017d13
push 0x1001590
push 0x18
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010165d0
cmp byte [ebp - 0x119], 0
je 0x1017d22
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, 0x102e014
call fcn.010164e4
cmp byte [0x102e434], 0
je 0x1017d82
mov esi, dword [0x102e440]
mov eax, dword [0x102e444]
mov ecx, esi
or ecx, eax
je 0x1017d82
cmp byte [0x102e435], 0
jne 0x1017d59
push eax
push esi
call dword [0x102e43c]
jmp 0x1017d76
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [esi + 0x20], edi
mov byte [esi + 0x28], 0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [0x102e440], edi
mov dword [0x102e444], edi
call fcn.01016b7d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0102b6d8
leave
ret