Function at 0x435630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d012
mov eax, dword fs:[0]
push eax
sub esp, 0xaa4
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.CheckPrinterDriverInstall::CheckCATFileExistEx
lea ecx, [ebp - 0xa70]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4356b6
test byte [ecx + 0x1c], 1
je 0x4356b6
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caa20
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x58
call fcn.00401840
add esp, 0xc
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
xor eax, eax
mov esi, 8
mov dword [ebp - 0xa74], eax
mov eax, dword [0x6184f0]
push 0x208
push 0
mov dword [ebp - 0xa7c], esi
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x3d4]
lea eax, [ebp - 0x420]
push eax
call fcn.00571c00
add esp, 0x30
lea ecx, [ebp - 0xa98]
call fcn.00443080
lea ecx, [ebp - 0xa94]
mov byte [ebp - 4], 1
call fcn.00437ff0
lea ecx, [ebp - 0xa90]
mov byte [ebp - 4], 2
call fcn.0046a2f0
mov byte [ebp - 4], 3
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0xa80]
mov dword [ebp - 0xa80], 0x63
push eax
push esi
lea ecx, [ebp - 0xa98]
call fcn.00446490
push 3
lea eax, [ebp - 0x218]
xor edi, edi
push eax
lea eax, [ebp - 0x628]
mov dword [ebp - 0xa78], edi
push eax
push dword [ebp - 0xa80]
lea ecx, [ebp - 0xa94]
call fcn.004394c0
mov esi, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, 1
jne 0x435aa0
lea ecx, [ebp - 0xaac]
call fcn.0055b16f
mov dword [ebp - 0xa84], esi
xor esi, esi
mov byte [ebp - 4], 4
mov dword [ebp - 0xa88], edi
mov dword [ebp - 0xa8c], esi
nop dword [eax + eax]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xaac]
call fcn.0055b63e
test ebx, ebx
je 0x435860
mov eax, dword [ebp - 0xa84]
test ebx, eax
je 0x435a57
cmp dword [ebp - 0xa88], 4
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
jb 0x435829
mov esi, 0x5c6930
jmp 0x435831
add esi, 0x3d8
add esi, eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
lea eax, [ebp - 0xaac]
push eax
push 0x5ca800
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa90]
call fcn.0046be70
mov eax, dword [ebp - 0xaa4]
xor edi, edi
test eax, eax
jle 0x435926
test edi, edi
js 0x435b80
cmp edi, eax
jge 0x435b80
mov eax, dword [ebp - 0xaa8]
mov ecx, dword [eax + edi*4]
sub ecx, 0x10
call fcn.00403af0
lea esi, [eax + 0x10]
mov dword [ebp - 0xab0], esi
mov byte [ebp - 4], 5
sub esp, 8
mov eax, dword [0x6184f4]
push esi
mov ecx, dword [eax + 8]
call fcn.00531cf0
test eax, eax
jne 0x4358fc
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4358ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xaa4]
inc edi
cmp edi, eax
jl 0x435890
jmp 0x435926
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x435926
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43597a
test byte [ecx + 0x1c], 4
je 0x43597a
cmp dword [0x608f68], 8
lea edx, [ebp - 0x628]
push edx
lea edx, [ebp - 0x218]
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push edx
push dword [ebp - 0xa80]
mov edx, 0x5caa20
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x59
call fcn.004304b0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435a41
push 0x208
lea eax, [ebp - 0x830]
mov dword [ebp - 0xa78], 0
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00534050
mov ecx, dword [0x608f30]
mov edi, dword [ebp - 0xa78]
mov dword [ebp - 0xa78], edi
cmp ecx, 0x608f30
je 0x435a24
test byte [ecx + 0x1c], 4
je 0x435a24
cmp dword [0x608f68], 8
lea edx, [ebp - 0x830]
push edx
push edi
lea edx, [ebp - 0x218]
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push edx
push eax
push dword [ecx + 0x14]
mov edx, 0x5caa20
push dword [ecx + 0x10]
mov ecx, 0x5a
call fcn.004303c0
add esp, 0x18
test ebx, ebx
je 0x435a2e
test edi, edi
je 0x435a7d
jmp 0x435a47
cmp edi, 1
jne 0x435a47
mov eax, dword [ebp - 0xa7c]
or dword [ebp - 0xa74], eax
jmp 0x435a47
mov edi, dword [ebp - 0xa78]
test ebx, ebx
je 0x435a91
mov esi, dword [ebp - 0xa8c]
mov eax, dword [ebp - 0xa84]
inc dword [ebp - 0xa88]
add esi, 0x208
add eax, eax
mov dword [ebp - 0xa8c], esi
mov dword [ebp - 0xa84], eax
cmp esi, 0x410
jl 0x4357f0
test ebx, ebx
je 0x435a91
test edi, edi
je 0x435a91
mov eax, dword [ebp - 0xa7c]
or dword [ebp - 0xa74], eax
lea ecx, [ebp - 0xaac]
mov byte [ebp - 4], 3
call fcn.0055b186
mov esi, dword [ebp - 0xa7c]
add esi, esi
mov dword [ebp - 0xa7c], esi
cmp esi, 0x40
jbe 0x435760
mov eax, dword [ebp - 0xa74]
push eax
lea eax, [ebp - 0xa38]
push 0x5c6b38
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa38]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.CATSUPPORTEX
call fcn.004f6860
mov byte [ebp - 0xa6c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x435b36
test byte [ecx + 0x1c], 1
je 0x435b36
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5caa20
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5b
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0xa90]
call fcn.0046a3c0
lea ecx, [ebp - 0xa94]
call fcn.004380c0
lea ecx, [ebp - 0xa98]
call fcn.00443150
lea ecx, [ebp - 0xa70]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.005511b9
int3