Function at 0x45c350
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50785c
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov byte [ebp - 4], 1
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45c63c
cmp eax, 0x104
je 0x45c63c
cmp word [ebp - 0x218], 0
jne 0x45c40b
xor ecx, ecx
jmp 0x45c423
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c414
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004073d0
push 2
push 0xffffffffffffffff
push 0x5134a8
lea ecx, [ebp - 0x230]
call fcn.0045cae0
cmp eax, 0xffffffff
je 0x45c63c
push str.ADelRCP.exe
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x230]
push eax
call fcn.00430d00
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45c63c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push 0x38
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b4], 0x3c
push 0
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x298], 1
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 7
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x2a4], eax
xor eax, eax
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push 0x105
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00446550
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x45c62d
cmp eax, dword [ebp - 0x238]
ja 0x45c62d
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
push 0x105
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.00446550
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x45c613
cmp eax, dword [ebp - 0x250]
ja 0x45c613
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x45c613
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
mov esi, eax
cmovae ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
je 0x45c613
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x45c5f9
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea ecx, [ebp - 0x260]
mov bl, 1
call fcn.00408450
lea ecx, [ebp - 0x248]
call fcn.00408450
jmp 0x45c63e
lea ecx, [ebp - 0x260]
xor bl, bl
call fcn.00408450
lea ecx, [ebp - 0x248]
call fcn.00408450
jmp 0x45c63e
lea ecx, [ebp - 0x248]
xor bl, bl
call fcn.00408450
jmp 0x45c63e
xor bl, bl
cmp dword [ebp - 0x21c], 8
jb 0x45c655
push dword [ebp - 0x230]
call fcn.0040823e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 4