Function at 0x23a18690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x23bcf373
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 2
xor ebx, ebx
push 0x23bf0578
mov esi, ecx
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.23a12760
jmp 0x23a186d5
mov edi, dword [0x23c7a190]
mov dword [ebp - 0x14], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 2
call fcn.23a01070
mov edx, dword [edi + 0x40]
mov eax, edx
mov byte [ebp - 4], 3
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x23a18700
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x34]
call fcn.23a028a0
cmp dword [ebp - 0x1c], 8
mov edi, dword [ebp - 0x30]
jae 0x23a18725
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x23a18749
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x23a18746
push eax
push str.RegCloseKey___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], cx
test eax, eax
je 0x23a18866
lea edx, [ebp - 0x6c]
push edx
push str.asam
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.23a0f4c0
xor eax, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 5
jae 0x23a187aa
lea eax, [ebp - 0x68]
push str.SetupSetup.db
push eax
lea ecx, [ebp - 0x50]
call fcn.23a034b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x23a18804
mov ecx, esi
call fcn.23a12900
cmp dword [ebp - 0x38], 8
jb 0x23a187dd
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.23a2ed1b
add esp, 4
xor edx, edx
cmp dword [ebp - 0x54], 8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
jb 0x23a188f0
mov eax, dword [ebp - 0x68]
push eax
call fcn.23a2ed1b
add esp, 4
jmp 0x23a188f0
mov dword [esi + 0x34], 1
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x23a18821
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.23a2ed1b
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
cmp dword [ebp - 0x54], esi
jb 0x23a1883e
mov eax, dword [ebp - 0x68]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x1c], esi
jb 0x23a1885b
mov edx, dword [ebp - 0x30]
push edx
call fcn.23a2ed1b
add esp, 4
xor eax, eax
mov word [ebp - 0x30], ax
jmp 0x23a189a1
lea edx, [ebp - 0x6c]
push edx
push str.InstallLocation
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.23a12500
test eax, eax
je 0x23a188c4
mov dword [esi + 0x34], 1
mov esi, 8
cmp dword [ebp - 0x54], esi
jb 0x23a1889c
mov eax, dword [ebp - 0x68]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x1c], esi
jb 0x23a1885b
mov edx, dword [ebp - 0x30]
push edx
call fcn.23a2ed1b
add esp, 4
xor eax, eax
mov word [ebp - 0x30], ax
jmp 0x23a189a1
mov eax, dword [ebp - 0x68]
mov edi, 8
cmp dword [ebp - 0x54], edi
jae 0x23a188d4
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x2c]
call fcn.23a12480
cmp dword [ebp - 0x54], edi
jb 0x23a188ee
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.23a2ed1b
add esp, 4
xor edi, edi
xor edx, edx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.23a13fe0
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x23a18922
lea eax, [ebp - 0x84]
push esi
push eax
lea ecx, [esi + 0x74]
call fcn.23a178e0
cmp dword [esi + 0x30], 2
mov dword [esi + 0x34], 5
je 0x23a18962
or dword [esi + 0x20], 4
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x23a1894f
push 0x17
push 0x23bf0588
push eax
jmp 0x23a1895b
cmp eax, edi
jne 0x23a18962
push 2
push 0x23bf0578
push edi
mov ecx, esi
call fcn.23a12760
mov esi, 8
cmp dword [ebp - 0x70], esi
jb 0x23a1897b
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.23a2ed1b
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x1c], esi
jb 0x23a1899b
mov eax, dword [ebp - 0x30]
push eax
call fcn.23a2ed1b
add esp, 4
xor ecx, ecx
mov word [ebp - 0x30], cx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x23a189cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x23a189cf
push eax
push str.RegCloseKey___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret