Function at 0x1002ed20
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 0x1008b08b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x454
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x45c], esi
push 0x208
lea eax, [ebp - 0x428]
mov dword [ebp - 0x45c], esi
push 0
push eax
call fcn.10065890
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
test eax, eax
jne 0x1002edb8
push eax
movups xmmword [esi], xmm0
push 0x10097c30
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.10003c00
jmp 0x1002ef2b
push 9
push str.drivers_
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
movups xmmword [ebp - 0x440], xmm0
mov dword [ebp - 0x42c], 0
call fcn.10003c00
mov dword [ebp - 4], 0
call fcn.10028d30
lea ecx, [ebp - 0x458]
lea edx, [eax + 0x124]
call fcn.1001ba00
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x1002ee10
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x440]
call fcn.1001d290
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x444]
cmp ecx, 7
jbe 0x1002ee63
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ee59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002efac
push ecx
push edx
call fcn.100635d4
add esp, 8
push 4
push str..sys
lea ecx, [ebp - 0x440]
call fcn.1001d290
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10065890
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
cmova eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
jne 0x1002ef4a
push eax
push 0x10097c30
mov ecx, esi
call fcn.10003c00
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x1002ef2b
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ef21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002efa7
push ecx
push edx
call fcn.100635d4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10063277
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ef53
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003c00
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x1002ef2b
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ef21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ef21
call fcn.1006dc9f
call fcn.1006dc9f
int3