Function at 0x10001461
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x528]
sub esp, 0x5a8
mov eax, dword [0x10113a30]
xor eax, ebp
mov dword [ebp + 0x524], eax
mov eax, dword [ebp + 0x534]
push esi
mov esi, dword [ebp + 0x530]
push edi
push 0xffffffffffffff9d
pop edi
push 0x100cdb5f
push esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x60], edi
call fcn.1008eb30
test eax, eax
pop ecx
pop ecx
jne 0x100014ab
mov eax, edi
jmp 0x1000175c
push 3
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.1008ea00
add esp, 0xc
mov byte [ebp - 0x71], 0
mov al, byte [esi]
inc esi
cmp al, 0x5c
jne 0x100014be
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.10009e6a
cmp dword [ebp - 0x68], 0xb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp + 0x3e4]
jl 0x100014ec
push str.SYSTEMCurrentControlSetEnum_
jmp 0x100014f1
push str.Enum_
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x3e4]
push eax
call esi
and dword [ebp - 0x70], 0
lea eax, [ebp + 0x1a4]
push eax
push 0
lea eax, [ebp + 0x3e4]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call fcn.10008c95
add esp, 0x10
cmp eax, 1
jne 0x1000173d
inc dword [ebp - 0x70]
lea eax, [ebp + 0x1a4]
push eax
call fcn.1008e991
push dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
push eax
call fcn.1008e0f0
add esp, 0xc
test eax, eax
jbe 0x10001639
lea eax, [ebp + 0x3e4]
push eax
lea eax, [ebp + 0x2e4]
push eax
call ebx
push 0x100cdb34
lea eax, [ebp + 0x2e4]
push eax
call esi
push dword [ebp - 0x64]
lea eax, [ebp + 0x2e4]
push eax
call esi
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x5c]
push eax
push 0
jmp 0x10001615
inc dword [ebp - 0x64]
lea eax, [ebp + 0x2e4]
push eax
lea eax, [ebp + 0xa4]
push eax
call ebx
push 0x100cdb34
lea eax, [ebp + 0xa4]
push eax
call esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0xa4]
push eax
call esi
cmp dword [ebp - 0x68], 0xb
lea eax, [ebp + 0x4e4]
jl 0x100015d2
push str.Service
jmp 0x100015d7
push str.Driver
push eax
call ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2a4]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x4e4]
push eax
lea eax, [ebp + 0xa4]
push eax
push edi
mov dword [ebp - 0x6c], 0x40
call fcn.1000b244
xor ecx, ecx
inc ecx
add esp, 0x18
cmp eax, ecx
je 0x10001630
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
lea eax, [ebp + 0x2e4]
push eax
push edi
call fcn.10008c95
add esp, 0x10
cmp eax, 1
je 0x10001591
jmp 0x10001633
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 1
je 0x10001666
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x70]
lea eax, [ebp + 0x3e4]
push eax
push edi
call fcn.10008c95
add esp, 0x10
cmp eax, 1
je 0x10001532
cmp dword [ebp - 0x60], 1
jne 0x1000173d
cmp dword [ebp - 0x68], 0xb
lea eax, [ebp + 0x3e4]
jl 0x10001681
push str.SYSTEMCurrentControlSetServices_
push eax
call ebx
push str.ImagePath
jmp 0x1000168e
push str.SYSTEMCurrentControlSetServicesClass_
push eax
call ebx
push str.DeviceVxDs
lea eax, [ebp + 0x1a4]
push eax
call ebx
lea eax, [ebp + 0x2a4]
push eax
lea eax, [ebp + 0x3e4]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x364]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp + 0x3e4]
push eax
push edi
mov dword [ebp - 0x6c], 0x80
call fcn.1000b244
add esp, 0x18
cmp eax, 1
mov dword [ebp - 0x60], eax
jne 0x1000174a
push 0x40
lea eax, [ebp + 0x4e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [ebp - 0x7c]
lea eax, [ebp + 0x4e4]
push eax
push edi
call ebx
cmp dword [ebp - 0x68], 0xb
jl 0x10001705
push 0x100cdb34
jmp 0x1000170a
push str.System_
push edi
call esi
lea eax, [ebp + 0x364]
push eax
push edi
call esi
push edi
call fcn.10008d21
test eax, eax
pop ecx
je 0x10001734
push edi
push str._RC__RaWLAPI__Get_Driver_Path___s
push 4
call fcn.1000926a
add esp, 0xc
jmp 0x10001744
mov dword [ebp - 0x60], 0xfffffff8
jmp 0x10001744
mov dword [ebp - 0x60], 0xfffffff7
cmp dword [ebp - 0x60], 1
je 0x10001758
push str._RC__RaWLAPI__Get_Driver_Path_Failed_
push 1
call fcn.1000926a
pop ecx
pop ecx
mov eax, dword [ebp - 0x60]
pop ebx
mov ecx, dword [ebp + 0x524]
pop edi
xor ecx, ebp
pop esi
call fcn.1008e5e8
add ebp, 0x528
leave
ret