Function at 0x4bd780
Capabilities:
Check if file exists
Create pipe
Create process on windows
Enumerate gui resources
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor edi, edi
push 0x44
lea eax, [ebp - 0x68]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.004eb2d0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
call fcn.004bd630
test dword [esi], 0x1000
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
je 0x4bd7fd
push 0x10000
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
call ebx
mov ecx, dword [ebp - 0x10]
push 0
push 1
push ecx
call edi
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [esi]
test eax, 0x2000
je 0x4bd83e
push 0x10000
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 0x14]
push 0
push 1
push eax
call edi
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov edx, eax
and edx, 0xa000
mov dword [ebp - 0x2c], ecx
cmp edx, 0xa000
jne 0x4bd83e
mov dword [ebp - 0x28], ecx
test eax, 0x4000
je 0x4bd868
push 0x10000
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
mov eax, dword [ebp - 4]
push 0
push 1
push eax
call edi
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
or dword [ebp - 0x3c], 1
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x68], 0x44
je 0x4bd884
mov edx, 5
mov word [ebp - 0x38], dx
jmp 0x4bd8a9
xor eax, eax
test dword [esi], 0x7000
mov word [ebp - 0x38], ax
je 0x4bd8a9
or dword [ebp - 0x3c], 0x100
cmp dword [ebp - 0x28], eax
jne 0x4bd8a9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
call fcn.004bd700
mov ebx, eax
cmp byte [ebx + 1], 0x3a
je 0x4bd8d5
cmp byte [ebx], 0x2f
je 0x4bd8d5
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bd8d5
push ebx
call fcn.004ea5c2
add esp, 4
xor ebx, ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [esi + 0x18]
push edi
lea ecx, [ebp - 0x68]
push ecx
push edx
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp + 8], eax
test ebx, ebx
je 0x4bd907
push ebx
call fcn.004ea5c2
add esp, 4
cmp byte [ebp + 0x14], 0
je 0x4bd92e
mov ecx, dword [edi]
push 0xbb8
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push esi
push 0x4bd5b0
mov dword [esi + 0x34], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4bd93e
push eax
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4bd948
push eax
call ebx
cmp dword [ebp + 8], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jne 0x4bd97f
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.004bd630
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or dword [esi], 0x10000
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10