Function at 0x40cf60
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x41a008]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov ecx, 0x40cdc0
mov dword [esp + 0x18], 0
call fcn.0040cd00
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
test edi, edi
je 0x40d251
xorps xmm0, xmm0
xor ebx, ebx
push edi
push ebx
push 0x400
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40cff8
push edi
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d251
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x40d06b
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x40d067
mov ecx, dword [esp + 0x24]
xor edi, edi
or edi, dword [esp + 0x28]
xor edx, edx
or edx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x2c], ecx
ja 0x40d067
jb 0x40d062
cmp dword [esp + 0x10], edx
jae 0x40d067
mov ebx, 1
test esi, esi
je 0x40d072
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40d251
mov eax, dword [0x41ad9c]
test eax, eax
jne 0x40d0be
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d251
push str.ProcessIdToSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [0x41ad9c], eax
test eax, eax
setne cl
test ecx, ecx
je 0x40d251
test eax, eax
je 0x40d251
lea ecx, [esp + 0x1c]
push ecx
push edi
call eax
test eax, eax
je 0x40d251
push 0x418
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00410e50
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x48], eax
lea eax, [esp + 0x468]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 2
jb 0x40d251
cmp word [esp + 0x46a], 0x3a
jne 0x40d251
lea ecx, [eax + 0xd]
cmp ecx, 0x105
jae 0x40d251
add eax, eax
cmp eax, 0x20a
jae 0x40d268
xor ecx, ecx
mov word [esp + eax + 0x468], cx
lea eax, [esp + 0x468]
push str.explorer.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea esi, [esp + 0x468]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d160
xor eax, eax
sub esi, ecx
mov word [esp + 0x46c], ax
lea eax, [esp + 0x50]
push 0x208
push eax
lea eax, [esp + 0x470]
sar esi, 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40d251
add eax, 0xfffffffe
add eax, esi
cmp eax, 0x209
jae 0x40d251
lea eax, [esp + 0x46e]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x48]
mov ecx, 0x40ce00
call fcn.0040cd00
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40d251
push eax
push 0
push 0x400
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d229
lea eax, [esp + 0x18]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d222
lea eax, [esp + 0x14]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d238
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x67c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
call fcn.0040dd96
int3