Function at 0x100876d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x1016dd50
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x41c]
mov esi, dword [ebp + 0x420]
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov byte [ebp + 0x30c], bl
push 0x103
push ebx
lea eax, [ebp + 0x30d]
push eax
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.1004f190
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x100877ad
push 0x104
lea ecx, [ebp + 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + 0x30c]
call fcn.10049c40
lea eax, [ebp + 0x30c]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10087780
mov edx, dword [str.rundll32.exe]
mov dword [eax], edx
mov ecx, dword [0x10149d2c]
mov dword [eax + 4], ecx
mov edx, dword [0x10149d30]
mov dword [eax + 8], edx
mov cl, byte [0x10149d34]
mov byte [eax + 0xc], cl
jmp 0x100877dc
mov edx, dword [str.rundll32.exe]
mov dword [ebp + 0x30c], edx
mov eax, dword [0x10149d2c]
mov dword [ebp + 0x310], eax
mov ecx, dword [0x10149d30]
mov dword [ebp + 0x314], ecx
mov dl, byte [0x10149d34]
mov byte [ebp + 0x318], dl
cmp edi, ebx
je 0x1008790e
cmp byte [edi], bl
je 0x1008790e
mov ecx, edi
call fcn.10044360
test eax, eax
jne 0x10087813
cmp esi, ebx
je 0x1008792b
push edi
push str._s_file_not_present
push esi
call fcn.1010d6a8
add esp, 0xc
jmp 0x1008792b
mov ebx, str.mwfsmfltr
call fcn.10049380
test eax, eax
jne 0x10087900
or esi, 0xffffffff
mov dword [ebp - 0x20], esi
push eax
call sym.EncDec.dll_DisableWindowsLogo
push edi
lea eax, [ebp + 0x30c]
push eax
push str._s_setupapi.dll_InstallHinfSection_DefaultInstall_128__s
lea ecx, [ebp]
push ecx
call fcn.1010d6a8
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x10087860
lea edx, [ebp - 0x1c]
push edx
call fcn.1004f240
add esp, 4
mov edi, eax
jmp 0x10087863
mov edi, dword [ebp - 0x28]
push 0
call sym.EncDec.dll_IsSystemUser
test eax, eax
je 0x100878a9
call fcn.1004fe90
test eax, eax
jne 0x100878a9
mov byte [ebp + 0x208], al
push 0x103
push eax
lea eax, [ebp + 0x209]
push eax
call fcn.10116880
add esp, 0xc
push 1
lea ecx, [ebp + 0x208]
push ecx
lea edx, [ebp]
push edx
call sym.EncDec.dll_StartProcessAsUser
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x100878c4
push 0
push 0xffffffffffffffff
push 0
push 1
lea eax, [ebp]
push eax
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
test edi, edi
je 0x100878d4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1004f2c0
add esp, 4
push 1
call sym.EncDec.dll_DisableWindowsLogo
mov ebx, str.mwfsmfltr
call fcn.10049380
test eax, eax
jne 0x10087900
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1008792b
push str.Failed_to_install_mwfsmfltr
push eax
call fcn.1010d6a8
add esp, 8
jmp 0x1008792b
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10087934
cmp esi, ebx
je 0x1008792b
push str.Invalid_parameter
push esi
call fcn.1010d6a8
add esp, 8
jmp 0x1008792b
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x414
mov esp, ebp
pop ebp
ret 8