Function at 0x45b9c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ceffe
mov eax, dword fs:[0]
push eax
mov eax, 0x3048
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x3040], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0x305c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x306c]
lea eax, [ebp + 0x204]
push str.Printer
push eax
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x45ba3e
lea eax, [ebp + 0xb418]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ba27
sub eax, edx
sar eax, 1
setne al
jmp 0x45c0c4
lea eax, [ebp + 0xaa18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ba47
sub eax, edx
xor edi, edi
sar eax, 1
je 0x45bf6c
push 0x800
lea eax, [esp + 0x858]
push edi
push eax
call fcn.004ab450
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push 3
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0x4dc4d8
mov word [esi + 4], di
call fcn.004102a0
mov dword [esp + 0x3080], edi
push 0x52c1fc
mov dword [esp + 0x3084], 0xffffffff
lea esi, [esp + 0x3c]
call fcn.00411c20
mov dword [esp + 0x3064], 1
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x45bace
mov eax, dword [eax + 4]
jmp 0x45bad1
add eax, 4
push eax
push str.Software_sUninstallInfo
lea ecx, [esp + 0x85c]
push 0x400
push ecx
call fcn.004a9ca9
or esi, 0xffffffff
add esp, 0x10
mov dword [esp + 0x3064], esi
cmp dword [esp + 0x34], ebx
jb 0x45bb09
mov edx, dword [esp + 0x20]
push edx
call fcn.004993dd
add esp, 4
push 0x2000
lea eax, [esp + 0x1058]
push edi
push eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
call fcn.004ab450
add esp, 0xc
push edi
push 1
push 0x2000
lea ecx, [esp + 0x1060]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0xaa18]
lea edx, [esp + 0x868]
call fcn.00456030
add esp, 0x14
test eax, eax
jne 0x45bbcb
lea ecx, [esp + 0x1054]
call fcn.00442a00
test al, al
je 0x45bbcb
push str.Uninstall_key_is_valid___so_the_uninstall_command_is_replaced_with_the_command_from_uninstall_key
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
push 0x800
lea esi, [ebp + 0x9a18]
push edi
push esi
call fcn.004ab450
add esp, 0xc
push 0x800
lea edx, [ebp + 0xa218]
push edi
push edx
call fcn.004ab450
add esp, 0xc
push 0x800
push edi
add ebp, 0x8218
push ebp
call fcn.004ab450
add esp, 0xc
lea eax, [esp + 0x1054]
jmp 0x45c0ae
push 0x800
lea ecx, [esp + 0x858]
push edi
push ecx
call fcn.004ab450
sub esp, 0x10
mov edx, str.PROGRAM_NAME
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.00411be0
mov dword [esp + 0x3080], 2
push 0x52c1fc
mov dword [esp + 0x3084], esi
lea esi, [esp + 0x58]
call fcn.00411c20
mov dword [esp + 0x3064], 3
cmp dword [eax + 0x18], ebx
jb 0x45bc26
mov eax, dword [eax + 4]
jmp 0x45bc29
add eax, 4
push eax
sub esp, 0x1c
mov edx, 0x4dc4d8
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00411be0
mov byte [esp + 0x3084], 4
push 0x52c1fc
mov byte [esp + 0x3088], 3
lea esi, [esp + 0x40]
call fcn.00411c20
mov byte [esp + 0x3068], 5
cmp dword [eax + 0x18], ebx
jb 0x45bc6d
mov eax, dword [eax + 4]
jmp 0x45bc70
add eax, 4
push eax
push str.Software_s_sUninstallInfo
lea edx, [esp + 0x860]
push 0x400
push edx
call fcn.004a9ca9
add esp, 0x14
mov byte [esp + 0x3064], 3
cmp dword [esp + 0x34], ebx
jb 0x45bca6
mov eax, dword [esp + 0x20]
push eax
call fcn.004993dd
add esp, 4
mov esi, 7
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
mov dword [esp + 0x3064], 0xffffffff
cmp dword [esp + 0x50], ebx
jb 0x45bcd6
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004993dd
add esp, 4
push 0x2000
lea edx, [esp + 0x1058]
push edi
push edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov word [esp + 0x48], di
call fcn.004ab450
add esp, 0xc
push edi
push 1
push 0x2000
lea eax, [esp + 0x1060]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0xaa18]
lea edx, [esp + 0x868]
call fcn.00456030
add esp, 0x14
test eax, eax
jne 0x45bd9a
lea ecx, [esp + 0x1054]
call fcn.00442a00
test al, al
je 0x45bd9a
push str.Uninstall_key_is_valid___so_the_uninstall_command_is_replaced_with_the_command_from_uninstall_key
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
push 0x800
lea esi, [ebp + 0x9a18]
push edi
push esi
call fcn.004ab450
add esp, 0xc
push 0x800
lea ecx, [ebp + 0xa218]
push edi
push ecx
call fcn.004ab450
add esp, 0xc
push 0x800
push edi
add ebp, 0x8218
push ebp
call fcn.004ab450
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x1058]
push edx
jmp 0x45c0b4
push 0x800
lea eax, [esp + 0x858]
push edi
push eax
call fcn.004ab450
sub esp, 0x10
mov edx, str.PROGRAM_NAME
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.00411be0
mov dword [esp + 0x3080], 6
push 0x52c1fc
mov dword [esp + 0x3084], 0xffffffff
lea esi, [esp + 0x3c]
call fcn.00411c20
mov dword [esp + 0x3064], 7
cmp dword [eax + 0x18], ebx
jb 0x45bdf9
mov eax, dword [eax + 4]
jmp 0x45bdfc
add eax, 4
push eax
sub esp, 0x1c
mov edx, 0x4dc4d8
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00411be0
mov byte [esp + 0x3084], bl
push 0x52c1fc
mov byte [esp + 0x3088], 7
lea esi, [esp + 0x5c]
call fcn.00411c20
mov byte [esp + 0x3068], 9
cmp dword [eax + 0x18], ebx
jb 0x45be3f
mov eax, dword [eax + 4]
jmp 0x45be42
add eax, 4
push eax
push str.Software_s_sUninstallInfo
lea ecx, [esp + 0x860]
push 0x400
push ecx
call fcn.004a9ca9
add esp, 0x14
mov byte [esp + 0x3064], 7
cmp dword [esp + 0x50], ebx
jb 0x45be78
mov edx, dword [esp + 0x3c]
push edx
call fcn.004993dd
add esp, 4
mov esi, 7
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
mov dword [esp + 0x3064], 0xffffffff
cmp dword [esp + 0x34], ebx
jb 0x45bea8
mov eax, dword [esp + 0x20]
push eax
call fcn.004993dd
add esp, 4
push 0x2000
lea ecx, [esp + 0x1058]
push edi
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
call fcn.004ab450
add esp, 0xc
push edi
push 1
push 0x2000
lea edx, [esp + 0x1060]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0xaa18]
lea edx, [esp + 0x868]
call fcn.00456030
add esp, 0x14
test eax, eax
jne 0x45bf6c
lea ecx, [esp + 0x1054]
call fcn.00442a00
test al, al
je 0x45bf6c
push str.Uninstall_key_is_valid___so_the_uninstall_command_is_replaced_with_the_command_from_uninstall_key
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
push 0x800
lea esi, [ebp + 0x9a18]
push edi
push esi
call fcn.004ab450
add esp, 0xc
push 0x800
lea eax, [ebp + 0xa218]
push edi
push eax
call fcn.004ab450
add esp, 0xc
push 0x800
push edi
add ebp, 0x8218
push ebp
call fcn.004ab450
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x1058]
push ecx
jmp 0x45c0b4
mov ecx, ebp
call fcn.004105b0
cmp eax, 1
jne 0x45c0a6
lea esi, [ebp + 0x9a18]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45bf87
sub eax, edx
sar eax, 1
je 0x45c0a6
push 0x800
lea edx, [esp + 0x58]
push edi
push edx
call fcn.004ab450
add esp, 0xc
lea ebx, [ebp + 4]
push ebx
push 0x400
push 0x527d38
lea edi, [esp + 0x60]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x45bfe2
push 0x3ff
push esi
mov eax, edi
push 0x400
push eax
call fcn.004a9be0
add esp, 0x10
lea ecx, [esp + 0x54]
call fcn.00442a00
test al, al
je 0x45c0a6
push 0x3ff
lea ecx, [esp + 0x58]
push ecx
push 0x400
push esi
call fcn.004a9be0
push str.Image
lea esi, [ebp + 0x204]
push esi
call fcn.004a9af1
add esp, 0x18
test eax, eax
je 0x45c036
push str.NonDevice
push esi
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x45c0c2
push 0x800
lea edx, [esp + 0x58]
push 0
push edx
call fcn.004ab450
add esp, 0xc
push ebx
push 0x400
lea esi, [ebp + 0x8218]
push 0x527d38
lea edi, [esp + 0x60]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x45c080
push 0x3ff
push esi
mov eax, edi
push 0x400
push eax
call fcn.004a9be0
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c0aa
lea edx, [esp + 0x54]
push edx
push str.__s__inf_is_not_valid__
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
xor al, al
jmp 0x45c0c4
lea eax, [esp + 0x54]
push 0x3ff
push eax
push 0x400
push esi
call fcn.004a9be0
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x305c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3040]
xor ecx, esp
call fcn.004a998e
add esp, 0x3054
ret