Function at 0x404280
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3004]
mov eax, 0x3004
call fcn.004351f0
push 0xffffffffffffffff
push 0x449620
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4615e0]
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 0x4043a8
test esi, esi
je 0x4043a8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4042f6
sub eax, edx
sar eax, 1
je 0x4043a8
push 0x200
push 0
lea edx, [ebp + 0x2a00]
push edx
call fcn.00431f30
push 0x200
push 0
lea eax, [ebp + 0x2000]
push eax
call fcn.00431f30
push 0x200
push 0
lea ecx, [ebp + 0x2c00]
push ecx
call fcn.00431f30
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.00431f30
push str.DRIVER_NAME
push esi
push str._s__s
push 0x400
lea eax, [ebp + 0x1000]
push eax
call fcn.00431005
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.00409ba0
test eax, eax
je 0x4043cf
push esi
push str.Invalid_printer_component__Driver_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 + 0x3000]
xor ecx, ebp
call fcn.00430ff6
add ebp, 0x3004
mov esp, ebp
pop ebp
ret 0x10
push 0x200
push 0
lea edx, [ebp + 0x2e00]
push edx
call fcn.00431f30
add esp, 0xc
push pe_nt_image_headers32
mov ecx, edi
cmp byte [0x46642c], 0
je 0x40441c
lea eax, [ebp + 0x2e00]
push eax
push str.inf_x64
mov edx, esi
call fcn.0040a640
test eax, eax
je 0x404449
push 0x200
push 0
lea ecx, [ebp + 0x2e00]
push ecx
jmp 0x404441
lea edx, [ebp + 0x2e00]
push edx
push str.inf_x86
mov edx, esi
call fcn.0040a640
test eax, eax
je 0x404449
push 0x200
push 0
lea eax, [ebp + 0x2e00]
push eax
call fcn.00431f30
add esp, 0xc
lea eax, [ebp + 0x2e00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404452
sub eax, edx
sar eax, 1
jne 0x4044a2
push 0x200
push 0
lea ecx, [ebp + 0x2e00]
push ecx
call fcn.00431f30
add esp, 0xc
push pe_nt_image_headers32
lea edx, [ebp + 0x2e00]
push edx
push 0x454688
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
je 0x4044a2
push esi
push str.Invalid_printer_component__Inf_Name_was_not_defined_______s_
jmp 0x40439b
push 0x800
push 0
lea eax, [ebp + 0x2200]
push eax
call fcn.00431f30
add esp, 0xc
push 0x400
lea ecx, [ebp + 0x2200]
push ecx
push 0x45470c
mov edx, esi
mov ecx, edi
call fcn.0040a640
test eax, eax
je 0x4044ec
push 0x800
push 0
lea edx, [ebp + 0x2200]
push edx
call fcn.00431f30
add esp, 0xc
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.00431f30
add esp, 0xc
lea eax, [ebp + 0x2200]
lea edx, [eax + 2]
jmp 0x404510
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404510
sub eax, edx
sar eax, 1
je 0x404554
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.00431005
add esp, 0x18
jmp 0x40457e
lea eax, [ebp + 0x2e00]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x204]
push edx
push 0x453448
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.00431005
add esp, 0x14
lea ecx, [ebp + 0x800]
push ecx
push str.INF_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
lea edx, [ebp + 0x800]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4045c7
lea eax, [ebp + 0x800]
push eax
push esi
push str.Invalid_Inf_Path___s__:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0xc
jmp 0x4043a8
push 0x800
push 0
lea ecx, [ebp + 0x1000]
push ecx
call fcn.00431f30
push str.PRINTER_NAME
push esi
push str._s__s
push 0x400
lea edx, [ebp + 0x1000]
push edx
call fcn.00431005
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.00409ba0
test eax, eax
je 0x40462e
push 0x200
push 0
lea ecx, [ebp + 0x2a00]
push ecx
call fcn.00431f30
add esp, 0xc
lea edx, [ebp + 0x2a00]
push edx
push str.PRINTER_NAME_:___s_
mov ecx, 0x466208
call fcn.00405f80
push 0x800
push 0
lea eax, [ebp + 0x1000]
push eax
call fcn.00431f30
push str.SHARE_NAME
push esi
push str._s__s
push 0x400
lea ecx, [ebp + 0x1000]
push ecx
call fcn.00431005
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.00409ba0
test eax, eax
je 0x4046ab
push 0x200
push 0
lea eax, [ebp + 0x2c00]
push eax
call fcn.00431f30
add esp, 0xc
lea ecx, [ebp + 0x2c00]
push ecx
push str.SHARE_NAME_:___s_
mov ecx, 0x466208
call fcn.00405f80
push 0x800
push 0
lea edx, [ebp + 0x1800]
push edx
call fcn.00431f30
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.00431005
add esp, 0x28
test ebx, ebx
je 0x404740
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404704
sub eax, edx
sar eax, 1
je 0x404740
mov eax, ebx
lea ecx, [ebp + 0x1800]
call fcn.00405ae0
push 0x3ff
push 0x4541e4
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0043163a
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 0x404750
sub eax, edx
sar eax, 1
je 0x4047c8
push 0x454818
lea ecx, [ebp + 0x1800]
push ecx
call fcn.004315ac
add esp, 8
test eax, eax
jne 0x4047c8
push 0x800
push eax
lea edx, [ebp + 0x2200]
push edx
call fcn.00431f30
lea eax, [ebp + 0x2a00]
push eax
push str._n___s_
push 0x400
lea ecx, [ebp + 0x2200]
push ecx
call fcn.00431005
push 0x3ff
lea edx, [ebp + 0x2200]
push edx
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0043163a
add esp, 0x2c
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x404862
mov eax, esi
lea edx, [eax + 2]
jmp 0x4047e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4047e0
sub eax, edx
sar eax, 1
je 0x404862
push 0x454834
lea ecx, [ebp + 0x1800]
push ecx
call fcn.004315ac
add esp, 8
test eax, eax
jne 0x404862
push 0x800
push eax
lea edx, [ebp + 0x2200]
push edx
call fcn.00431f30
push esi
push str._p___s_
push 0x400
lea eax, [ebp + 0x2200]
push eax
call fcn.00431005
push 0x3ff
lea ecx, [ebp + 0x2200]
push ecx
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0043163a
push esi
push str.Port_Name_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x34
lea eax, [ebp + 0x2c00]
lea edx, [eax + 2]
jmp 0x404870
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404870
sub eax, edx
sar eax, 1
je 0x4048d1
push 0x800
push 0
lea eax, [ebp + 0x2200]
push eax
call fcn.00431f30
lea ecx, [ebp + 0x2c00]
push ecx
push str._s___s_
push 0x400
lea edx, [ebp + 0x2200]
push edx
call fcn.00431005
push 0x3ff
lea eax, [ebp + 0x2200]
push eax
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0043163a
add esp, 0x2c
cmp byte [ebp + 0x3014], 0
je 0x404907
push 0x3ff
push 0x454888
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0043163a
push str.Default_Printer:_true
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x14
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00431f30
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.00431005
add esp, 0x1c
lea edx, [ebp + 0x1800]
lea ecx, [ebp]
call fcn.004050a0
mov dword [ebp - 4], 0xffffffff
jmp 0x4043a8