Function at 0x1002ed40
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 0x1008e00b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x454
mov eax, dword [0x100ab080]
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.10068810
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 0x1002edd8
push eax
movups xmmword [esi], xmm0
push 0x1009ac58
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.10003c90
jmp 0x1002ef4b
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.10003c90
mov dword [ebp - 4], 0
call fcn.10028f00
lea ecx, [ebp - 0x458]
lea edx, [eax + 0x124]
call fcn.1001bc10
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x1002ee30
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x440]
call fcn.1001d490
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x444]
cmp ecx, 7
jbe 0x1002ee83
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ee79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002efcc
push ecx
push edx
call fcn.100666c9
add esp, 8
push 4
push str..sys
lea ecx, [ebp - 0x440]
call fcn.1001d490
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10068810
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 0x1002ef6a
push eax
push 0x1009ac58
mov ecx, esi
call fcn.10003c90
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x1002ef4b
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ef41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002efc7
push ecx
push edx
call fcn.100666c9
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.1006636c
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 0x1002ef73
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003c90
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x1002ef4b
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ef41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ef41
call fcn.10070c0f
call fcn.10070c0f
int3