Function at 0x1006ee38
Capabilities:
Get common file path

Disassembly:
push 0x25c
mov eax, 0x1015e77c
call fcn.1012b71c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
call fcn.1012998f
mov ebx, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], eax
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1012db70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1006ee98
xor eax, eax
jmp 0x1006f22c
test ebx, ebx
je 0x1006eeac
call fcn.10051785
test eax, eax
je 0x1006eeac
push str.sysnative
jmp 0x1006eeb1
push str.system32
lea eax, [ebp - 0x21c]
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call esi
push str.ntoskrnl.exe
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1004e040
add esp, 0xc
test eax, eax
je 0x1006ee91
mov eax, dword [ebp - 0x234]
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x254], ecx
movzx eax, ax
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x238]
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x220], ecx
movzx eax, ax
mov dword [ebp - 0x264], eax
xor edi, edi
push str._dsconfig_driverconfig_ats
lea ecx, [ebp - 0x22c]
call fcn.10008878
and dword [ebp - 4], edi
test ebx, ebx
mov eax, str._x64os
jne 0x1006ef46
mov eax, str._x86os
push eax
lea ecx, [ebp - 0x22c]
call fcn.100461c5
push str._configitem
lea ecx, [ebp - 0x22c]
call fcn.10031252
mov byte [ebp - 4], 1
and dword [ebp - 0x228], 0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [ebp - 0x228]
push edx
push dword [ebp - 0x22c]
push eax
call dword [ecx + 0x68]
test eax, eax
js 0x1006f1bf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x1006f1bf
and dword [ebp - 0x230], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
push edx
push eax
call dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 0x268], esi
mov ebx, dword [ebp - 0x220]
cmp esi, dword [ebp - 0x230]
jge 0x1006f1bf
and dword [ebp - 0x220], 0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push esi
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x1006f1dd
cmp dword [ebp - 0x220], 0
je 0x1006f1dd
push str.ntmainver
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
lea eax, [ebp - 0x220]
push eax
call fcn.1001dd67
mov byte [ebp - 4], 6
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 5
call fcn.1004e593
mov byte [ebp - 4], 7
push dword [eax]
call fcn.10136ce4
add esp, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.100078bc
push str.ntsubver
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
lea eax, [ebp - 0x220]
push eax
call fcn.1001dd67
mov byte [ebp - 4], 9
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 5
call fcn.1004e593
mov byte [ebp - 4], 0xa
push dword [eax]
call fcn.10136ce4
add esp, 0x10
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.100078bc
push str.ntbuildnumber
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
lea eax, [ebp - 0x220]
push eax
call fcn.1001dd67
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 5
call fcn.1004e593
mov byte [ebp - 4], 0xd
push dword [eax]
call fcn.10136ce4
add esp, 0x10
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
call fcn.100078bc
push str.maxntrevision
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
lea eax, [ebp - 0x220]
push eax
call fcn.1001dd67
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 5
call fcn.1004e593
mov byte [ebp - 4], 0x10
push dword [eax]
call fcn.10136ce4
add esp, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
call fcn.100078bc
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x254], eax
jne 0x1006f1dd
mov eax, dword [ebp - 0x258]
cmp eax, dword [ebp - 0x25c]
jne 0x1006f1dd
cmp ebx, dword [ebp - 0x260]
jne 0x1006f1dd
mov eax, dword [ebp - 0x264]
cmp eax, dword [ebp - 0x224]
ja 0x1006f1dd
xor edi, edi
inc edi
mov dword [ebp - 0x23c], edi
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1006f1bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x1006f1d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
jmp 0x1006f218
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1006f1f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
mov dword [ebp - 0x268], esi
jmp 0x1006efc8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.100078bc
mov eax, edi
call fcn.1012b669
ret 4