Function at 0x404960
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3604]
mov eax, 0x3604
call fcn.00435250
push 0xffffffffffffffff
push 0x449650
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x3600], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x360c]
mov dword [ebp - 0x18], eax
mov edi, edx
mov esi, dword [ebp + 0x3610]
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 0x3614]
mov dword [ebp - 4], 0
test edi, edi
je 0x404b49
test esi, esi
je 0x404b49
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049d6
sub eax, edx
sar eax, 1
je 0x404b49
push 0x800
push 0
lea edx, [ebp]
push edx
call fcn.00431f90
push 0x200
push 0
lea eax, [ebp + 0x3200]
push eax
call fcn.00431f90
push str.DRIVER_NAME
push esi
push str._s__s
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00431065
add esp, 0x2c
push 0
push pe_nt_image_headers32
lea edx, [ebp + 0x3200]
push edx
lea edx, [ebp]
mov ecx, edi
call fcn.00409c00
test eax, eax
je 0x404a6c
push esi
push str.Invalid_printer_component__Driver_Name_was_not_defined_______s_
mov ecx, 0x467200
call fcn.00405f70
push 0x200
push 0
lea eax, [ebp + 0x3200]
push eax
call fcn.00431f90
add esp, 0x14
push 0x200
push 0
lea ecx, [ebp + 0x3400]
push ecx
call fcn.00431f90
add esp, 0xc
push pe_nt_image_headers32
cmp byte [0x467424], 0
je 0x404ab9
lea edx, [ebp + 0x3400]
push edx
push str.inf_x64
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
je 0x404ae8
push 0x200
push 0
lea eax, [ebp + 0x3400]
push eax
jmp 0x404ae0
lea ecx, [ebp + 0x3400]
push ecx
push str.inf_x86
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
je 0x404ae8
push 0x200
push 0
lea edx, [ebp + 0x3400]
push edx
call fcn.00431f90
add esp, 0xc
lea eax, [ebp + 0x3400]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404af1
sub eax, edx
sar eax, 1
jne 0x404b70
push 0x200
push 0
lea eax, [ebp + 0x3400]
push eax
call fcn.00431f90
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [ebp + 0x3400]
push ecx
push 0x455688
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
je 0x404b70
push esi
push str.Invalid_printer_component__Inf_Name_was_not_defined_______s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3600]
xor ecx, ebp
call fcn.00431056
add ebp, 0x3604
mov esp, ebp
pop ebp
ret 0xc
push 0x200
push 0
lea edx, [ebp + 0x3000]
push edx
call fcn.00431f90
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp + 0x3000]
push eax
push 0x45570c
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
je 0x404bba
push 0x200
push 0
lea ecx, [ebp + 0x3000]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push 0
lea edx, [ebp + 0x2800]
push edx
call fcn.00431f90
add esp, 0xc
push 0x400
lea eax, [ebp + 0x2800]
push eax
push str.index
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
jne 0x404c02
lea ecx, [ebp + 0x2800]
push ecx
call fcn.004313bd
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x404c09
mov dword [ebp - 0x14], 0xffffffff
push 0x800
push 0
lea edx, [ebp + 0x2000]
push edx
call fcn.00431f90
add esp, 0xc
lea eax, [ebp + 0x3000]
lea edx, [eax + 2]
jmp 0x404c30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c30
sub eax, edx
sar eax, 1
je 0x404c74
lea eax, [ebp + 0x3400]
push eax
lea ecx, [ebp + 0x3000]
push ecx
mov edi, dword [ebp - 0x18]
mov edx, dword [edi + 0x204]
push edx
push str._s_s_s
push 0x400
lea eax, [ebp + 0x2000]
push eax
call fcn.00431065
add esp, 0x18
jmp 0x404ca1
lea ecx, [ebp + 0x3400]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x204]
push eax
push 0x454448
push 0x400
lea ecx, [ebp + 0x2000]
push ecx
call fcn.00431065
add esp, 0x14
mov edi, dword [ebp - 0x18]
lea edx, [ebp + 0x2000]
push edx
push str.INF_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404cea
lea ecx, [ebp + 0x2000]
push ecx
push esi
push str.Invalid_Inf_Path___s__:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0xc
jmp 0x404b49
push 0x800
push 0
lea edx, [ebp + 0x1800]
push edx
call fcn.00431f90
lea eax, [ebp + 0x2000]
push eax
push str.__s___W__r
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.00431065
add esp, 0x1c
test ebx, ebx
je 0x404d91
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d26
sub eax, edx
sar eax, 1
je 0x404d91
push 0x800
push 0
lea edx, [ebp + 0x2800]
push edx
call fcn.00431f90
push ebx
push str.__N___s_
push 0x400
lea eax, [ebp + 0x2800]
push eax
call fcn.00431065
push 0x3ff
lea ecx, [ebp + 0x2800]
push ecx
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0043169a
push ebx
push str.Port_Name_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x34
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x404e0b
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404da0
sub eax, edx
sar eax, 1
je 0x404e0b
push 0x800
push 0
lea eax, [ebp + 0x2800]
push eax
call fcn.00431f90
push esi
push str.__M__s_
push 0x400
lea ecx, [ebp + 0x2800]
push ecx
call fcn.00431065
push 0x3ff
lea edx, [ebp + 0x2800]
push edx
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0043169a
push esi
push str.MFG_Name_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x34
or esi, 0xffffffff
cmp dword [ebp - 0x14], esi
jne 0x404e6d
push 0x800
push 0
lea ecx, [ebp + 0x2800]
push ecx
call fcn.00431f90
push esi
push str.__i_d
push 0x400
lea edx, [ebp + 0x2800]
push edx
call fcn.00431065
push 0x3ff
lea eax, [ebp + 0x2800]
push eax
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043169a
push esi
push str.Index_:___d_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x34
lea eax, [ebp + 0x3200]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e76
sub eax, edx
sar eax, 1
je 0x404ee2
push pe_nt_image_headers32
lea edx, [ebp + 0x3200]
push edx
call fcn.00431950
push str.UNIVERSAL
lea eax, [ebp + 0x3200]
push eax
call fcn.0043160c
add esp, 0x10
test eax, eax
je 0x404ee2
push 0x3ff
push str.__x__d__s
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043169a
push str.__x__d__s
push str.USD_Parameter:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x18
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.00431f90
add esp, 0xc
mov eax, dword [edi + 0x204]
lea ecx, [ebp + 0x1000]
push eax
cmp byte [0x467424], 0
je 0x404fd5
push str.__swiainst64.exe_
push 0x400
push ecx
call fcn.00431065
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.00431f90
push 0x3ff
lea eax, [ebp + 0x1000]
push eax
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.00430f8d
add esp, 0x2c
mov ecx, 0x455210
lea edx, [ebp + 0x800]
call fcn.004087b0
mov ecx, 0x455210
lea edx, [ebp + 0x800]
call fcn.00408960
lea edx, [ebp + 0x800]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404fe8
lea eax, [ebp + 0x1000]
push eax
push str.__s__installer_file_is_not_found_
mov ecx, 0x467200
call fcn.00405f70
mov ecx, dword [edi + 0x204]
push ecx
push str.__swiainst.exe_
push 0x400
lea edx, [ebp + 0x1000]
push edx
call fcn.00431065
add esp, 0x18
lea edx, [ebp + 0x1800]
lea ecx, [ebp + 0x1000]
call fcn.00405090
mov dword [ebp - 4], esi
jmp 0x404b49
push str.__swiainst.exe_
push 0x400
push ecx
call fcn.00431065
add esp, 0x10
lea edx, [ebp + 0x1800]
lea ecx, [ebp + 0x1000]
call fcn.00405090
mov dword [ebp - 4], esi
jmp 0x404b49