Function at 0x4c6bd0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x2a4
push edi
mov edi, dword [esp + 0x2ac]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c6bf6
xor al, al
pop edi
add esp, 0x2a4
ret 0xc
mov eax, dword [0x735b9c]
push esi
xor esi, esi
cmp eax, esi
jne 0x4c6c12
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x735b9c], eax
push ebp
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, esi
je 0x4c6d99
push ebx
xor bl, bl
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call fcn.004c6a50
cmp eax, esi
je 0x4c6d6b
push eax
push esi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x4c6d6b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0xf
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c6d6b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 1
push 2
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4c6d6b
push 0x44
lea ecx, [esp + 0x6c]
push esi
push ecx
call fcn.006a1300
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c8]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x70], esi
je 0x4c6d20
cmp word [eax], si
je 0x4c6d20
push eax
push edi
push str.__s___s
mov esi, 0x104
lea edi, [esp + 0xb8]
call fcn.004af0d0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2bc]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
mov ecx, edi
push ecx
push edx
push 0
push eax
call ebp
mov edi, dword [esp + 0x2b8]
jmp 0x4c6d37
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x6c]
push edx
push esi
push esi
push esi
push esi
push edi
push esi
push eax
call ebp
test eax, eax
setne bl
test bl, bl
je 0x4c6d55
cmp dword [esp + 0x2c0], 1
jne 0x4c6d55
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
jmp 0x4c6d71
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
test bl, bl
pop ebx
je 0x4c6d9f
pop ebp
pop esi
mov al, 1
pop edi
add esp, 0x2a4
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3c
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.006a1300
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2c8]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x38], 0x6bc0b0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [esp + 0x60]
push edx
call esi
xor eax, eax
cmp dword [esp + 0x48], 0x20
pop ebp
pop esi
setg al
pop edi
add esp, 0x2a4
ret 0xc