Function at 0x10024880
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 0x10024cea
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 0x10024b88
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 0x100249e7
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x100249e7
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 0x10024952
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 0x100249e7
cmp dword [esp + 0x3c], ebx
je 0x100249a0
mov esi, 1
jmp 0x100249bc
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 0x100249e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x10024cec
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 esi, dword [esp + 0x30]
push str.Path
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x44]
call fcn.10016410
test eax, eax
jne 0x10024a87
mov byte [esp + 0x24], bl
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10024a56
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 0x10024cea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10024cea
lea ebx, [esp + 0x38]
call fcn.10024d10
mov edi, dword [esp + 0x38]
push 0x5c
push edi
call fcn.100576f3
add esp, 8
test eax, eax
je 0x10024b57
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10024b57
inc eax
lea ecx, [esp + 0x18]
mov edx, ebx
call fcn.1001a520
mov edi, ebx
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 edi, dword [esp + 0x40]
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024b53
cmp dword [esp + 0x3c], 0
je 0x10024b1e
mov esi, 1
jmp 0x10024b3a
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, edi
call fcn.10024340
mov esi, eax
lea eax, [esp + 0x30]
call fcn.10022bd0
lea eax, [esp + 0x38]
call fcn.10022bd0
mov eax, esi
jmp 0x10024cec
mov esi, dword [esp + 0x30]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10024b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x10024a65
mov edx, dword [esi]
lea ebp, [ebp + ebp*2]
add ebp, ebp
mov ecx, dword [ebp + ebp + 0x100900c0]
add ebp, ebp
push ecx
push edx
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 0x10024c0b
cmp dword [esp + 0x3c], 0
je 0x10024bc5
mov edi, 1
jmp 0x10024be0
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x100900b8]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push ebx
push edx
mov ecx, esi
call fcn.10024340
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10024c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x10024cec
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 esi, dword [esp + 0x20]
add esp, 8
push str.Path
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x44]
call fcn.10016410
test eax, eax
jne 0x10024c67
mov byte [esp + 0x24], al
jmp 0x10024a3a
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 0x10024cd8
cmp dword [esp + 0x3c], 0
je 0x10024ca3
mov esi, 1
jmp 0x10024cc2
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 0x10024cec
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