Function at 0x4bfd2b
Capabilities:
Create process on windows
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x86311c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov esi, ecx
push 0x9b5220
lea ecx, [esp + 0x10]
call fcn.00617650
mov eax, dword [esp + 0x230]
add esi, 0x20ac
push eax
mov ecx, esi
mov dword [esp + 0x224], 0
call fcn.004bc540
mov edx, dword [esp + 0x228]
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
mov ecx, esi
call fcn.004bc900
test eax, eax
je 0x4bff51
mov eax, dword [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.00831f5f
mov eax, dword [esp + 0x230]
mov byte [esp + 0x224], 1
test eax, eax
jne 0x4bfe55
mov ecx, dword [esp + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
and esi, 0xfffffffc
push esi
push edx
call ebp
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push eax
push 0x94b7c4
push 0
call edi
cmp eax, 0x1f
jne 0x4bfe44
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [0x98b454]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push str.shell32.dll_OpenAs_RunDLL__s
push ecx
mov byte [esp + 0x234], 2
call fcn.00826097
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push 1
push edx
push eax
push str.RUNDLL32.EXE
push str.open
push 0
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 1
call fcn.00831eeb
mov ecx, dword [esp + 0xc]
or esi, 3
push esi
push ecx
call ebp
pop ebp
jmp 0x4bff27
cmp eax, 1
jne 0x4bfeec
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
mov eax, dword [esp + 8]
and esi, 0xfffffffc
push esi
push eax
call edi
lea ecx, [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [0x98b454]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push str.shell32.dll_OpenAs_RunDLL__s
push ecx
mov byte [esp + 0x230], 3
call fcn.00826097
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x14]
push 1
push edx
push eax
push str.RUNDLL32.EXE
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 8]
or esi, 3
push esi
push ecx
call edi
mov byte [esp + 0x224], 1
lea ecx, [esp + 0xc]
jmp 0x4bff22
cmp eax, 2
jne 0x4bff27
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push str._Select_
push eax
call fcn.00832204
mov eax, dword [eax]
push 0xa
push 0
push eax
push str.Explorer.exe
push 0x94b7c4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0xc]
call fcn.00831eeb
lea ecx, [esp + 8]
mov byte [esp + 0x224], 0
call fcn.00831eeb
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.00617ec0
xor eax, eax
pop edi
jmp 0x4bff75
push 0
push 0
call fcn.004b8670
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x220], 0xffffffff
call fcn.00617ec0
mov eax, esi
mov ecx, dword [esp + 0x218]
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret 0xc