Function at 0x404970
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3604]
mov eax, 0x3604
call fcn.004351f0
push 0xffffffffffffffff
push 0x4495f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4615e0]
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 0x404b59
test esi, esi
je 0x404b59
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049e6
sub eax, edx
sar eax, 1
je 0x404b59
push 0x800
push 0
lea edx, [ebp]
push edx
call fcn.00431f30
push 0x200
push 0
lea eax, [ebp + 0x3200]
push eax
call fcn.00431f30
push str.DRIVER_NAME
push esi
push str._s__s
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00431005
add esp, 0x2c
push 0
push pe_nt_image_headers32
lea edx, [ebp + 0x3200]
push edx
lea edx, [ebp]
mov ecx, edi
call fcn.00409ba0
test eax, eax
je 0x404a7c
push esi
push str.Invalid_printer_component__Driver_Name_was_not_defined_______s_
mov ecx, 0x466208
call fcn.00405f80
push 0x200
push 0
lea eax, [ebp + 0x3200]
push eax
call fcn.00431f30
add esp, 0x14
push 0x200
push 0
lea ecx, [ebp + 0x3400]
push ecx
call fcn.00431f30
add esp, 0xc
push pe_nt_image_headers32
cmp byte [0x46642c], 0
je 0x404ac9
lea edx, [ebp + 0x3400]
push edx
push str.inf_x64
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
je 0x404af8
push 0x200
push 0
lea eax, [ebp + 0x3400]
push eax
jmp 0x404af0
lea ecx, [ebp + 0x3400]
push ecx
push str.inf_x86
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
je 0x404af8
push 0x200
push 0
lea edx, [ebp + 0x3400]
push edx
call fcn.00431f30
add esp, 0xc
lea eax, [ebp + 0x3400]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b01
sub eax, edx
sar eax, 1
jne 0x404b80
push 0x200
push 0
lea eax, [ebp + 0x3400]
push eax
call fcn.00431f30
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [ebp + 0x3400]
push ecx
push 0x454688
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
je 0x404b80
push esi
push str.Invalid_printer_component__Inf_Name_was_not_defined_______s_
mov ecx, 0x466208
call fcn.00405f80
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.00430ff6
add ebp, 0x3604
mov esp, ebp
pop ebp
ret 0xc
push 0x200
push 0
lea edx, [ebp + 0x3000]
push edx
call fcn.00431f30
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp + 0x3000]
push eax
push 0x45470c
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
je 0x404bca
push 0x200
push 0
lea ecx, [ebp + 0x3000]
push ecx
call fcn.00431f30
add esp, 0xc
push 0x800
push 0
lea edx, [ebp + 0x2800]
push edx
call fcn.00431f30
add esp, 0xc
push 0x400
lea eax, [ebp + 0x2800]
push eax
push str.index
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
jne 0x404c12
lea ecx, [ebp + 0x2800]
push ecx
call fcn.0043135d
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x404c19
mov dword [ebp - 0x14], 0xffffffff
push 0x800
push 0
lea edx, [ebp + 0x2000]
push edx
call fcn.00431f30
add esp, 0xc
lea eax, [ebp + 0x3000]
lea edx, [eax + 2]
jmp 0x404c40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c40
sub eax, edx
sar eax, 1
je 0x404c84
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.00431005
add esp, 0x18
jmp 0x404cb1
lea ecx, [ebp + 0x3400]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x204]
push eax
push 0x453448
push 0x400
lea ecx, [ebp + 0x2000]
push ecx
call fcn.00431005
add esp, 0x14
mov edi, dword [ebp - 0x18]
lea edx, [ebp + 0x2000]
push edx
push str.INF_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404cfa
lea ecx, [ebp + 0x2000]
push ecx
push esi
push str.Invalid_Inf_Path___s__:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0xc
jmp 0x404b59
push 0x800
push 0
lea edx, [ebp + 0x1800]
push edx
call fcn.00431f30
lea eax, [ebp + 0x2000]
push eax
push str.__s___W__r
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.00431005
add esp, 0x1c
test ebx, ebx
je 0x404da1
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d36
sub eax, edx
sar eax, 1
je 0x404da1
push 0x800
push 0
lea edx, [ebp + 0x2800]
push edx
call fcn.00431f30
push ebx
push str.__N___s_
push 0x400
lea eax, [ebp + 0x2800]
push eax
call fcn.00431005
push 0x3ff
lea ecx, [ebp + 0x2800]
push ecx
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0043163a
push ebx
push str.Port_Name_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x34
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x404e1b
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404db0
sub eax, edx
sar eax, 1
je 0x404e1b
push 0x800
push 0
lea eax, [ebp + 0x2800]
push eax
call fcn.00431f30
push esi
push str.__M__s_
push 0x400
lea ecx, [ebp + 0x2800]
push ecx
call fcn.00431005
push 0x3ff
lea edx, [ebp + 0x2800]
push edx
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0043163a
push esi
push str.MFG_Name_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x34
or esi, 0xffffffff
cmp dword [ebp - 0x14], esi
jne 0x404e7d
push 0x800
push 0
lea ecx, [ebp + 0x2800]
push ecx
call fcn.00431f30
push esi
push str.__i_d
push 0x400
lea edx, [ebp + 0x2800]
push edx
call fcn.00431005
push 0x3ff
lea eax, [ebp + 0x2800]
push eax
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043163a
push esi
push str.Index_:___d_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x34
lea eax, [ebp + 0x3200]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e86
sub eax, edx
sar eax, 1
je 0x404ef2
push pe_nt_image_headers32
lea edx, [ebp + 0x3200]
push edx
call fcn.004318f0
push str.UNIVERSAL
lea eax, [ebp + 0x3200]
push eax
call fcn.004315ac
add esp, 0x10
test eax, eax
je 0x404ef2
push 0x3ff
push str.__x__d__s
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043163a
push str.__x__d__s
push str.USD_Parameter:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x18
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.00431f30
add esp, 0xc
mov eax, dword [edi + 0x204]
lea ecx, [ebp + 0x1000]
push eax
cmp byte [0x46642c], 0
je 0x404fe5
push str.__swiainst64.exe_
push 0x400
push ecx
call fcn.00431005
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.00431f30
push 0x3ff
lea eax, [ebp + 0x1000]
push eax
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.00430f2d
add esp, 0x2c
mov ecx, 0x454210
lea edx, [ebp + 0x800]
call fcn.00408750
mov ecx, 0x454210
lea edx, [ebp + 0x800]
call fcn.00408900
lea edx, [ebp + 0x800]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404ff8
lea eax, [ebp + 0x1000]
push eax
push str.__s__installer_file_is_not_found_
mov ecx, 0x466208
call fcn.00405f80
mov ecx, dword [edi + 0x204]
push ecx
push str.__swiainst.exe_
push 0x400
lea edx, [ebp + 0x1000]
push edx
call fcn.00431005
add esp, 0x18
lea edx, [ebp + 0x1800]
lea ecx, [ebp + 0x1000]
call fcn.004050a0
mov dword [ebp - 4], esi
jmp 0x404b59
push str.__swiainst.exe_
push 0x400
push ecx
call fcn.00431005
add esp, 0x10
lea edx, [ebp + 0x1800]
lea ecx, [ebp + 0x1000]
call fcn.004050a0
mov dword [ebp - 4], esi
jmp 0x404b59