Function at 0x402e8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409aca
mov eax, dword fs:[0]
push eax
sub esp, 0x390
push ebx
push esi
push edi
lea edi, [ebp - 0x39c]
mov ecx, 0xe4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x40e020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.00401a7f
and dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
and dword [ebp - 0x44], 0
mov esi, esp
lea eax, [ebp - 0x44]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.00408d80
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp esi, esp
call fcn.00408d80
test eax, eax
je 0x402f10
cmp dword [ebp - 0x44], 0
jne 0x402f2e
and dword [ebp - 0x398], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401c24
mov eax, dword [ebp - 0x398]
jmp 0x403200
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea eax, [ebp - 0x252]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov esi, esp
push 0x104
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.00408d80
test eax, eax
jne 0x402f8c
and dword [ebp - 0x38c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401c24
mov eax, dword [ebp - 0x38c]
jmp 0x403200
mov esi, esp
push str.explorer.exe
push 0x104
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00408d80
test eax, eax
je 0x402fd1
and dword [ebp - 0x380], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401c24
mov eax, dword [ebp - 0x380]
jmp 0x403200
push dword [ebp - 0x44]
lea eax, [ebp - 0x254]
push eax
call fcn.004032dd
pop ecx
pop ecx
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jne 0x40300f
and dword [ebp - 0x374], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401c24
mov eax, dword [ebp - 0x374]
jmp 0x403200
mov esi, esp
push dword [ebp - 0x260]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.00408d80
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x4031e1
and dword [ebp - 0x278], 0
mov esi, esp
lea eax, [ebp - 0x278]
push eax
push 8
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00408d80
test eax, eax
je 0x4031c6
and dword [ebp - 0x284], 0
and dword [ebp - 0x290], 0
mov esi, esp
lea eax, [ebp - 0x290]
push eax
push 0
push dword [ebp - 0x284]
push 1
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00408d80
test eax, eax
jne 0x4031ab
mov esi, esp
push dword [ebp - 0x290]
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00408d80
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.00408d80
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
je 0x4031a5
mov esi, esp
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
push dword [ebp - 0x284]
push 1
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00408d80
test eax, eax
je 0x403178
lea eax, [ebp - 0x29c]
push eax
mov eax, dword [ebp - 0x284]
push dword [eax]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x40315d
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2c]
call fcn.00404d87
push 0x40a9e8
lea ecx, [ebp - 0x2c]
call fcn.00404d87
push dword [ebp - 0x29c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403e25
test eax, eax
je 0x40315b
and dword [ebp - 0x38], 0
jmp 0x403161
and dword [ebp - 0x38], 0
mov esi, esp
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00408d80
jmp 0x40317c
and dword [ebp - 0x38], 0
mov esi, esp
push dword [ebp - 0x284]
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00408d80
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.00408d80
jmp 0x4031a9
and dword [ebp - 0x38], 0
jmp 0x4031af
and dword [ebp - 0x38], 0
mov esi, esp
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00408d80
jmp 0x4031ca
and dword [ebp - 0x38], 0
mov esi, esp
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00408d80
jmp 0x4031e5
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x368], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401c24
mov eax, dword [ebp - 0x368]
push edx
mov ecx, ebp
push eax
lea edx, [0x40323c]
call fcn.00408d28
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408da3
add esp, 0x39c
cmp ebp, esp
call fcn.00408d80
mov esp, ebp
pop ebp
ret