Function at 0x404270
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3004]
mov eax, 0x3004
call fcn.00435250
push 0xffffffffffffffff
push 0x449680
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x3000], 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 + 0x300c]
mov dword [ebp - 0x18], eax
mov edi, edx
mov esi, dword [ebp + 0x3010]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x3018]
mov dword [ebp - 4], 0
test edi, edi
je 0x404398
test esi, esi
je 0x404398
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4042e6
sub eax, edx
sar eax, 1
je 0x404398
push 0x200
push 0
lea edx, [ebp + 0x2a00]
push edx
call fcn.00431f90
push 0x200
push 0
lea eax, [ebp + 0x2000]
push eax
call fcn.00431f90
push 0x200
push 0
lea ecx, [ebp + 0x2c00]
push ecx
call fcn.00431f90
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.00431f90
push str.DRIVER_NAME
push esi
push str._s__s
push 0x400
lea eax, [ebp + 0x1000]
push eax
call fcn.00431065
add esp, 0x44
push 0
push pe_nt_image_headers32
lea ecx, [ebp + 0x2000]
push ecx
lea edx, [ebp + 0x1000]
mov ecx, edi
call fcn.00409c00
test eax, eax
je 0x4043bf
push esi
push str.Invalid_printer_component__Driver_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 + 0x3000]
xor ecx, ebp
call fcn.00431056
add ebp, 0x3004
mov esp, ebp
pop ebp
ret 0x10
push 0x200
push 0
lea edx, [ebp + 0x2e00]
push edx
call fcn.00431f90
add esp, 0xc
push pe_nt_image_headers32
mov ecx, edi
cmp byte [0x467424], 0
je 0x40440c
lea eax, [ebp + 0x2e00]
push eax
push str.inf_x64
mov edx, esi
call fcn.0040a6a0
test eax, eax
je 0x404439
push 0x200
push 0
lea ecx, [ebp + 0x2e00]
push ecx
jmp 0x404431
lea edx, [ebp + 0x2e00]
push edx
push str.inf_x86
mov edx, esi
call fcn.0040a6a0
test eax, eax
je 0x404439
push 0x200
push 0
lea eax, [ebp + 0x2e00]
push eax
call fcn.00431f90
add esp, 0xc
lea eax, [ebp + 0x2e00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404442
sub eax, edx
sar eax, 1
jne 0x404492
push 0x200
push 0
lea ecx, [ebp + 0x2e00]
push ecx
call fcn.00431f90
add esp, 0xc
push pe_nt_image_headers32
lea edx, [ebp + 0x2e00]
push edx
push 0x455688
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
je 0x404492
push esi
push str.Invalid_printer_component__Inf_Name_was_not_defined_______s_
jmp 0x40438b
push 0x800
push 0
lea eax, [ebp + 0x2200]
push eax
call fcn.00431f90
add esp, 0xc
push 0x400
lea ecx, [ebp + 0x2200]
push ecx
push 0x45570c
mov edx, esi
mov ecx, edi
call fcn.0040a6a0
test eax, eax
je 0x4044dc
push 0x800
push 0
lea edx, [ebp + 0x2200]
push edx
call fcn.00431f90
add esp, 0xc
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.00431f90
add esp, 0xc
lea eax, [ebp + 0x2200]
lea edx, [eax + 2]
jmp 0x404500
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404500
sub eax, edx
sar eax, 1
je 0x404544
lea ecx, [ebp + 0x2e00]
push ecx
lea edx, [ebp + 0x2200]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x204]
push ecx
push str._s_s_s
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.00431065
add esp, 0x18
jmp 0x40456e
lea eax, [ebp + 0x2e00]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x204]
push edx
push 0x454448
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.00431065
add esp, 0x14
lea ecx, [ebp + 0x800]
push ecx
push str.INF_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
lea edx, [ebp + 0x800]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4045b7
lea eax, [ebp + 0x800]
push eax
push esi
push str.Invalid_Inf_Path___s__:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0xc
jmp 0x404398
push 0x800
push 0
lea ecx, [ebp + 0x1000]
push ecx
call fcn.00431f90
push str.PRINTER_NAME
push esi
push str._s__s
push 0x400
lea edx, [ebp + 0x1000]
push edx
call fcn.00431065
add esp, 0x20
push 0
push pe_nt_image_headers32
lea eax, [ebp + 0x2a00]
push eax
lea edx, [ebp + 0x1000]
mov ecx, edi
call fcn.00409c00
test eax, eax
je 0x40461e
push 0x200
push 0
lea ecx, [ebp + 0x2a00]
push ecx
call fcn.00431f90
add esp, 0xc
lea edx, [ebp + 0x2a00]
push edx
push str.PRINTER_NAME_:___s_
mov ecx, 0x467200
call fcn.00405f70
push 0x800
push 0
lea eax, [ebp + 0x1000]
push eax
call fcn.00431f90
push str.SHARE_NAME
push esi
push str._s__s
push 0x400
lea ecx, [ebp + 0x1000]
push ecx
call fcn.00431065
add esp, 0x28
push 0
push pe_nt_image_headers32
lea edx, [ebp + 0x2c00]
push edx
lea edx, [ebp + 0x1000]
mov ecx, edi
call fcn.00409c00
test eax, eax
je 0x40469b
push 0x200
push 0
lea eax, [ebp + 0x2c00]
push eax
call fcn.00431f90
add esp, 0xc
lea ecx, [ebp + 0x2c00]
push ecx
push str.SHARE_NAME_:___s_
mov ecx, 0x467200
call fcn.00405f70
push 0x800
push 0
lea edx, [ebp + 0x1800]
push edx
call fcn.00431f90
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp + 0x800]
push ecx
push str.__s___o___s_
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.00431065
add esp, 0x28
test ebx, ebx
je 0x404730
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4046f4
sub eax, edx
sar eax, 1
je 0x404730
mov eax, ebx
lea ecx, [ebp + 0x1800]
call fcn.00405ad0
push 0x3ff
push 0x4551e4
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0043169a
add esp, 0x10
lea eax, [ebp + 0x2a00]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404740
sub eax, edx
sar eax, 1
je 0x4047b8
push 0x455818
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043160c
add esp, 8
test eax, eax
jne 0x4047b8
push 0x800
push eax
lea edx, [ebp + 0x2200]
push edx
call fcn.00431f90
lea eax, [ebp + 0x2a00]
push eax
push str._n___s_
push 0x400
lea ecx, [ebp + 0x2200]
push ecx
call fcn.00431065
push 0x3ff
lea edx, [ebp + 0x2200]
push edx
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0043169a
add esp, 0x2c
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x404852
mov eax, esi
lea edx, [eax + 2]
jmp 0x4047d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4047d0
sub eax, edx
sar eax, 1
je 0x404852
push 0x455834
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043160c
add esp, 8
test eax, eax
jne 0x404852
push 0x800
push eax
lea edx, [ebp + 0x2200]
push edx
call fcn.00431f90
push esi
push str._p___s_
push 0x400
lea eax, [ebp + 0x2200]
push eax
call fcn.00431065
push 0x3ff
lea ecx, [ebp + 0x2200]
push ecx
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0043169a
push esi
push str.Port_Name_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x34
lea eax, [ebp + 0x2c00]
lea edx, [eax + 2]
jmp 0x404860
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404860
sub eax, edx
sar eax, 1
je 0x4048c1
push 0x800
push 0
lea eax, [ebp + 0x2200]
push eax
call fcn.00431f90
lea ecx, [ebp + 0x2c00]
push ecx
push str._s___s_
push 0x400
lea edx, [ebp + 0x2200]
push edx
call fcn.00431065
push 0x3ff
lea eax, [ebp + 0x2200]
push eax
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043169a
add esp, 0x2c
cmp byte [ebp + 0x3014], 0
je 0x4048f7
push 0x3ff
push 0x455888
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0043169a
push str.Default_Printer:_true
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x14
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00431f90
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x204]
push edx
push str.__s_ssinstAD.exe_
push 0x400
lea eax, [ebp]
push eax
call fcn.00431065
add esp, 0x1c
lea edx, [ebp + 0x1800]
lea ecx, [ebp]
call fcn.00405090
mov dword [ebp - 4], 0xffffffff
jmp 0x404398