Function at 0x494980
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 0x5b4f9c
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x6401e8]
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 ebx, ecx
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x38
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], 0x3c
push eax
call fcn.0057c040
xor eax, eax
mov dword [ebp - 0x3f0], 1
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
push eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
push 0x105
lfence
call main
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x494ed7
cmp eax, dword [ebp - 0x250]
ja 0x494ed7
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
push 0x105
lfence
call main
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x494e94
cmp eax, dword [ebp - 0x220]
ja 0x494e94
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x494e94
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0057c040
lea eax, [ebp - 0x218]
push 0x104
push eax
call main
add esp, 0x14
test al, al
je 0x494e94
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call main
push 0xffffffffffffffff
push 0x5cc5b8
lea ecx, [ebp - 0x248]
call main
cmp eax, 0xffffffff
je 0x494e94
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x248]
inc eax
test edi, edi
jne 0x494bb2
push str.ADelRCP.exe
push 0xffffffffffffffff
push eax
call main
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x494e94
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5c689c]
mov ecx, ebx
call esi
jmp 0x494bf7
push str.Click_on_Change_to_select_default_PDF_handler.pdf
push 0xffffffffffffffff
push eax
call main
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x494e94
mov dword [ebp - 0x408], 0xc
mov dword [ebp - 0x400], str.properties
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x3fc], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x3f4], eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
mov ebx, eax
cmovae ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
push 0
push 2
push 6
call main
add esp, 0xc
test al, al
je 0x494cdd
push 0x5cddac
push 0x5cddbc
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x494cdd
push 0x110
lea eax, [ebp - 0x398]
push 0
push eax
call fcn.0057c040
add esp, 0xc
mov dword [ebp - 0x39c], 0x114
lea eax, [ebp - 0x39c]
mov ecx, esi
push eax
call dword [0x5c689c]
call esi
test eax, eax
js 0x494cdd
cmp dword [ebp - 0x398], 0xa
jb 0x494cdd
push str.Program_Manager
push str.PROGMAN
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x494cdd
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test edi, edi
je 0x494e7b
mov edi, 1
nop word [eax + eax]
push str.Click_on_Change_to_select_default_PDF_handler.pdf_Properties
push 0x5cc738
inc edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x494e38
push str.Click_on_Change_to_select_default_PDF_handler_Properties
push 0x5cc7c0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x494e38
mov dword [ebp - 0x3c0], eax
mov dword [ebp - 0x3bc], 7
mov word [ebp - 0x3d0], ax
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3a4], 7
mov word [ebp - 0x3b8], ax
push 0x2f
push str.Click_on_Change_to_select_default_PDF_handler
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x3a0], eax
call main
push 6
push str.32770
lea ecx, [ebp - 0x3b8]
call main
lea eax, [ebp - 0x3d0]
push eax
push 0x4952a0
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
mov eax, dword [ebp - 0x3a0]
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x3a4]
mov byte [ebp - 4], 0x24
cmp eax, 8
jb 0x494dc1
inc eax
lea ecx, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3b8]
call main
xor eax, eax
mov dword [ebp - 0x3a8], 0
mov dword [ebp - 0x3a4], 7
mov word [ebp - 0x3b8], ax
mov eax, dword [ebp - 0x3bc]
mov byte [ebp - 4], 0x25
cmp eax, 8
jb 0x494e00
inc eax
lea ecx, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3d0]
call main
xor eax, eax
mov dword [ebp - 0x3c0], 0
mov dword [ebp - 0x3bc], 7
mov word [ebp - 0x3d0], ax
mov byte [ebp - 4], 6
test esi, esi
jne 0x494e38
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
cmp edi, 0x32
jl 0x494cf0
jmp 0x494e7b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x270]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x264]
cdq
push 5
push 0
and edx, 3
add eax, edx
sar eax, 2
push 0
push eax
mov eax, dword [ebp - 0x268]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
test ebx, ebx
je 0x494e94
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x494e90
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov bl, 1
jmp 0x494e96
xor bl, bl
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x2a
cmp eax, 8
jb 0x494eb8
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call main
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
jmp 0x494ed9
xor bl, bl
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x2b
cmp eax, 8
jb 0x494efb
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call main
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov ecx, dword [ebp - 0x234]
mov byte [ebp - 4], 0x2c
cmp ecx, 8
jb 0x494f3c
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call main
jmp 0x494f3c
mov al, bl
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.004017bd
mov esp, ebp
pop ebp
ret 8