Function at 0x404380
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3004]
mov eax, 0x3004
call fcn.0042cb20
push 0xffffffffffffffff
push 0x43f930
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4575e0]
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, ecx
mov esi, edx
mov ebx, dword [ebp + 0x3010]
mov dword [ebp - 4], 0
test edi, edi
je 0x4044a2
test esi, esi
je 0x4044a2
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4043f0
sub eax, edx
sar eax, 1
je 0x4044a2
push 0x200
push 0
lea ecx, [ebp + 0x2c00]
push ecx
call fcn.0042a280
push 0x200
push 0
lea edx, [ebp + 0x2000]
push edx
call fcn.0042a280
push 0x200
push 0
lea eax, [ebp + 0x2a00]
push eax
call fcn.0042a280
push 0x800
push 0
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0042a280
push str.DRIVER_NAME
push esi
push str._s__s
push 0x400
lea edx, [ebp + 0x1800]
push edx
call fcn.0042984c
add esp, 0x44
push 0
push 0x100
lea eax, [ebp + 0x2000]
push eax
lea edx, [ebp + 0x1800]
mov ecx, edi
call fcn.00407760
test eax, eax
je 0x4044c9
push esi
push str.Invalid_printer_component__Driver_Name_was_not_defined_______s_
mov ecx, 0x45c218
call fcn.004055f0
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.0042955b
add ebp, 0x3004
mov esp, ebp
pop ebp
ret 0xc
push 0x200
push 0
lea ecx, [ebp + 0x2e00]
push ecx
call fcn.0042a280
add esp, 0xc
push 0x100
cmp byte [0x45c43c], 0
je 0x404516
lea edx, [ebp + 0x2e00]
push edx
push str.inf_x64
mov edx, esi
mov ecx, edi
call fcn.00408200
test eax, eax
je 0x404545
push 0x200
push 0
lea eax, [ebp + 0x2e00]
push eax
jmp 0x40453d
lea ecx, [ebp + 0x2e00]
push ecx
push str.inf_x86
mov edx, esi
mov ecx, edi
call fcn.00408200
test eax, eax
je 0x404545
push 0x200
push 0
lea edx, [ebp + 0x2e00]
push edx
call fcn.0042a280
add esp, 0xc
lea eax, [ebp + 0x2e00]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404550
sub eax, edx
sar eax, 1
jne 0x4045a0
push 0x200
push 0
lea eax, [ebp + 0x2e00]
push eax
call fcn.0042a280
add esp, 0xc
push 0x100
lea ecx, [ebp + 0x2e00]
push ecx
push 0x44b328
mov edx, esi
mov ecx, edi
call fcn.00408200
test eax, eax
je 0x4045a0
push esi
push str.Invalid_printer_component__Inf_Name_was_not_defined_______s_
jmp 0x404495
push 0x800
push 0
lea edx, [ebp + 0x2200]
push edx
call fcn.0042a280
add esp, 0xc
push 0x400
lea eax, [ebp + 0x2200]
push eax
push 0x44b3ac
mov edx, esi
mov ecx, edi
call fcn.00408200
test eax, eax
je 0x4045ea
push 0x800
push 0
lea ecx, [ebp + 0x2200]
push ecx
call fcn.0042a280
add esp, 0xc
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.0042a280
add esp, 0xc
lea eax, [ebp + 0x2200]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404610
sub eax, edx
sar eax, 1
je 0x404654
lea eax, [ebp + 0x2e00]
push eax
lea ecx, [ebp + 0x2200]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x204]
push eax
push str._s_s_s
push 0x400
lea ecx, [ebp + 0x1000]
push ecx
call fcn.0042984c
add esp, 0x18
jmp 0x40467e
lea edx, [ebp + 0x2e00]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x204]
push ecx
push str._s_s
push 0x400
lea edx, [ebp + 0x1000]
push edx
call fcn.0042984c
add esp, 0x14
lea eax, [ebp + 0x1000]
push eax
push str.INF_:___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
lea ecx, [ebp + 0x1000]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4046c7
lea edx, [ebp + 0x1000]
push edx
push esi
push str.Invalid_Inf_Path___s__:___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 0xc
jmp 0x4044a2
push 0x800
push 0
lea eax, [ebp + 0x1800]
push eax
call fcn.0042a280
push str.PRINTER_NAME
push esi
push str._s__s
push 0x400
lea ecx, [ebp + 0x1800]
push ecx
call fcn.0042984c
add esp, 0x20
push 0
push 0x100
lea edx, [ebp + 0x2c00]
push edx
lea edx, [ebp + 0x1800]
mov ecx, edi
call fcn.00407760
test eax, eax
je 0x40472e
push 0x200
push 0
lea eax, [ebp + 0x2c00]
push eax
call fcn.0042a280
add esp, 0xc
lea ecx, [ebp + 0x2c00]
push ecx
push str.PRINTER_NAME_:___s_
mov ecx, 0x45c218
call fcn.004055f0
push 0x800
push 0
lea edx, [ebp + 0x1800]
push edx
call fcn.0042a280
push str.SHARE_NAME
push esi
push str._s__s
push 0x400
lea eax, [ebp + 0x1800]
push eax
call fcn.0042984c
add esp, 0x28
push 0
push 0x100
lea ecx, [ebp + 0x2a00]
push ecx
lea edx, [ebp + 0x1800]
mov ecx, edi
call fcn.00407760
test eax, eax
je 0x4047ab
push 0x200
push 0
lea edx, [ebp + 0x2a00]
push edx
call fcn.0042a280
add esp, 0xc
lea eax, [ebp + 0x2a00]
push eax
push str.SHARE_NAME_:___s_
mov ecx, 0x45c218
call fcn.004055f0
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.0042a280
lea edx, [ebp + 0x2000]
push edx
lea eax, [ebp + 0x1000]
push eax
push str.__s___o___s_
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.0042984c
add esp, 0x28
lea eax, [ebp + 0x2c00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404804
sub eax, edx
sar eax, 1
je 0x404865
push 0x800
push 0
lea edx, [ebp + 0x2200]
push edx
call fcn.0042a280
lea eax, [ebp + 0x2c00]
push eax
push str._n___s_
push 0x400
lea ecx, [ebp + 0x2200]
push ecx
call fcn.0042984c
push 0x3ff
lea edx, [ebp + 0x2200]
push edx
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004298cd
add esp, 0x2c
test ebx, ebx
je 0x4048db
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404870
sub eax, edx
sar eax, 1
je 0x4048db
push 0x800
push 0
lea ecx, [ebp + 0x2200]
push ecx
call fcn.0042a280
push ebx
push str._p___s_
push 0x400
lea edx, [ebp + 0x2200]
push edx
call fcn.0042984c
push 0x3ff
lea eax, [ebp + 0x2200]
push eax
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.004298cd
push ebx
push str.Port_Name_:___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 0x34
lea eax, [ebp + 0x2a00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4048e4
sub eax, edx
sar eax, 1
je 0x404945
push 0x800
push 0
lea edx, [ebp + 0x2200]
push edx
call fcn.0042a280
lea eax, [ebp + 0x2a00]
push eax
push str._s___s_
push 0x400
lea ecx, [ebp + 0x2200]
push ecx
call fcn.0042984c
push 0x3ff
lea edx, [ebp + 0x2200]
push edx
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004298cd
add esp, 0x2c
cmp byte [ebp + 0x3014], 0
je 0x40497b
push 0x3ff
push 0x44b518
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.004298cd
push str.Default_Printer:_true
mov ecx, 0x45c218
call fcn.004055f0
add esp, 0x14
push 0x800
push 0
lea edx, [ebp]
push edx
call fcn.0042a280
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x204]
push ecx
push str.__s_ssinstAD.exe_
push 0x400
lea edx, [ebp]
push edx
call fcn.0042984c
add esp, 0x1c
lea edx, [ebp + 0x800]
lea ecx, [ebp]
call fcn.00404fb0
mov dword [ebp - 4], 0xffffffff
jmp 0x4044a2