Function at 0x5f9c10
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 0x642ccc
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x6ccc30]
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.0061e8c0
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.005fa4d0
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 0x5fa167
cmp eax, dword [ebp - 0x250]
ja 0x5fa167
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.005fa4d0
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 0x5fa124
cmp eax, dword [ebp - 0x220]
ja 0x5fa124
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 0x5fa124
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0061e8c0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005f76d0
add esp, 0x14
test al, al
je 0x5fa124
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.005d4990
push 0xffffffffffffffff
push 0x651238
lea ecx, [ebp - 0x248]
call fcn.005e7e60
cmp eax, 0xffffffff
je 0x5fa124
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x248]
inc eax
test edi, edi
jne 0x5f9e42
push str.ADelRCP.exe
push 0xffffffffffffffff
push eax
call fcn.005fa9b0
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 0x5fa124
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x64689c]
mov ecx, ebx
call esi
jmp 0x5f9e87
push str.Click_on_Change_to_select_default_PDF_handler.pdf
push 0xffffffffffffffff
push eax
call fcn.005fa9b0
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 0x5fa124
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.005d7800
add esp, 0xc
test al, al
je 0x5f9f6d
push 0x650c80
push 0x650c90
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x5f9f6d
push 0x110
lea eax, [ebp - 0x398]
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
mov dword [ebp - 0x39c], 0x114
lea eax, [ebp - 0x39c]
mov ecx, esi
push eax
call dword [0x64689c]
call esi
test eax, eax
js 0x5f9f6d
cmp dword [ebp - 0x398], 0xa
jb 0x5f9f6d
push str.Program_Manager
push str.PROGMAN
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x5f9f6d
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test edi, edi
je 0x5fa10b
mov edi, 1
nop word [eax + eax]
push str.Click_on_Change_to_select_default_PDF_handler.pdf_Properties
push 0x6513b8
inc edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x5fa0c8
push str.Click_on_Change_to_select_default_PDF_handler_Properties
push 0x651440
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x5fa0c8
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.005d7ff0
push 6
push str.32770
lea ecx, [ebp - 0x3b8]
call fcn.005d7ff0
lea eax, [ebp - 0x3d0]
push eax
push 0x5fa7a0
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 0x5fa051
inc eax
lea ecx, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3b8]
call fcn.005d31d0
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 0x5fa090
inc eax
lea ecx, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3d0]
call fcn.005d31d0
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 0x5fa0c8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x32
jl 0x5f9f80
jmp 0x5fa10b
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 0x5fa124
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x5fa120
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov bl, 1
jmp 0x5fa126
xor bl, bl
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x2a
cmp eax, 8
jb 0x5fa148
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.005d31d0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
jmp 0x5fa169
xor bl, bl
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x2b
cmp eax, 8
jb 0x5fa18b
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.005d31d0
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 0x5fa1cc
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.005d31d0
jmp 0x5fa1cc
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.005ce525
mov esp, ebp
pop ebp
ret 8