Function at 0x489e30
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 0x574a17
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x5edd38]
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.0053f340
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 fcn.0046c230
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 0x48a387
cmp eax, dword [ebp - 0x250]
ja 0x48a387
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 fcn.0046c230
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 0x48a344
cmp eax, dword [ebp - 0x220]
ja 0x48a344
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 0x48a344
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053f340
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00487860
add esp, 0x14
test al, al
je 0x48a344
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040e5e0
push 0xffffffffffffffff
push 0x587e08
lea ecx, [ebp - 0x248]
call fcn.0048a970
cmp eax, 0xffffffff
je 0x48a344
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x248]
inc eax
test edi, edi
jne 0x48a062
push str.ADelRCP.exe
push 0xffffffffffffffff
push eax
call fcn.00434810
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 0x48a344
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
mov ecx, ebx
call esi
jmp 0x48a0a7
push str.Click_on_Change_to_select_default_PDF_handler.pdf
push 0xffffffffffffffff
push eax
call fcn.00434810
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 0x48a344
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 fcn.00410b70
add esp, 0xc
test al, al
je 0x48a18d
push 0x587854
push 0x587864
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x48a18d
push 0x110
lea eax, [ebp - 0x398]
push 0
push eax
call fcn.0053f340
add esp, 0xc
mov dword [ebp - 0x39c], 0x114
lea eax, [ebp - 0x39c]
mov ecx, esi
push eax
call dword [0x5817c0]
call esi
test eax, eax
js 0x48a18d
cmp dword [ebp - 0x398], 0xa
jb 0x48a18d
push str.Program_Manager
push str.PROGMAN
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x48a18d
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test edi, edi
je 0x48a32b
mov edi, 1
nop word [eax + eax]
push str.Click_on_Change_to_select_default_PDF_handler.pdf_Properties
push 0x587f88
inc edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x48a2e8
push str.Click_on_Change_to_select_default_PDF_handler_Properties
push 0x588010
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x48a2e8
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 fcn.0040ddb0
push 6
push str.32770
lea ecx, [ebp - 0x3b8]
call fcn.0040ddb0
lea eax, [ebp - 0x3d0]
push eax
push 0x48a880
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 0x48a271
inc eax
lea ecx, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3b8]
call fcn.0040a2e0
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 0x48a2b0
inc eax
lea ecx, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3d0]
call fcn.0040a2e0
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 0x48a2e8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x32
jl 0x48a1a0
jmp 0x48a32b
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 0x48a344
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x48a340
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov bl, 1
jmp 0x48a346
xor bl, bl
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x2a
cmp eax, 8
jb 0x48a368
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
jmp 0x48a389
xor bl, bl
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x2b
cmp eax, 8
jb 0x48a3ab
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040a2e0
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 0x48a3ec
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.0040a2e0
jmp 0x48a3ec
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.00401682
mov esp, ebp
pop ebp
ret 8