Function at 0x4649d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0847
mov eax, dword fs:[0]
push eax
sub esp, 0x264
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
mov ebx, dword [ebp + 0xc]
push ecx
push str.InstallUsbPrinter::RestoreCustomSettings
lea ecx, [ebp - 0x268]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x464a59
test byte [ecx + 0x1c], 1
je 0x464a59
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x34
call fcn.00401840
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea ecx, [ebp - 0x270]
call fcn.0046a2f0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x270]
call fcn.0046ae70
test eax, eax
je 0x464c2a
mov eax, dword [0x6184f0]
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x30]
add eax, 0x64
push eax
call fcn.00402f40
push 0x5c6930
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.004049b0
test al, al
jne 0x464bea
xor edi, edi
cmp dword [ebx + 8], edi
jle 0x464bea
nop dword [eax]
call fcn.00550b4e
test eax, eax
je 0x464caf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x464b1f
movzx eax, ax
lea ecx, [ebp - 0x26c]
push eax
call fcn.00403020
jmp 0x464b44
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464b22
sub eax, edx
lea ecx, [ebp - 0x26c]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403bb0
mov byte [ebp - 4], 4
test edi, edi
js 0x464caa
cmp edi, dword [ebx + 8]
jge 0x464caa
mov eax, dword [ebx + 4]
lea ecx, [edi*4]
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0x26c]
push dword [eax - 0xc]
push eax
call fcn.00405fe0
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464bc4
cmp edi, dword [ebx + 8]
jge 0x464caa
mov eax, dword [ebx + 4]
lea ecx, [edi*4]
add eax, ecx
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
push dword [eax]
lea eax, [ebp - 0x218]
push eax
push ecx
lea ecx, [ebp - 0x270]
call fcn.0046eb50
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x464be0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [ebx + 8]
jl 0x464ae0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x464c2a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464c20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464ca5
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov byte [ebp - 0x264], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x464c71
test byte [ecx + 0x1c], 1
je 0x464c71
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x35
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x270]
call fcn.0046a3c0
lea ecx, [ebp - 0x268]
call fcn.0040a570
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 8
call fcn.00574908
call fcn.005511b9
push 0x80004005
call fcn.004013a0
int3