Function at 0x404a70
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00434bf0
push 0xffffffffffffffff
push 0x448298
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x460cd0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.start_RemoveStarMeneu__
mov ecx, 0x466338
call fcn.0041a690
add esp, 4
push 0x465138
lea ecx, [ebp - 0x18]
call fcn.00403020
xor esi, esi
mov dword [ebp - 4], esi
push 0x465338
lea ecx, [ebp - 0x20]
call fcn.00403020
mov byte [ebp - 4], 1
push 0x44f0cc
lea ecx, [ebp - 0x24]
call fcn.00403020
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 0x800
push esi
lea eax, [ebp + 0x800]
push eax
call fcn.00430500
push 0x800
push esi
lea ecx, [ebp]
push ecx
call fcn.00430500
add esp, 0x18
lea ecx, [ebp + 0x800]
call fcn.00404f80
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404b32
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x7fe], 0x5c
jne 0x404b6c
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404b55
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 + 0x7fe], si
push 0x44eccc
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042f75b
add esp, 8
test eax, eax
jne 0x404bec
lea ecx, [ebp - 0x14]
call fcn.00403710
mov bl, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00403580
push esi
push 0x99
lea eax, [ebp - 0x1c]
push eax
call fcn.00418df0
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.00403460
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004036b0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp + 0x800]
push edx
push str._s_s
lea edx, [ebp]
call fcn.00402fe0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004036b0
jmp 0x404cf6
push 0x44ecdc
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042f75b
add esp, 8
test eax, eax
jne 0x404c6c
lea ecx, [ebp - 0x14]
call fcn.00403710
mov bl, 6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00403580
push esi
push 0x135
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00418df0
add esp, 0xc
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x14]
call fcn.00403460
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004036b0
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp + 0x800]
push eax
push str._s_s
lea edx, [ebp]
call fcn.00402fe0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004036b0
jmp 0x404cf6
push str.Hewlett_Packard
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0042f75b
add esp, 8
test eax, eax
je 0x404ca8
push 0x44ed04
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042f75b
add esp, 8
test eax, eax
je 0x404ca8
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp + 0x800]
push ecx
push str._s_s_Printers
jmp 0x404ceb
mov ecx, 0x44ed0c
lea esi, [ebp - 0x20]
call fcn.00402590
cmp eax, 0xffffffff
je 0x404cc8
push str.HPHP_LaserJet_Printers
lea edx, [ebp + 0x800]
push edx
jmp 0x404ce6
mov ecx, str.Laser
lea esi, [ebp - 0x20]
call fcn.00402590
cmp eax, 0xffffffff
je 0x404cf6
push str.HPHP_Laser_Printers
lea eax, [ebp + 0x800]
push eax
push str._s_s
lea edx, [ebp]
call fcn.00402fe0
add esp, 0xc
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.__s__printers_shorcut_path:__s_
mov ecx, 0x466338
call fcn.0041a690
add esp, 0xc
call fcn.00404980
test al, al
je 0x404d52
cmp byte [0x465130], 0
je 0x404d52
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d52
lea esi, [ebp]
call fcn.00405110
test al, al
je 0x404d52
push 1
mov ecx, 0x465b38
call fcn.0041be50
add esp, 4
mov ecx, esi
call fcn.00405360
mov dword [ebp - 4], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004036b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004036b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004036b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042f002
add ebp, 0x1004
mov esp, ebp
pop ebp
ret