Function at 0x429f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e6fb
mov eax, dword fs:[0]
push eax
mov eax, 0x2105c
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20860], 0x20000
call fcn.0042a310
test eax, eax
jne 0x42a2e6
push 0x401
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x429fcc
push str.INVALID_PATH
call fcn.00417300
add esp, 4
lea eax, [ebp - 0x20860]
push eax
lea eax, [ebp - 0x20814]
push eax
push str.PagingFiles
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
call fcn.004c0ce0
mov esi, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x42a06b
test esi, esi
je 0x42a05e
mov eax, dword [ebp - 0x20860]
cmp eax, 8
jbe 0x42a06b
shr eax, 1
mov edi, 1
sub eax, 2
cmp eax, edi
jbe 0x42a06b
lea esi, [ebp - 0x20812]
push 2
push 0x51ab90
push esi
call fcn.004f845a
add esp, 0xc
test eax, eax
jne 0x42a046
movzx eax, word [esi - 2]
push eax
call fcn.004f842a
movzx ecx, word [ebp - 0x814]
add esp, 4
cmp eax, ecx
jne 0x42a2e6
mov eax, dword [ebp - 0x20860]
inc edi
shr eax, 1
add esi, 2
sub eax, 2
cmp edi, eax
jb 0x42a016
mov esi, dword [ebp + 8]
jmp 0x42a06b
cmp dword [ebp - 0x20860], 0x18
ja 0x42a2e6
call sub.SHELL32.dll_IsUserAnAdmin
test eax, eax
jne 0x42a081
push str.UAC_INIT_ERROR
call fcn.00417300
add esp, 4
mov bl, 0x41
nop dword [eax]
nop word [eax + eax]
push 6
xor eax, eax
mov dword [ebp - 0x20818], 7
push str..X:
lea ecx, [ebp - 0x2082c]
mov dword [ebp - 0x2081c], 0
mov word [ebp - 0x2082c], ax
call fcn.004051a0
cmp dword [ebp - 0x20818], 8
lea eax, [ebp - 0x2082c]
movsx di, bl
cmovae eax, dword [ebp - 0x2082c]
mov dword [ebp - 4], 0
mov word [eax + 8], di
test esi, esi
je 0x42a12b
movzx eax, word [ebp - 0x21068]
push eax
call fcn.004f842a
movsx ecx, bl
add esp, 4
cmp eax, ecx
jne 0x42a12b
mov eax, dword [ebp - 0x20818]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x42a27e
inc eax
lea ecx, [ebp - 0x2082c]
push eax
push dword [ebp - 0x2082c]
call fcn.004052a0
jmp 0x42a27e
cmp dword [ebp - 0x20818], 8
lea eax, [ebp - 0x2082c]
push 0
cmovae eax, dword [ebp - 0x2082c]
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42a256
push 0
lea eax, [ebp - 0x20864]
push eax
push 0x18
lea eax, [ebp - 0x2085c]
push eax
push 0
push 0
push 0x70000
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x42a194
call esi
jmp 0x42a256
call esi
push 0xf
xor eax, eax
mov dword [ebp - 0x20830], 7
push str.X:pagefile.sys
lea ecx, [ebp - 0x20844]
mov dword [ebp - 0x20834], 0
mov word [ebp - 0x20844], ax
call fcn.004051a0
cmp dword [ebp - 0x20830], 8
lea eax, [ebp - 0x20844]
push 0
cmovae eax, dword [ebp - 0x20844]
push 0
push 3
push 0
mov word [eax], di
lea eax, [ebp - 0x20844]
cmp dword [ebp - 0x20830], 8
push 1
cmovae eax, dword [ebp - 0x20844]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
je 0x42a210
push eax
call esi
jmp 0x42a21b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
je 0x42a28d
mov eax, dword [ebp - 0x20830]
cmp eax, 8
jb 0x42a239
inc eax
lea ecx, [ebp - 0x20844]
push eax
push dword [ebp - 0x20844]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x20830], 7
mov dword [ebp - 0x20834], 0
mov word [ebp - 0x20844], ax
mov eax, dword [ebp - 0x20818]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x42a27b
inc eax
lea ecx, [ebp - 0x2082c]
push eax
push dword [ebp - 0x2082c]
call fcn.004052a0
mov esi, dword [ebp + 8]
inc bl
cmp bl, 0x5a
jle 0x42a090
xor eax, eax
jmp 0x42a2eb
mov eax, dword [ebp - 0x20830]
cmp eax, 8
jb 0x42a2ab
inc eax
lea ecx, [ebp - 0x20844]
push eax
push dword [ebp - 0x20844]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x20830], 7
mov word [ebp - 0x20844], ax
mov eax, dword [ebp - 0x20818]
mov dword [ebp - 0x20834], 0
cmp eax, 8
jb 0x42a2e6
inc eax
lea ecx, [ebp - 0x2082c]
push eax
push dword [ebp - 0x2082c]
call fcn.004052a0
mov eax, 1
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.004e1f40
mov esp, ebp
pop ebp
ret