Function at 0x1000f690
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f734
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x69c
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx], 0x40
mov dword [ebp - 0x20], 0
setne cl
dec ecx
and ecx, ebx
cmp dword [edi + 0x40a4], 0
mov dword [ebp - 0x14], ecx
je case.0x1000fe78.9
mov edx, dword [ebx + 0xc]
test edx, 0xffff0000
je 0x1000f80d
test ecx, ecx
je 0x1000f6f9
test dword [ecx + 0x28], 0xffff0000
je 0x1000f80d
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [str.newlister], edx
je case.0x1000fe78.9
mov eax, 0x100c2ae0
mov dword [ebp - 0x1c], eax
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x1000f773
mov ebx, dword [eax]
or esi, 0xffffffff
test ebx, ebx
je 0x1000f773
test esi, esi
js 0x1000f731
mov eax, esi
dec esi
test eax, eax
jle 0x1000f7fb
movzx eax, byte [edi]
push eax
call fcn.10086b1d
movzx ecx, byte [ebx]
push ecx
mov byte [ebp - 0xd], al
call fcn.10086b1d
mov cl, byte [ebp - 0xd]
add esp, 8
cmp cl, al
jne 0x1000f75c
test cl, cl
je 0x1000f7fb
inc edi
inc ebx
jmp 0x1000f722
movsx eax, al
movsx ecx, cl
sub ecx, eax
je 0x1000f7fb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x1000f7e0
mov edi, dword [ecx + 0x28]
test edi, edi
je 0x1000f7e0
mov ebx, dword [eax + 4]
or esi, 0xffffffff
test ebx, ebx
je 0x1000f7e0
test esi, esi
js 0x1000f793
mov eax, esi
dec esi
test eax, eax
jle 0x1000f7fb
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp - 0x24], eax
movzx eax, word [ebx]
push eax
call fcn.10086fcc
mov ecx, dword [ebp - 0x24]
add esp, 8
movzx eax, ax
cmp cx, ax
jne 0x1000f7c6
test cx, cx
je 0x1000f7fb
add edi, 2
add ebx, 2
jmp 0x1000f788
test ax, ax
jne 0x1000f7d0
cmp esi, 0xffffff9d
je 0x1000f7fb
movzx ecx, cx
sub ecx, eax
je 0x1000f7fb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add eax, 0xc
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0
je case.0x1000fe78.9
mov ebx, dword [ebp + 0xc]
jmp 0x1000f712
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
lea eax, [eax + eax*2]
mov esi, dword [eax*4 + 0x100c2ae8]
jmp 0x1000f83a
mov eax, dword [edi + 0x42bc]
mov ecx, dword [edi + 0x42c0]
cmp eax, ecx
je case.0x1000fe78.9
cmp dword [eax], edx
je 0x1000f831
add eax, 0xc
cmp eax, ecx
jne 0x1000f821
jmp case.0x1000fe78.9
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
cmp esi, 0xffffffff
je case.0x1000fe78.9
cmp esi, 0xd
jne 0x1000f9ec
push 0x100ab624
push str.DOpus.ParentWindow
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x1000f88e
push 0
push 0
push str.dopusmsg.RemoveCollectionsIcon
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push eax
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x8c]
call fcn.10040aa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], vtable.TiXmlHelper.0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x49c]
push 0x104
push eax
push 0
mov dword [ebp - 0x8c], vtable.TiXmlPrefs.0
call sym.dopuslib32.dll_Ordinal_71
add esp, 0xc
test eax, eax
je 0x1000f902
push str.ConfigFilesPrefs.oxc
lea eax, [ebp - 0x49c]
push 0x104
push eax
call sym.dopuslib32.dll_SafePathAppend
add esp, 8
lea eax, [ebp - 0x49c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.10040b90
jmp 0x1000f904
xor al, al
mov byte [ebp - 0x40], al
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x8c]
push str.settings2
push str.flags
call fcn.10032000
mov ecx, eax
and ecx, 0x4000000
or ecx, 0
je 0x1000f972
push edx
and eax, 0xfbffffff
lea ecx, [ebp - 0x8c]
push eax
push str.settings2
push str.flags
call fcn.10032090
test eax, eax
je 0x1000f972
lea ecx, [ebp - 0x8c]
call fcn.10041280
test al, al
je 0x1000f972
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1000f972
push eax
lea ecx, [ebp - 0x8c]
call fcn.10040f70
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNamespace
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f9aa
push str.D2FCA36D_93CD_46F2_8324_6308F6E31B53
push dword [ebp + 8]
call sym.dopuslib32.dll_recursiveDeleteKey
add esp, 8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push eax
mov word [ebp + 0xc], ax
mov byte [ebp + 0xe], al
lea eax, [ebp + 0xc]
push eax
push 0
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.10006280
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ebx, [edi + 0x40b4]
cmp esi, 0x11
jne 0x1000fdc8
cmp word [ebx], 0
jne 0x1000fdc8
test byte [0x100c5cc8], 0xe0
je case.0x1000fe78.9
mov eax, dword [ebp - 0x14]
test eax, eax
je case.0x1000fe78.9
mov edi, dword [eax + 0x2c]
test edi, edi
je case.0x1000fe78.9
cmp dword [eax + 0x34], 0
je case.0x1000fe78.9
or esi, 0xffffffff
mov ebx, str.shell:::52205fd8_5dfb_447d_801a_d0b52f2e83e1
lea ebx, [ebx]
test esi, esi
js 0x1000fa4b
mov eax, esi
dec esi
test eax, eax
jle 0x1000fa93
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x1000fa7e
test ax, ax
je 0x1000fa93
add edi, 2
add ebx, 2
jmp 0x1000fa40
test cx, cx
jne 0x1000fa88
cmp esi, 0xffffff9d
je 0x1000fa93
movzx eax, ax
sub eax, ecx
jne case.0x1000fe78.9
mov edi, dword [ebp - 0x14]
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle case.0x1000fe78.9
mov edi, dword [edi + 0x34]
or esi, 0xffffffff
add edi, 0xfffffff8
mov ebx, str..lnk
lea edi, [edi + eax*2]
test edi, edi
je 0x1000fb0f
lea ecx, [ecx]
test esi, esi
js 0x1000facb
mov eax, esi
dec esi
test eax, eax
jle 0x1000fb25
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx]
push eax
call fcn.10086fcc
mov ecx, dword [ebp + 0xc]
add esp, 8
movzx eax, ax
cmp cx, ax
jne 0x1000fafe
test cx, cx
je 0x1000fb25
add edi, 2
add ebx, 2
jmp 0x1000fac0
test ax, ax
jne 0x1000fb08
cmp esi, 0xffffff9d
je 0x1000fb25
movzx ecx, cx
sub ecx, eax
jmp 0x1000fb1d
xor ecx, ecx
test edi, edi
setne cl
lea ecx, [ecx*2 - 1]
test ecx, ecx
jne case.0x1000fe78.9
push 0x208
lea eax, [ebp - 0x294]
push 0
push eax
call fcn.1007cff0
push 0x20a
lea eax, [ebp - 0x6a6]
push 0
push eax
call fcn.1007cff0
add esp, 0x18
lea eax, [ebp - 0x294]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x100ade1c
lea eax, [ebp - 0x294]
push 0x104
push eax
call sym.dopuslib32.dll_SafePathAppend
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000fbcc
lea ecx, [ebp - 0x294]
mov esi, 0x100ade1c
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1000fbc7
movzx eax, word [esi + ecx]
test ax, ax
je 0x1000fbc0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1000fba0
jmp 0x1000fbc4
test edx, edx
jne 0x1000fbc7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov eax, 0x22
mov edx, 0x106
mov word [ebp - 0x6a8], ax
lea eax, [ebp - 0x6a8]
cmp word [eax], 0
je 0x1000fbf1
add eax, 2
sub edx, 1
jne 0x1000fbe3
mov ecx, 0x106
mov esi, edx
mov eax, ecx
sub eax, edx
neg esi
sbb esi, esi
and esi, eax
test edx, edx
je 0x1000fc49
mov edx, ecx
lea eax, [ebp - 0x6a8]
lea eax, [eax + esi*2]
sub edx, esi
je 0x1000fc41
lea ebx, [ebp - 0x294]
mov esi, SysReAllocString
sub ebx, eax
test esi, esi
je 0x1000fc44
movzx edi, word [ebx + eax]
test di, di
je 0x1000fc3d
mov word [eax], di
dec esi
add eax, 2
sub edx, 1
jne 0x1000fc22
jmp 0x1000fc41
test edx, edx
jne 0x1000fc44
sub eax, 2
xor edx, edx
mov word [eax], dx
mov edx, ecx
lea eax, [ebp - 0x6a8]
cmp word [eax], 0
je 0x1000fc5f
add eax, 2
sub edx, 1
jne 0x1000fc51
mov eax, ecx
mov esi, edx
sub eax, edx
neg esi
sbb esi, esi
and esi, eax
test edx, edx
je 0x1000fcaf
lea eax, [ebp - 0x6a8]
lea eax, [eax + esi*2]
sub ecx, esi
je 0x1000fca7
mov edi, 0x100ade38
mov edx, SysReAllocString
sub edi, eax
test edx, edx
je 0x1000fcaa
movzx esi, word [edi + eax]
test si, si
je 0x1000fca3
mov word [eax], si
dec edx
add eax, 2
sub ecx, 1
jne 0x1000fc88
jmp 0x1000fca7
test ecx, ecx
jne 0x1000fcaa
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.1000b050
mov dword [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push dword [eax + 0x30]
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6c], 0
push 0
push 0x20
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x68], 0
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000fdb4
mov eax, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000fd83
push eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1000fd8d
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000b090
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000b090
jmp case.0x1000fe78.9
push 0
push 0
call sym.dopuslib32.dll_FindOrStartDOpusW
mov edi, eax
add esp, 8
test edi, edi
je case.0x1000fe78.9
cmp esi, 0xc
jne 0x1000fe68
push 0x208
lea eax, [ebp - 0x49c]
push 0
push eax
call fcn.1007cff0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x49c]
mov edx, dword [ebp - 0x20]
push eax
lea ecx, [ecx + 0x40a8]
call fcn.1000d280
add esp, 0x10
test al, al
je case.0x1000fe78.9
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x2c], esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push 0x4a
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x12
ja case.0x1000fe78.9
movzx eax, byte [esi + 0x1000ff70]
jmp dword [eax*4 + 0x1000ff5c]
push 0
push 2
push 0x100ade3c
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push eax
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1000fe53
mov eax, dword [ebp + 0xc]
push str.dopusmsg.Prefs
mov esi, dword [eax + 8]
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push esi
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1000fe53
push dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
call fcn.1000b600
mov edx, dword [ebx + 0x10]
push edi
push eax
lea eax, [ebx + 0xa0]
push esi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call fcn.10010120
add esp, 0x10
test eax, eax
je case.0x1000fe78.9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je case.0x1000fe78.9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
and eax, 0x80
or eax, 0
je case.0x1000fe78.9
push 0
push ebx
call sym.dopuslib32.dll_Ordinal_42
add esp, 8
test eax, eax
je case.0x1000fe78.9
mov eax, dword [ebp + 0xc]
mov ecx, edi
push 0
push 0
push 0
mov edx, dword [eax + 8]
push 0
push ebx
push str.open
call fcn.10020370
add esp, 0x18
cmp eax, 0x20
ja 0x1000fe53
mov ecx, dword [ebp - 0xc]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8