Function at 0x407be8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413bf6
mov eax, dword fs:[0]
push eax
sub esp, 0x278
push esi
push edi
lea edi, [ebp - 0x284]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43f004]
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.00404b6c
and dword [ebp - 4], 0
mov dword [ebp - 0x34], 1
push 0x208
push 0
lea eax, [ebp - 0x240]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov esi, esp
push 0x104
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x407c8f
and dword [ebp - 0x278], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040531b
mov eax, dword [ebp - 0x278]
jmp 0x407eff
mov esi, esp
push 0x4263c8
push 0x104
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x407cd4
and dword [ebp - 0x27c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040531b
mov eax, dword [ebp - 0x27c]
jmp 0x407eff
lea eax, [ebp - 0x240]
push eax
call fcn.0040fca4
pop ecx
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x407d0e
and dword [ebp - 0x280], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040531b
mov eax, dword [ebp - 0x280]
jmp 0x407eff
mov esi, esp
push dword [ebp - 0x248]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x407ee0
and dword [ebp - 0x254], 0
mov esi, esp
lea eax, [ebp - 0x254]
push eax
push 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x407ec5
and dword [ebp - 0x25c], 0
and dword [ebp - 0x264], 0
mov esi, esp
lea eax, [ebp - 0x264]
push eax
push 0
push dword [ebp - 0x25c]
push 1
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x407eaa
mov esi, esp
push dword [ebp - 0x264]
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00411cf8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x407ea4
mov esi, esp
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
push dword [ebp - 0x25c]
push 1
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x407e77
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x25c]
push dword [eax]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x407e5c
push dword [ebp - 0x270]
lea ecx, [ebp - 0x2c]
call fcn.0040b252
push 0x4263e4
lea ecx, [ebp - 0x2c]
call fcn.0040b252
push dword [ebp - 0x270]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a16e
test eax, eax
je 0x407e5a
and dword [ebp - 0x34], 0
jmp 0x407e60
and dword [ebp - 0x34], 0
mov esi, esp
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00411cf8
jmp 0x407e7b
and dword [ebp - 0x34], 0
mov esi, esp
push dword [ebp - 0x25c]
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00411cf8
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.00411cf8
jmp 0x407ea8
and dword [ebp - 0x34], 0
jmp 0x407eae
and dword [ebp - 0x34], 0
mov esi, esp
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
jmp 0x407ec9
and dword [ebp - 0x34], 0
mov esi, esp
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
jmp 0x407ee4
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x284], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040531b
mov eax, dword [ebp - 0x284]
push edx
mov ecx, ebp
push eax
lea edx, [0x407f38]
call fcn.00411ca2
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d30
add esp, 0x284
cmp ebp, esp
call fcn.00411cf8
leave
ret