Function at 0x10023ea0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x10077458
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008e418]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
test ebp, ebp
jl 0x10024319
mov eax, dword [0x1009238c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009238c
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x30]
lea edi, [esp + 0x38]
cmp ebx, 0xb
jne 0x100241c0
mov eax, esi
call fcn.1001a5f0
mov ebx, edi
call fcn.10024d10
mov esi, dword [esp + 0x38]
push 0x5c
push esi
call fcn.100576f3
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x10024007
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x10024007
inc eax
lea ecx, [esp + 0x30]
mov edx, edi
call fcn.1001a520
mov byte [esp + 0x24], 1
call fcn.1001a5f0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10023f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
push str.Visio11_
lea ecx, [esp + 0x40]
push ecx
call fcn.10016570
lea esi, [ebp + ebp*2]
add esi, esi
mov edx, dword [esi + esi + 0x100900c0]
add esi, esi
push edx
push str._s.exe
lea edi, [esp + 0x40]
call fcn.10024fc0
mov edi, dword [esp + 0x40]
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024007
cmp dword [esp + 0x3c], ebx
je 0x10023fc0
mov esi, 1
jmp 0x10023fdc
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x100900b8]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xb
push edx
mov ecx, edi
call fcn.10024340
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10024000
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x1002431b
lea esi, [esp + 0x38]
call fcn.10016b60
mov edx, dword [0x1009238c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1009238c
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov edx, str.SOFTWAREMicrosoftOffice11.0CommonInstallRoot
lea edi, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.10016240
mov edi, dword [esp + 0x30]
push str.Path
push edi
call fcn.10024e00
test eax, eax
jne 0x1002409e
mov byte [esp + 0x24], bl
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002406d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10024319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10024319
lea ebx, [esp + 0x38]
call fcn.10024d10
mov ebx, dword [esp + 0x38]
push 0x5c
push ebx
call fcn.100576f3
add esp, 8
test eax, eax
je 0x10024172
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x10024172
inc eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
call fcn.1001a520
lea edi, [esp + 0x38]
mov byte [esp + 0x24], 3
call fcn.1001a5f0
lea eax, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.10022bd0
mov edx, str.Visio11_
call fcn.10016280
lea esi, [ebp + ebp*2]
add esi, esi
mov ecx, dword [esi + esi + 0x100900c0]
add esi, esi
push ecx
push str._s.exe
call fcn.10024fc0
mov ebx, dword [esp + 0x40]
add esp, 8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002416e
cmp dword [esp + 0x3c], 0
je 0x10024139
mov esi, 1
jmp 0x10024155
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x100900b8]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0xb
push ecx
mov ecx, ebx
call fcn.10024340
mov esi, eax
lea eax, [esp + 0x30]
call fcn.10022bd0
lea eax, [esp + 0x38]
call fcn.10022bd0
mov eax, esi
jmp 0x1002431b
mov edi, dword [esp + 0x30]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10024193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10024319
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x10024319
mov ecx, dword [esi]
lea ebp, [ebp + ebp*2]
add ebp, ebp
mov eax, dword [ebp + ebp + 0x100900c0]
add ebp, ebp
push eax
push ecx
push str._s_s.exe
call fcn.10016c70
mov esi, dword [esp + 0x44]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024243
cmp dword [esp + 0x3c], 0
je 0x100241fd
mov edi, 1
jmp 0x10024218
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0x100900b8]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.10024340
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002423c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x1002431b
mov edx, dword [0x1009238c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1009238c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x38]
mov byte [esp + 0x24], 4
call fcn.10016b60
push ebx
push str.SOFTWAREMicrosoftOffice_d.0VisioInstallRoot
lea edi, [esp + 0x20]
call fcn.10016c70
mov edi, dword [esp + 0x20]
add esp, 8
push str.Path
push edi
call fcn.10024e00
test eax, eax
jne 0x10024296
mov byte [esp + 0x24], al
jmp 0x10024051
lea ebx, [esp + 0x38]
call fcn.10024d10
mov ecx, dword [ebp + 0x100900c0]
push ecx
push 0x1007f9b0
mov edi, ebx
call fcn.10024fc0
mov esi, dword [esp + 0x40]
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024307
cmp dword [esp + 0x3c], 0
je 0x100242d2
mov esi, 1
jmp 0x100242f1
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0x100900b8]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call fcn.10024340
mov esi, eax
lea eax, [esp + 0x18]
call fcn.10022bd0
lea eax, [esp + 0x38]
call fcn.10022bd0
mov eax, esi
jmp 0x1002431b
lea eax, [esp + 0x18]
call fcn.10022bd0
lea eax, [esp + 0x38]
call fcn.10022bd0
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14