Function at 0x1005cd80
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101edcc9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x304
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 1
push 0x20c
push eax
lea eax, [ebp - 0x228]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1005d23d
xor eax, eax
lea ecx, [ebp - 0x228]
mov word [ebp - 0x1e], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ce60
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.10005390
push 7
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x29c]
push str.drivers
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
call fcn.10005390
mov byte [ebp - 4], 2
lea eax, [ebp - 0x29c]
push eax
lea edx, [ebp - 0x274]
lea ecx, [ebp - 0x314]
call fcn.100e17c0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x25c]
cmp eax, esi
je 0x1005cf25
mov ecx, eax
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x25c], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x24c], xmm0
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x314]
call fcn.10005300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call fcn.10005300
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
movq qword [ebp - 0x244], xmm0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov byte [ebp - 4], 4
xor eax, eax
push 0xb
mov dword [ebp - 0x2a4], 0
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 0
push str.ysfwdrv.sys
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], ax
call fcn.10005390
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x244]
call fcn.100083e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.10005300
push 0xc
xor eax, eax
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
lea ecx, [ebp - 0x2cc]
push str.ysdefmon.sys
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
call fcn.10005390
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x244]
call fcn.100083e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2cc]
call fcn.10005300
push 0xc
xor eax, eax
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
lea ecx, [ebp - 0x2e4]
push str.ysnetmgr.sys
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 7
mov word [ebp - 0x2e4], ax
call fcn.10005390
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x244]
call fcn.100083e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e4]
call fcn.10005300
push 0xc
xor eax, eax
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
lea ecx, [ebp - 0x2fc]
push str.yssysflt.sys
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 7
mov word [ebp - 0x2fc], ax
call fcn.10005390
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x244]
call fcn.100083e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2fc]
call fcn.10005300
xorps xmm0, xmm0
lea ecx, [ebp - 0x238]
movups xmmword [ebp - 0x238], xmm0
call fcn.10061c60
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x1005d14f
cmp dword [ebp - 0x22c], 0
jne 0x1005d14f
lea ecx, [ebp - 0x22c]
push ecx
call eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x27c], 0
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x278], 0
push eax
lea edx, [ebp - 0x278]
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x280], 0
call fcn.10062850
add esp, 8
test al, al
je 0x1005d1bc
push dword [ebp - 0x278]
lea eax, [ebp - 0x25c]
push dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.1005df50
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1005d1ce
push dword [ebp - 0x22c]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1005d1e4
push dword [ebp - 0x22c]
call eax
mov eax, dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x1005d20a
push eax
call esi
mov ecx, dword [ebp - 0x238]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1005d22e
push eax
call esi
mov ecx, dword [ebp - 0x238]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.10008a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.10005300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.10005300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret